You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in .../vendor/mjaschen/phpgeo/src/Location/Coordinate.php on line 73,
Then I updated it to PHP 7.2 and the error disappeared.
Regards
The text was updated successfully, but these errors were encountered:
are you sure, you were running PHP 7.0? The described error indicates that a PHP version less than 7 was running.
e.g. when using 5.6.38:
% php-5.6.38 -l src/Location/Coordinate.php PHP Warning: Unsupported declare 'strict_types' in src/Location/Coordinate.php on line 2
Warning: Unsupported declare 'strict_types' in src/Location/Coordinate.php on line 2
PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in src/Location/Coordinate.php on line 73
Parse error: syntax error, unexpected ':', expecting ';' or '{' in src/Location/Coordinate.php on line 73
Errors parsing src/Location/Coordinate.php
Linting the file with PHP 7.0.33 shows no error:
% php-7.0.33 -l src/Location/Coordinate.php
No syntax errors detected in src/Location/Coordinate.php
Hi.
I had PHP 7.0 and it show a error:
mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in .../vendor/mjaschen/phpgeo/src/Location/Coordinate.php on line 73
,Then I updated it to PHP 7.2 and the error disappeared.
Regards
The text was updated successfully, but these errors were encountered: