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