0

i have win10 in cmd.exe with composer create project: composer create-project laravel/laravel firstproject or(laravel new firstproject)

then: php artisan serve

enter image description here

but in vscode i have some syntax error in vendor folder

enter image description here

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?

  • What kind of error are you facing? How is this problem related to Composer? – Nico Haase Jan 30 '23 at 06:48
  • this project created via composer in cmd.exe: project laravel/laravel firstproject list of errors: Syntax error:unexpected token 'string' php(php2014) Syntax error:unexpected token 'array' php(php2014) – soheila sadeghian Jan 30 '23 at 10:42
  • Please add all clarification to your question by editing it. Also, share how the problem is related to Composer. Wouldn't it also occur if the project was created any other way? – Nico Haase Jan 30 '23 at 11:00
  • i added all clarification to my question – soheila sadeghian Jan 30 '23 at 11:54

0 Answers0