Skip to content

Commit 8c2df89

Browse files
committedOct 24, 2022
Revert 01eb06a
We do not need this shim anymore since it is converted to a proper DNF type at compile time
1 parent 0b0259a commit 8c2df89

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎Zend/zend_compile.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -1230,12 +1230,7 @@ zend_string *zend_type_to_string_resolved(zend_type type, zend_class_entry *scop
12301230
/* Pure intersection type */
12311231
if (ZEND_TYPE_IS_INTERSECTION(type)) {
12321232
ZEND_ASSERT(!ZEND_TYPE_IS_UNION(type));
1233-
bool is_bracketed = false;
1234-
/* Shim for implicitly nullable pure intersection types */
1235-
if (UNEXPECTED(ZEND_TYPE_PURE_MASK(type) & MAY_BE_NULL)) {
1236-
is_bracketed = true;
1237-
}
1238-
str = add_intersection_type(str, ZEND_TYPE_LIST(type), scope, is_bracketed);
1233+
str = add_intersection_type(str, ZEND_TYPE_LIST(type), scope, /* is_bracketed */ false);
12391234
} else if (ZEND_TYPE_HAS_LIST(type)) {
12401235
/* A union type might not be a list */
12411236
zend_type *list_type;

0 commit comments

Comments
 (0)