We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b73f27 commit 1b2bc46Copy full SHA for 1b2bc46
tests/PHPStan/Analyser/nsrt/bug-13272.php
@@ -28,5 +28,5 @@ function fooBar(object $bar, string $constUnion): void
28
}
29
30
// at this point we don't know whether $constUnion was 'quux' or 'qux'
31
- assertType("object&hasMethod(quux)|hasMethod(qux)", $bar);
+ assertType("object&hasMethod(quux)|object&hasMethod(qux)", $bar);
32
0 commit comments