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/property_hooks/final_prop.phpt
2024-07-14 11:55:03 +02:00

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