1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
We do not need this shim anymore since it is converted to a proper DNF type at compile time
This commit is contained in:
George Peter Banyard
2022-10-24 11:41:42 +01:00
parent 0b0259a418
commit 8c2df899d0

View File

@@ -1230,12 +1230,7 @@ zend_string *zend_type_to_string_resolved(zend_type type, zend_class_entry *scop
/* Pure intersection type */
if (ZEND_TYPE_IS_INTERSECTION(type)) {
ZEND_ASSERT(!ZEND_TYPE_IS_UNION(type));
bool is_bracketed = false;
/* Shim for implicitly nullable pure intersection types */
if (UNEXPECTED(ZEND_TYPE_PURE_MASK(type) & MAY_BE_NULL)) {
is_bracketed = true;
}
str = add_intersection_type(str, ZEND_TYPE_LIST(type), scope, is_bracketed);
str = add_intersection_type(str, ZEND_TYPE_LIST(type), scope, /* is_bracketed */ false);
} else if (ZEND_TYPE_HAS_LIST(type)) {
/* A union type might not be a list */
zend_type *list_type;