LaravelCollective / annotations

Route and Event Annotations for the Laravel Framework
MIT License
365 stars 73 forks source link

Fix scan syntax error #98

Closed ateliee closed 4 years ago

ateliee commented 4 years ago

The following error produces a command at the time of practice.

$ php artisan route:scan

ParseError
syntax error, unexpected ')', expecting end of file
storage/framework/routes.scanned.php:7
    3|  'as' => NULL,
    4|  'middleware' => [],
    5|  'where' => [],
    6|  'domain' => NULL,
  > 7| ]);

The first did not have any problem, but revised it when storage/framework/routes.scanned.php existed as it became the Perth error because it was the second time, and PHP_EOL did not exist.

PHP 7.2.31

loonytoons commented 4 years ago

Thanks @ateliee. Sorry about the delay in getting to this. It's not an error I've come across before, so want to see if I can recreate it first