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>
17 lines
265 B
PHP
17 lines
265 B
PHP
--TEST--
|
|
Property itself may be marked final (hook)
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
public final $prop { get {} set {} }
|
|
}
|
|
|
|
class B extends A {
|
|
public $prop { get {} set {} }
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot override final property A::$prop in %s on line %d
|