1--TEST--
2RW on parent get is forbidden
3--FILE--
4<?php
5
6class A {
7    public int $prop {
8        get {
9            return 41;
10        }
11    }
12}
13
14class B extends A {
15    public int $prop {
16        get {
17            return ++parent::$prop::get();
18        }
19    }
20}
21
22$b = new B;
23var_dump($b->prop);
24
25?>
26--EXPECTF--
27Fatal error: Can't use method return value in write context in %s on line %d
28