File tree 1 file changed +0
-25
lines changed
1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -1177,31 +1177,6 @@ static zend_always_inline zend_class_entry *zend_fetch_ce_from_cache_slot(
1177
1177
return ce ;
1178
1178
}
1179
1179
1180
- static bool zend_check_intersection_type_from_cache_slot (zend_type_list * intersection_type_list ,
1181
- zend_class_entry * arg_ce , void * * * cache_slot_ptr )
1182
- {
1183
- void * * cache_slot = * cache_slot_ptr ;
1184
- zend_class_entry * ce ;
1185
- zend_type * list_type ;
1186
- bool status = true;
1187
- ZEND_TYPE_LIST_FOREACH (intersection_type_list , list_type ) {
1188
- /* Only check classes if the type might be valid */
1189
- if (status ) {
1190
- ce = zend_fetch_ce_from_cache_slot (cache_slot , list_type );
1191
- /* If type is not an instance of one of the types taking part in the
1192
- * intersection it cannot be a valid instance of the whole intersection type. */
1193
- if (!ce || !instanceof_function (arg_ce , ce )) {
1194
- status = false;
1195
- }
1196
- }
1197
- PROGRESS_CACHE_SLOT ();
1198
- } ZEND_TYPE_LIST_FOREACH_END ();
1199
- if (HAVE_CACHE_SLOT ) {
1200
- * cache_slot_ptr = cache_slot ;
1201
- }
1202
- return status ;
1203
- }
1204
-
1205
1180
static int zend_type_node_matches (const zend_type_node * node , zval * zv )
1206
1181
{
1207
1182
switch (node -> kind ) {
You can’t perform that action at this time.
0 commit comments