Upgrade to PHP 8 | Homebrew Guide For Mac [2021]
2 AnswersGo to File > Preferences > User Settings > Settings.json.Change the value of php. validate. executablePath according to the installed directory of php7. “php.validate.executablePath”: “/Applications/MAMP/bin/php/php7.0.14/bin/php”Relaunch VM Code.
Upgrade the latest version of PHP to Mac 2020 Using Unix Bash
https://www.youtube.com/watch?v=-SlI_FoIDJg