1--TEST--
2readonly property satisfies get only interface property
3--FILE--
4<?php
5interface I {
6    public int $prop { get; }
7}
8class C implements I {
9    public function __construct(public readonly int $prop) {}
10}
11$c = new C(42);
12var_dump($c->prop);
13?>
14--EXPECT--
15int(42)
16