1--TEST--
2Inherited hooks change visibility with property
3--FILE--
4<?php
5
6class A {
7    protected $prop {
8        get => 42;
9    }
10}
11
12class B extends A {
13    public $prop {
14        set {}
15    }
16}
17
18$b = new B();
19var_dump($b->prop);
20
21?>
22--EXPECT--
23int(42)
24