Closed cyraid closed 4 months ago
Describe the bug When using a match block (at least with the match(true) {}) it won't recognize the instanceof.
match(true) {}
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.
if
$ex
HttpException
Platform and version Platform: Ubuntu 22.04 Version: v1.10.2
duplicate of #2296
Describe the bug When using a match block (at least with the
match(true) {}
) it won't recognize theinstanceof
.To Reproduce
Expected behavior Like an
if
statement, the intellisense should recognize that$ex
is anHttpException
here.Platform and version Platform: Ubuntu 22.04 Version: v1.10.2