mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
13 lines
238 B
PHP
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
|