mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove unnecessary property name unmangling
The property name isn't mangled in this context. Unmangling would only be necessary if we used the name stored in the property_info.
This commit is contained in:
parent
2fe242db39
commit
cdbe39b16a
1 changed files with 1 additions and 2 deletions
|
@ -1424,8 +1424,7 @@ undeclared_property:
|
|||
if (UNEXPECTED((type == BP_VAR_R || type == BP_VAR_RW)
|
||||
&& Z_TYPE_P(ret) == IS_UNDEF && ZEND_TYPE_IS_SET(property_info->type))) {
|
||||
zend_throw_error(NULL, "Typed static property %s::$%s must not be accessed before initialization",
|
||||
ZSTR_VAL(property_info->ce->name),
|
||||
zend_get_unmangled_property_name(property_name));
|
||||
ZSTR_VAL(property_info->ce->name), ZSTR_VAL(property_name));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue