As the title says, I am getting the following error when trying to open a connection to a database:
PHP 7.0.15-0ubuntu0.16.04.4 Development Server started at Wed Mar 8 15:55:57 2017
Listening on http://localhost:8000
Document root is (...)
Press Ctrl-C to quit.
[Wed Mar 8 15:55:58 2017] PHP Parse error: syntax error, unexpected '?' in (...)/vendor/simplon/mysql/src/Mysql.php on line 502
[Wed Mar 8 15:55:58 2017] 127.0.0.1:38532 [500]: / - syntax error, unexpected '?' in (...)/vendor/simplon/mysql/src/Mysql.php on line 502
As the title says, I am getting the following error when trying to open a connection to a database:
The problem seems to be in this line: https://github.com/fightbulc/simplon_mysql/blob/2.0.0/src/Mysql.php#L502
Btw, I am using version 2.0 of your library.
Am I doing something wrong or is the source code defect?