mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

RFC: https://wiki.php.net/rfc/property-hooks Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
15 lines
315 B
PHP
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
|