php-src/Zend/tests/property_hooks/interface.phpt
Ilija Tovilo 780a8280d2
[RFC] Property hooks (#13455)
RFC: https://wiki.php.net/rfc/property-hooks

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
2024-07-14 11:55:03 +02:00

15 lines
315 B
PHP

--TEST--
Property hooks in interfaces
--FILE--
<?php
interface I {
public $prop { get; set; }
}
class C implements I {
}
?>
--EXPECTF--
Fatal error: Class C contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (I::$prop::get, I::$prop::set) in %s on line %d