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 fe7c270 commit 934a9a6Copy full SHA for 934a9a6
Zend/zend_inheritance.c
@@ -643,7 +643,7 @@ static inheritance_status zend_perform_covariant_type_check(
643
* subtype of a parent single/intersection type, either it is an INvalid subtype
644
* when the parent is a union or it is unresolved, we check which case this is */
645
if (ZEND_TYPE_IS_UNION(proto_type) && !parent_union_has_unresolved) {
646
- return tentative ? INHERITANCE_WARNING : INHERITANCE_ERROR;
+ return INHERITANCE_ERROR;
647
}
648
} else {
649
/* First try to check whether we can succeed without resolving anything */
0 commit comments