From 1bda08ac5b7b4407150ae37c8c0ec3ebfad64db8 Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:39:00 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/view/chart/Chart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libchart/classes/view/chart/Chart.php b/libchart/classes/view/chart/Chart.php index da0515a..2220eea 100644 --- a/libchart/classes/view/chart/Chart.php +++ b/libchart/classes/view/chart/Chart.php @@ -51,7 +51,7 @@ abstract class Chart { * @param integer width of the image * @param integer height of the image */ - protected function Chart($width, $height) { + protected function __construct($width, $height) { // Initialize the configuration $this->config = new ChartConfig(); @@ -116,4 +116,4 @@ public function setTitle($title) { $this->plot->setTitle($title); } } -?> \ No newline at end of file +?>