php-src/Zend/tests/access_modifiers_013.phpt
2020-02-03 22:52:20 +01:00

13 lines
238 B
PHP

--TEST--
Prevent abstract and final in the same class declaration
--FILE--
<?php
final abstract class C {
private function priv() { }
}
?>
--EXPECTF--
Fatal error: Cannot use the final modifier on an abstract class in %s on line %d