From 042a28ecffdfc231be7e63d6471cf41e12f68a33 Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:45:13 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/view/color/Color.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libchart/classes/view/color/Color.php b/libchart/classes/view/color/Color.php index 13b0ae5..9ba9940 100644 --- a/libchart/classes/view/color/Color.php +++ b/libchart/classes/view/color/Color.php @@ -37,7 +37,7 @@ class Color { * @param integer blue [0..255] * @param integer alpha [0..255] */ - public function Color($red, $green, $blue, $alpha = 0) { + public function __construct($red, $green, $blue, $alpha = 0) { $this->red = (int) $red; $this->green = (int) $green; $this->blue = (int) $blue; @@ -96,4 +96,4 @@ public function getShadowColor($shadowFactor) { return $shadowColor; } } -?> \ No newline at end of file +?>