What PHP version is it? Is it supported by Laravel? What is on line 588?
In Finder.php line 588: syntax error, unexpected token ")"
I install the new version of PHP on my computer, but when I tried to run "PHP artisan serve" on my laravel project, this happen on my terminal.
In Finder.php line 588:
syntax error, unexpected token ")"
The first time I make the laravel project, I'm using the newest PHP version too, but for some reason, I have to downgrade my PHP version for another laravel project that can only use PHP 7.4, and now I'm going to continue my first laravel project so I install the new version of PHP.
@oka_ open the file Finder.php and post for us all to see what code is on that line or what method is there. That will help to understand the issue.
However, reading https://webdevask.com/items/laravel-9-composer-syntax-error-unexpected-token is seems you may need to update dependencies for composer or replace some with ones you need to run your Laravel version.
Please or to participate in this conversation.