mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3'
* PHP-8.3: Improve invalid cpp modifier message
This commit is contained in:
@@ -9,4 +9,4 @@ class Test {
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Cannot use the static modifier on a promoted property in %s on line %d
|
||||
Fatal error: Cannot use the static modifier on a parameter in %s on line %d
|
||||
|
||||
@@ -12,4 +12,4 @@ class Test {
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Cannot use the static modifier on a promoted property in %s on line %d
|
||||
Fatal error: Cannot use the static modifier on a parameter in %s on line %d
|
||||
|
||||
@@ -869,7 +869,7 @@ uint32_t zend_modifier_token_to_flag(zend_modifier_target target, uint32_t token
|
||||
} else if (target == ZEND_MODIFIER_TARGET_CONSTANT) {
|
||||
member = "class constant";
|
||||
} else if (target == ZEND_MODIFIER_TARGET_CPP) {
|
||||
member = "promoted property";
|
||||
member = "parameter";
|
||||
} else {
|
||||
ZEND_UNREACHABLE();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user