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

14 lines
248 B
PHP

--TEST--
ZE2 A final method cannot be abstract
--FILE--
<?php
class fail {
final abstract function show();
}
echo "Done\n"; // Shouldn't be displayed
?>
--EXPECTF--
Fatal error: Cannot use the final modifier on an abstract class member in %s