1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/tests/classes/interface_method_final.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

13 lines
219 B
PHP

--TEST--
ZE2 An interface method cannot be final
--FILE--
<?php
class if_a {
abstract final function err();
}
?>
--EXPECTF--
Fatal error: Cannot use the final modifier on an abstract class member in %s on line %d