dis-bench / src /php /php-src /tests /classes /abstract_final.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
253 Bytes
--TEST--
ZE2 A final method cannot be abstract
--FILE--
<?php
class fail {
abstract final function show();
}
echo "Done\n"; // Shouldn't be displayed
?>
--EXPECTF--
Fatal error: Cannot use the final modifier on an abstract method in %s on line %d