Skip to content

Commit 1b05e64

Browse files
committed
Don't mark individual types as part of an intersection
1 parent 3bb462b commit 1b05e64

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6320,9 +6320,6 @@ static zend_type zend_compile_typename(
63206320
}
63216321
zend_string_release_ex(standard_type_str, false);
63226322

6323-
/* Inform that the type is part of an intersection type */
6324-
ZEND_TYPE_FULL_MASK(single_type) |= _ZEND_TYPE_INTERSECTION_BIT;
6325-
63266323
if (!ZEND_TYPE_IS_COMPLEX(type)) {
63276324
/* The first class type can be stored directly as the type ptr payload. */
63286325
ZEND_TYPE_SET_PTR(type, ZEND_TYPE_NAME(single_type));
@@ -6356,7 +6353,7 @@ static zend_type zend_compile_typename(
63566353
memcpy(list, type_list, ZEND_TYPE_LIST_SIZE(type_list->num_types));
63576354
ZEND_TYPE_SET_LIST(type, list);
63586355
ZEND_TYPE_FULL_MASK(type) |= _ZEND_TYPE_ARENA_BIT;
6359-
/* Inform that the type list contains an intersection type */
6356+
/* Inform that the type list is an intersection type */
63606357
ZEND_TYPE_FULL_MASK(type) |= _ZEND_TYPE_INTERSECTION_BIT;
63616358
}
63626359

0 commit comments

Comments
 (0)