From 7676e2e612d3a89af8a568b7653d41bdd0b74443 Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:43:52 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/view/chart/VerticalBarChart.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libchart/classes/view/chart/VerticalBarChart.php b/libchart/classes/view/chart/VerticalBarChart.php index bd05c1b..5477b15 100644 --- a/libchart/classes/view/chart/VerticalBarChart.php +++ b/libchart/classes/view/chart/VerticalBarChart.php @@ -34,8 +34,8 @@ class VerticalBarChart extends BarChart { * @param integer width of the image * @param integer height of the image */ - public function VerticalBarChart($width = 600, $height = 250) { - parent::BarChart($width, $height); + public function __construct($width = 600, $height = 250) { + parent::__construct($width, $height); $this->emptyToFullRatio = 1 / 5; $this->plot->setGraphPadding(new Padding(5, 30, 50, 50)); @@ -240,4 +240,4 @@ public function render($fileName = null) { $this->plot->render($fileName); } } -?> \ No newline at end of file +?>