ru_php/Zend/tests/property_hooks/invalid_abstract_indirect.phpt

17 lines
373 B
PHP

--TEST--
Class with abstract property hook not declared abstract (inherited 1)
--FILE--
<?php
abstract class A {
public abstract $prop { get; }
}
class B extends A {
public $prop { set {} }
}
?>
--EXPECTF--
Fatal error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining method (A::$prop::get) in %s on line %d