1--TEST--
2Set-only virtual property must not specify asymmetric visibility
3--FILE--
4<?php
5
6class Foo {
7 public private(set) int $bar {
8 set {}
9 }
10}
11
12?>
13--EXPECTF--
14Fatal error: Write-only virtual property Foo::$bar must not specify asymmetric visibility in %s on line %d
15