From 2771457902ec78bf08a5990d78054fdfb5af993e Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:32:43 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/model/Point.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libchart/classes/model/Point.php b/libchart/classes/model/Point.php index 5e7f12f..320a259 100644 --- a/libchart/classes/model/Point.php +++ b/libchart/classes/model/Point.php @@ -33,7 +33,7 @@ class Point { * @param integer x coordinate (label) * @param integer y coordinate (value) */ - public function Point($x, $y) { + public function __construct($x, $y) { $this->x = $x; $this->y = $y; } @@ -56,4 +56,4 @@ public function getY() { return $this->y; } } -?> \ No newline at end of file +?>