1--TEST--
2It's not possible to assign dynamic properties on a generator
3--FILE--
4<?php
5
6function gen() {
7    yield;
8}
9
10$gen = gen();
11try {
12    $gen->prop = new stdClass;
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16
17?>
18--EXPECT--
19Cannot create dynamic property Generator::$prop
20