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:
Nikita Popov 2021-07-09 12:34:35 +02:00
parent 2fe242db39
commit cdbe39b16a

View file

@ -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;
}