File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -1140,31 +1140,6 @@ static zend_always_inline zend_class_entry *zend_fetch_ce_from_cache_slot(
1140
1140
return ce ;
1141
1141
}
1142
1142
1143
- static bool zend_check_intersection_type_from_cache_slot (zend_type_list * intersection_type_list ,
1144
- zend_class_entry * arg_ce , void * * * cache_slot_ptr )
1145
- {
1146
- void * * cache_slot = * cache_slot_ptr ;
1147
- zend_class_entry * ce ;
1148
- zend_type * list_type ;
1149
- bool status = true;
1150
- ZEND_TYPE_LIST_FOREACH (intersection_type_list , list_type ) {
1151
- /* Only check classes if the type might be valid */
1152
- if (status ) {
1153
- ce = zend_fetch_ce_from_cache_slot (cache_slot , list_type );
1154
- /* If type is not an instance of one of the types taking part in the
1155
- * intersection it cannot be a valid instance of the whole intersection type. */
1156
- if (!ce || !instanceof_function (arg_ce , ce )) {
1157
- status = false;
1158
- }
1159
- }
1160
- PROGRESS_CACHE_SLOT ();
1161
- } ZEND_TYPE_LIST_FOREACH_END ();
1162
- if (HAVE_CACHE_SLOT ) {
1163
- * cache_slot_ptr = cache_slot ;
1164
- }
1165
- return status ;
1166
- }
1167
-
1168
1143
static int zend_type_node_matches (const zend_type_node * node , zval * zv )
1169
1144
{
1170
1145
switch (node -> kind ) {
You can’t perform that action at this time.
0 commit comments