php-language-server
php-language-server copied to clipboard
PHP 7.1 requirement prompt with PHP 7.3 running on server
trafficstars
Hello, I'm working with VSCode on Laragon local server that run php-7.3.9-Win32-VC15-x64 - but it still continue to prompt the notification "The language server needs AT LEAST PHP 7.1 installed."

Same scenario in my case. @paolosax did you find any solution?
Same scenario in my case. @paolosax did you find any solution?
Hello, try the following:
- check PHP Intellisense settings of VS Code: File>Preferences>Settings>Extensions>PHP Intellisense ...and click on "Modify settings.json"
- in the settings.json, find the lines "php.executablePath" and "php.validate.executablePath" and write the absolute path of the php .exe file to both the lines - eg.:
... "php.executablePath": "E:/laragon/bin/php/php-7.3.9-Win32-VC15-x64/php.exe", "php.validate.executablePath": "E:/laragon/bin/php/php-7.3.9-Win32-VC15-x64/php.exe", ...
After that, perhaps it could be useful to quit and restart VS Code