After running composer update command, following error occurred:
PHP Parse error: syntax error, unexpected '?' in /home/apps/auditus/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233
Following the file and error line:
Helpers.php:
if (is_string($arguments[0])) {
return app('cache')->get($arguments[0], $arguments[1] ?? null);
}
are you sure your running PHP7? That error looks like your not...?
I runned phpinfo(); and it shows me this: PHP Version 7.0.26
Sounds like something's gone wrong in your vendor folder to me. Just delete vendor and then do composer install.
Are you sure that the CLI version of PHP is also 7.0? Run php -v to see this.
Nope, introduced in PHP 7.0.
im getting same issue in web hosting
please help me
@BookNetwork Are you on PHP 7.0+?
im getting same issue in web hosting
I think that you should update your php version.
Even I am also. These issues in local system anyone could help me out
Most helpful comment
are you sure your running PHP7? That error looks like your not...?