mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
13 lines
259 B
PHP
13 lines
259 B
PHP
--TEST--
|
|
Asymmetric visibility private(get) protected(set) not allowed
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {
|
|
private protected(set) string $bar;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Visibility of property Foo::$bar must not be weaker than set visibility in %s on line %d
|