Error Symfony Component Debug Exception FatalErrorException syntax error unexpected expecting variable T VARIABLE

0 votes

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?

Dec 4, 2020 in Laravel by kartik
• 37,520 points
3,547 views

1 answer to this question.

0 votes

Hii,

Try this command:

php -S localhost:8000 -t public

Then execute it on browser, it will produce the error, just look at the error, and fix it.

answered Dec 4, 2020 by Niroj
• 82,800 points