mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08: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
14 lines
209 B
PHP
14 lines
209 B
PHP
--TEST--
|
|
errmsg: properties cannot be abstract
|
|
--FILE--
|
|
<?php
|
|
|
|
class test {
|
|
abstract $var = 1;
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use the abstract modifier on a property in %s on line %d
|