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 6836b10 commit 2170f7bCopy full SHA for 2170f7b
Zend/zend_inheritance.c
@@ -631,7 +631,7 @@ static inheritance_status zend_perform_covariant_type_check(
631
* subtype of a parent single/intersection type, either it is an INvalid subtype
632
* when the parent is a union or it is unresolved, we check which case this is */
633
if (ZEND_TYPE_IS_UNION(proto_type) && !parent_union_has_unresolved) {
634
- return tentative ? INHERITANCE_WARNING : INHERITANCE_ERROR;
+ return INHERITANCE_ERROR;
635
}
636
} else {
637
/* First try to check whether we can succeed without resolving anything */
0 commit comments