Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/c1305873c/ntn/vendor/ramsey/uuid/src/functions.php on line 34
I try to put online my first project with laravel but i have this error, using PHP version 7
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/c1305873c/ntn/vendor/ramsey/uuid/src/functions.php on line 34
I try to put online my first project with laravel but i have this error, using PHP version 7
This problem is typically associated with an inconsistency in PHP versions.
More than likely, you are running PHP >=7.1 on your dev machine but the server that you have pushed to is running <=7.0.
If you're running Laravel 7 then you're going to need a minimum of PHP 7.2.5 on the server anyway so your options are either to upgrade the server or drop down to Laravel 6.