diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-09 08:48:33 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-09 08:48:33 +0100 |
commit | 5fcc12f505374bc7116f0e0f10c67a68f11907d6 (patch) | |
tree | 436005f5a16bbe1ec6066b84d5eca2139440219a /Zend/zend_inheritance.c | |
parent | 84354c62b37a56816a695b18ebd898f9703a9ad2 (diff) | |
download | php-git-5fcc12f505374bc7116f0e0f10c67a68f11907d6.tar.gz |
Use unmangled named in property type inheritance error
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r-- | Zend/zend_inheritance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 56d9e6268f..0dbb5b77a6 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -936,7 +936,7 @@ static void emit_incompatible_property_error( zend_error_noreturn(E_COMPILE_ERROR, "Type of %s::$%s must be %s%s (as in class %s)", ZSTR_VAL(child->ce->name), - ZSTR_VAL(child->name), + zend_get_unmangled_property_name(child->name), ZEND_TYPE_ALLOW_NULL(parent->type) ? "?" : "", ZEND_TYPE_IS_CLASS(parent->type) ? ZSTR_VAL(ZEND_TYPE_IS_CE(parent->type) ? ZEND_TYPE_CE(parent->type)->name : resolve_class_name(parent->ce, ZEND_TYPE_NAME(parent->type))) |