From 56a9a161a353af37d0318d7c866dc08317a1420c Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:42:51 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/view/chart/PieChart.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libchart/classes/view/chart/PieChart.php b/libchart/classes/view/chart/PieChart.php index f2e5119..bf78522 100644 --- a/libchart/classes/view/chart/PieChart.php +++ b/libchart/classes/view/chart/PieChart.php @@ -32,8 +32,8 @@ class PieChart extends Chart { * @param integer width of the image * @param integer height of the image */ - public function PieChart($width = 600, $height = 250) { - parent::Chart($width, $height); + public function __construct($width = 600, $height = 250) { + parent::__construct($width, $height); $this->plot->setGraphPadding(new Padding(15, 10, 30, 30)); } @@ -264,4 +264,4 @@ public function render($fileName = null) { $this->plot->render($fileName); } } -?> \ No newline at end of file +?>