From 4a774060e89721e9c16b9f6795b4db492526e793 Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:46:48 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/view/color/Palette.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libchart/classes/view/color/Palette.php b/libchart/classes/view/color/Palette.php index 224acda..af93b24 100644 --- a/libchart/classes/view/color/Palette.php +++ b/libchart/classes/view/color/Palette.php @@ -37,7 +37,7 @@ class Palette { /** * Palette constructor. */ - public function Palette() { + public function __construct() { $this->red = new Color(255, 0, 0); // Set the colors for the horizontal and vertical axis @@ -153,4 +153,4 @@ public function setPieColor($colors) { $this->pieColorSet = new ColorSet($colors, 0.7); } } -?> \ No newline at end of file +?>