Skip to content

Commit 49073fc

Browse files
committed
Add zend assert deleted by accident
1 parent 61239e1 commit 49073fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_functio
20032003
}
20042004
if (info->type_hint) {
20052005
if (info->class_name) {
2006+
ZEND_ASSERT(info->type_hint == IS_OBJECT);
20062007
if (!scope && (!strcasecmp(info->class_name, "self") || !strcasecmp(info->class_name, "parent"))) {
20072008
zend_error(E_CORE_ERROR, "Cannot declare a return type of %s outside of a class scope", info->class_name);
20082009
}

0 commit comments

Comments
 (0)