1--TEST--
2Overwritten protected asymmetric property with public property
3--FILE--
4<?php
5
6class A {
7 public protected(set) string $foo;
8}
9
10class B extends A {
11 public string $foo;
12}
13
14$b = new B();
15$b->foo = 'foo';
16echo $b->foo, "\n";
17
18?>
19--EXPECT--
20foo
21