We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222c6c9 commit 6c0d07eCopy full SHA for 6c0d07e
Zend/zend_compile.c
@@ -6335,6 +6335,9 @@ static zend_type zend_compile_typename(
6335
6336
/* Check for trivially redundant class types */
6337
for (size_t i = 0; i < type_list->num_types - 1; i++) {
6338
+ if (ZEND_TYPE_IS_INTERSECTION(type_list->types[i])) {
6339
+ continue;
6340
+ }
6341
if (zend_string_equals_ci(
6342
ZEND_TYPE_NAME(type_list->types[i]), ZEND_TYPE_NAME(single_type))) {
6343
zend_string *single_type_str = zend_type_to_string(single_type);
0 commit comments