Skip to content

Commit d96ce7c

Browse files
authored
Newer versions of php throws error on constructor
PHP depreciated the use of constructor name similar to (same as) class name.
1 parent e37668a commit d96ce7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSerial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PhpSerial
3838
*
3939
* @return PhpSerial
4040
*/
41-
public function PhpSerial()
41+
public function __construct()
4242
{
4343
setlocale(LC_ALL, "en_US");
4444

0 commit comments

Comments
 (0)