Skip to content

Commit 953dcdd

Browse files
committed
Add test for generator with multiple class return types
1 parent b1a832e commit 953dcdd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--TEST--
2+
Generator return type with multiple classes
3+
--FILE--
4+
<?php
5+
6+
interface I {
7+
public function test(): Generator|ArrayAccess|array;
8+
}
9+
class C implements I {
10+
function test(): Generator|ArrayAccess|array {
11+
yield;
12+
}
13+
}
14+
15+
?>
16+
===DONE===
17+
--EXPECT--
18+
===DONE===

0 commit comments

Comments
 (0)