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.
2 parents 914c1ba + e4c7ffc commit 703763fCopy full SHA for 703763f
Zend/tests/generators/gh8289.phpt
@@ -6,7 +6,7 @@ GH-8289 (Exceptions thrown within a yielded from iterator are not rethrown into
6
function yieldFromIteratorGeneratorThrows() {
7
try {
8
yield from new class(new ArrayIterator([1, -2])) extends IteratorIterator {
9
- public function key() {
+ public function key(): mixed {
10
if ($k = parent::key()) {
11
throw new Exception;
12
}
@@ -31,4 +31,4 @@ Stack trace:
31
#0 %s(%d): IteratorIterator@anonymous->key()
32
#1 %s(%d): yieldFromIteratorGeneratorThrows()
33
#2 {main}
34
-int(2)
+int(2)
0 commit comments