Skip to content

Commit ee18bdb

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 706ba15 + a9d4cae commit ee18bdb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/zend_inheritance.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,9 @@ static void zend_do_traits_property_binding(zend_class_entry *ce, zend_class_ent
18121812

18131813
Z_TRY_ADDREF_P(prop_value);
18141814
doc_comment = property_info->doc_comment ? zend_string_copy(property_info->doc_comment) : NULL;
1815+
if (ZEND_TYPE_IS_NAME(property_info->type)) {
1816+
zend_string_addref(ZEND_TYPE_NAME(property_info->type));
1817+
}
18151818
zend_declare_typed_property(ce, prop_name, prop_value, flags, doc_comment, property_info->type);
18161819
zend_string_release_ex(prop_name, 0);
18171820
} ZEND_HASH_FOREACH_END();

0 commit comments

Comments
 (0)