I have a development environment based in docker.
Everytime that I open VSCode I get this message:
Cannot validate since no PHP executable is set.
I also got this error message. The path to php.exe was already set in my System Environment Variables.
php.exe
The error went away when I commented out "php.validate.executablePath": "c:/path/to/php7.2.10/php.exe", in the settings.json file in VSCode.
"php.validate.executablePath": "c:/path/to/php7.2.10/php.exe"
settings.json