1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/asymmetric_visibility/decrease_scope_private_protected.phpt
Ilija Tovilo 8df557ac42 [RFC] Asymmetric visibility v2 (GH-15063)
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
2024-08-27 02:04:48 +02:00

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