Check and see if something in your code requires a higher php version than you have.
Just a suggestion. Php has a wiki with changes.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i have win10 in cmd.exe with composer create project: composer create-project laravel/laravel firstproject or (laravel new firstproject)
then: php artisan serve
but in vscode i have some syntax error in vendor folder
list of errors:
Syntax error:unexpected token 'string' php(php2014) Syntax error:unexpected token 'array' php(php2014) ...
in AppData\Roaming\Code\User\setting.json "intelephense.environment.phpVersion": "8.1.6"
how can i fix errors?
Please or to participate in this conversation.