Skip to content

Commit 2d31641

Browse files
Add tests
1 parent db623a6 commit 2d31641

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/PHPStan/Analyser/data/bug-8803.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,11 @@ public function sayHello(): void
1717
assertType('int<2, 21>', $value);
1818
}
1919
}
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+
}
2027
}

0 commit comments

Comments
 (0)