From 8918dce7f60715390c506c6406ca374469fc993a Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:38:07 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/view/chart/BarChart.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libchart/classes/view/chart/BarChart.php b/libchart/classes/view/chart/BarChart.php index 536687c..4a1f3fc 100644 --- a/libchart/classes/view/chart/BarChart.php +++ b/libchart/classes/view/chart/BarChart.php @@ -33,8 +33,8 @@ abstract class BarChart extends Chart { * @param integer width of the image * @param integer height of the image */ - protected function BarChart($width, $height) { - parent::Chart($width, $height); + protected function __construct($width, $height) { + parent::__construct($width, $height); // Initialize the bounds $this->bound = new Bound(); @@ -176,4 +176,4 @@ public function getBound() { return $this->bound; } } -?> \ No newline at end of file +?>