8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16dcede commit e4c7ffcCopy full SHA for e4c7ffc
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