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 db623a6 commit 2d31641Copy full SHA for 2d31641
tests/PHPStan/Analyser/data/bug-8803.php
@@ -17,4 +17,11 @@ public function sayHello(): void
17
assertType('int<2, 21>', $value);
18
}
19
20
+
21
+ public function testWithMixed(mixed $a, mixed $b): void
22
+ {
23
+ assertType('(array|float|int)', $a + $b);
24
+ assertType('(float|int)', 3 + $b);
25
+ assertType('(float|int)', $a + 3);
26
+ }
27
0 commit comments