1--TEST--
2Using parent::$prop::get() in class with no parent
3--FILE--
4<?php
5
6class Foo {
7    public $prop {
8        get => parent::$prop::get();
9    }
10}
11
12$foo = new Foo();
13try {
14    var_dump($foo->prop);
15} catch (Error $e) {
16    echo $e->getMessage(), "\n";
17}
18
19?>
20--EXPECT--
21Cannot use "parent" when current class scope has no parent
22