Skip to content

Commit 075e272

Browse files
committed
Add test for iterable+Traversable redundancy with extra class
1 parent 6c1cf9a commit 075e272

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--TEST--
2+
Using both iterable and Traversable, with extra classes
3+
--FILE--
4+
<?php
5+
6+
function test(): iterable|Traversable|ArrayAccess {
7+
}
8+
9+
?>
10+
--EXPECTF--
11+
Fatal error: Type Traversable|ArrayAccess|iterable contains both iterable and Traversable, which is redundant in %s on line %d

0 commit comments

Comments
 (0)