/opt/php71/bin/php /usr/bin/composer update
Ошибка:
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 162
Script php artisan clear-compiled handling the post-update-cmd event returned with error code 255
На 162 строчке эта функция:
function auth($guard = null)
{
if (is_null($guard)) {
return app(AuthFactory::class);
}
return app(AuthFactory::class)->guard($guard);
}
Подозреваю может у меня версия PHP не подходит?