Skip to content

Commit f1ef5e8

Browse files
committed
fix a disastrous typo
1 parent b275f58 commit f1ef5e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_execute.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ static bool zend_check_intersection_type_from_cache_slot(zend_type *original_typ
11441144
zend_class_entry *arg_ce, void ***cache_slot_ptr)
11451145
{
11461146
void **cache_slot = *cache_slot_ptr;
1147-
zend_class_entry *ce = NULL;
1147+
zend_class_entry *ce;
11481148
zend_type *list_type;
11491149
bool status = true;
11501150
ZEND_TYPE_LIST_FOREACH(intersection_type_list, list_type) {
@@ -1162,8 +1162,8 @@ static bool zend_check_intersection_type_from_cache_slot(zend_type *original_typ
11621162
if (HAVE_CACHE_SLOT) {
11631163
*cache_slot_ptr = cache_slot;
11641164
}
1165-
if (status && ce) {
1166-
zend_type_satisfied_by_class(original_type, ce);
1165+
if (status) {
1166+
zend_type_satisfied_by_class(original_type, arg_ce);
11671167
}
11681168
return status;
11691169
}

0 commit comments

Comments
 (0)