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