blob: 4e9aa07f421b1fe807a9fb91988536c9291f8ef2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Generator with return type does not fail with empty return
--FILE--
<?php
$a = function(): \Iterator {
yield 1;
return;
};
foreach($a() as $value) {
echo $value;
}
--EXPECT--
1
|