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 5b50189 commit 1b73f27Copy full SHA for 1b73f27
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", $bar);
+ assertType("object&hasMethod(quux)|hasMethod(qux)", $bar);
32
0 commit comments