From 99b2808423bb4dfa3ec6007e5c2feb22fd497c97 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 6 Dec 2014 20:45:39 +0100 Subject: [PATCH] Changed name of constructor. "As of PHP 5.3.3, methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn't affect non-namespaced classes. " Source: http://php.net/manual/en/language.oop5.decon.php --- 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");