From d96ce7c2bab479c1a71e3285e152b1a712823f59 Mon Sep 17 00:00:00 2001 From: Kamran Syed Date: Sun, 11 Feb 2018 16:24:25 +0500 Subject: [PATCH] Newer versions of php throws error on constructor PHP depreciated the use of constructor name similar to (same as) class name. --- src/PhpSerial.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSerial.php b/src/PhpSerial.php index 1d253d5..f2c9915 100644 --- a/src/PhpSerial.php +++ b/src/PhpSerial.php @@ -38,7 +38,7 @@ class PhpSerial * * @return PhpSerial */ - public function PhpSerial() + public function __construct() { setlocale(LC_ALL, "en_US");