0

I've cloned a Laravel project from Github, then I've run composer install for getting vendor folder. This folder has appeared but I also get weird red lines under each class that show Undefined Type errors. I also deleted the composer.lock and run composer update, but the errors are still there! Is there any other thing that I should do?

enter image description here

enter image description here

Hanie Asemi
  • 1,318
  • 2
  • 9
  • 23

1 Answers1

0

The project was running perfectly, So I found out it was because of my IDE. The VS Code wanted to validate code using php, and it is not finding php installed. It's solved by setting php.validate.executablePath in Vs Code setting. For more information: "Cannot validate the php file. The php program was not found"

Hanie Asemi
  • 1,318
  • 2
  • 9
  • 23