
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
11 lines
195 B
PHP
11 lines
195 B
PHP
--TEST--
|
|
Abstract constants are not allowed
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
abstract const X = 1;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use the abstract modifier on a class constant in %s on line %d
|