Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

murilo's avatar
Level 10

lumen, error - In Command.php line 360: syntax error, unexpected token ")"

I installed lumen . when I try to migrate a table, it gives this errro -

In Command.php line 360:
                                      
  syntax error, unexpected token ")"

Do I have to install some dependencies ?

0 likes
6 replies
Sinnbeck's avatar

Sounds like your php version is wrong. You probably have 7.4 or something and need 8.x

murilo's avatar
Level 10

I am using - PHP 8.0.13 with - "laravel/lumen-framework": "^9.0"

Sinnbeck's avatar

What Command.php file is it? The full path

murilo's avatar
Level 10

the code in command.php line 360 has an eror , came like that -

  $code = $code(...);

Please or to participate in this conversation.