Asinox
Asinox

Reputation: 6865

Parse error: syntax error, unexpected '?'

i got an error after OctoberCMS was installed, but i cant figure it out how to fix it.

Parse error: syntax error, unexpected '?' in /var/www/html/..../public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233

Any Idea?

Thanks!

Upvotes: 0

Views: 3871

Answers (1)

Daniel W.
Daniel W.

Reputation: 32340

The sourcecode uses the coalesce operator ?? which is not available in your PHP version.

http://php.net/manual/en/migration70.new-features.php

https://github.com/laravel/framework/

https://github.com/laravel/framework/blob/5.7/composer.json

"require": {
    "php": "^7.1.3",

Upvotes: 1

Related Questions