mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
12 lines
235 B
PHP
12 lines
235 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
|