1--TEST--
2Allow calling parent get in generator property hooks
3--FILE--
4<?php
5
6class A {
7    public $prop = 42;
8}
9
10class B extends A {
11    public $prop {
12        get {
13            yield parent::$prop::get() + 1;
14            yield parent::$prop::get() + 2;
15            yield parent::$prop::get() + 3;
16        }
17    }
18}
19
20$b = new B();
21foreach ($b->prop as $value) {
22    var_dump($value);
23}
24
25?>
26--EXPECT--
27int(43)
28int(44)
29int(45)
30