Ok issue identified on the "php.executables" paths config mapping, this is what I've currently:
{
"php.executables": {
"system": "/usr/local/bin/php",
"8.1": "/usr/local/bin/Cellar/php/8.1.8/bin/php"
}
}
When using "system" its reporting it as PHP 8.0 when its the one linked by Homebrew (using OS X) so being the same as the one below mapped as 8.1, but when I swap to the 8.1 the problem dissapear
tl;dr
Issue is with the VSCode extension detecting the PHP runtime version properly (maybe running php -v once to detect this then analyse the workspace problems?)