mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
adfdfb2e1e
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
189 B
PHP
11 lines
189 B
PHP
--TEST--
|
|
Static constants are not allowed
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
static const X = 1;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use the static modifier on a class constant in %s on line %d
|