bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.57k stars 93 forks source link

[Bug] No intellisense in match block. #2809

Closed cyraid closed 4 months ago

cyraid commented 4 months ago

Describe the bug When using a match block (at least with the match(true) {}) it won't recognize the instanceof.

To Reproduce

$something = match (true) {
  $ex instanceof HttpException => $ex->getStatusCode(),
  default => 0
};

Expected behavior Like an if statement, the intellisense should recognize that $ex is an HttpException here.

Platform and version Platform: Ubuntu 22.04 Version: v1.10.2

bmewburn commented 4 months ago

duplicate of #2296