Skip to content

Commit 42fffcd

Browse files
committed
Don't mark individual types as part of an intersection
1 parent 15a38d7 commit 42fffcd

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
@@ -6324,9 +6324,6 @@ static zend_type zend_compile_typename(
63246324
}
63256325
zend_string_release_ex(standard_type_str, false);
63266326

6327-
/* Inform that the type is part of an intersection type */
6328-
ZEND_TYPE_FULL_MASK(single_type) |= _ZEND_TYPE_INTERSECTION_BIT;
6329-
63306327
if (!ZEND_TYPE_IS_COMPLEX(type)) {
63316328
/* The first class type can be stored directly as the type ptr payload. */
63326329
ZEND_TYPE_SET_PTR(type, ZEND_TYPE_NAME(single_type));
@@ -6360,7 +6357,7 @@ static zend_type zend_compile_typename(
63606357
memcpy(list, type_list, ZEND_TYPE_LIST_SIZE(type_list->num_types));
63616358
ZEND_TYPE_SET_LIST(type, list);
63626359
ZEND_TYPE_FULL_MASK(type) |= _ZEND_TYPE_ARENA_BIT;
6363-
/* Inform that the type list contains an intersection type */
6360+
/* Inform that the type list is an intersection type */
63646361
ZEND_TYPE_FULL_MASK(type) |= _ZEND_TYPE_INTERSECTION_BIT;
63656362
}
63666363

0 commit comments

Comments
 (0)