mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

Use a shared non-terminal for all class modifiers. This avoids conflicts when adding modifiers that are only valid for certain targets. This change is necessary for asymmetric visibility but might be useful for other future additions. Closes GH-9926
13 lines
253 B
PHP
13 lines
253 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 method in %s on line %d
|