php-language-server icon indicating copy to clipboard operation
php-language-server copied to clipboard

PHP 7.1 requirement prompt with PHP 7.3 running on server

Open paolosax opened this issue 6 years ago • 2 comments
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."

paolosax avatar Nov 06 '19 07:11 paolosax

Screenshot_1

Same scenario in my case. @paolosax did you find any solution?

mohamadsheam avatar Jul 08 '20 08:07 mohamadsheam

Screenshot_1

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

paolosax avatar Jul 08 '20 08:07 paolosax