1--TEST--
2Yield from non-iterable
3--FILE--
4<?php
5
6function gen() {
7    yield from new stdClass;
8}
9
10try {
11    gen()->current();
12} catch (Error $e) {
13    echo $e->getMessage(), "\n";
14}
15
16?>
17--EXPECT--
18Can use "yield from" only with arrays and Traversables
19