File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ static bool zend_check_type_slow(
1171
1171
}
1172
1172
}
1173
1173
1174
- if (ZEND_TYPE_IS_COMPLEX (type_tree -> simple_type ) && EXPECTED (Z_TYPE_P (arg ) == IS_OBJECT )) {
1174
+ if (type_tree != NULL && ZEND_TYPE_IS_COMPLEX (type_tree -> simple_type ) && EXPECTED (Z_TYPE_P (arg ) == IS_OBJECT )) {
1175
1175
const zend_class_entry * ce = zend_fetch_ce_from_cache_slot (cache_slot , & type_tree -> simple_type );
1176
1176
/* If we have a CE we check if it satisfies the type constraint,
1177
1177
* otherwise it will check if a standard type satisfies it. */
@@ -1181,7 +1181,7 @@ static bool zend_check_type_slow(
1181
1181
PROGRESS_CACHE_SLOT ();
1182
1182
}
1183
1183
1184
- const uint32_t type_mask = ZEND_TYPE_FULL_MASK (type_tree -> simple_type );
1184
+ const uint32_t type_mask = ZEND_TYPE_FULL_MASK (* type );
1185
1185
if ((type_mask & MAY_BE_CALLABLE ) &&
1186
1186
zend_is_callable (arg , is_internal ? IS_CALLABLE_SUPPRESS_DEPRECATIONS : 0 , NULL )) {
1187
1187
return 1 ;
You can’t perform that action at this time.
0 commit comments