mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
RFC: https://wiki.php.net/rfc/property-hooks Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
22 lines
266 B
PHP
22 lines
266 B
PHP
--TEST--
|
|
Parent hook call restriction may fail due to mangled name
|
|
--FILE--
|
|
<?php
|
|
|
|
class B {
|
|
protected mixed $x;
|
|
}
|
|
|
|
class C extends B {
|
|
protected mixed $x {
|
|
set {
|
|
parent::$x::set(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|