onecentlin / laravel5-snippets-vscode

Laravel snippets for Visual Studio Code (Support Laravel 5 and above)
MIT License
36 stars 19 forks source link

Laravel 9 new attribute syntax broken #35

Closed tomorrowagency-brad closed 2 years ago

tomorrowagency-brad commented 2 years ago

Hi, I have the most recent version of this package installed, and Laravel 9 style Attributes are throwing an error. I'm not sure if this would be handled by this package or not. Please let me know if this is outside of the scope of your project, thanks!

image

tomorrowagency-brad commented 2 years ago

False alarm, it was a problem with the php version I had linked by homebrew.

onecentlin commented 2 years ago

You may force php version in VSCode settings.json

Default is your php version in system

Change php.validate.executablePath value to your specified PHP version for validating.

"php.validate.executablePath": "/user/local/bin/php",

p.s. PHP 8.0 support named parameters