I am currently developing an app with Laravel 5 and suddenly the artisan stoped working!
I can't use a single command on it, it always return the error:
[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected ',', expecting variable (T_VARIABLE)
I tried to update via composer but when the artisan tries to clear-complie
Command: composer update
> php artisan clear-compiled
[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected ',', expecting variable (T_VARIABLE)
Has anyone ever had this error before?
My Php version is 5.6.8
,
somewhere which is creating a syntax error or it's your php version. cd to your website directory and runfind . -name \*.php -exec php -l "{}" \;
in your terminal. If it comes up with a lot of things, it's probably your php version. – user1669496