Skip to content

Commit 934a9a6

Browse files
committed
Rebase fixup
1 parent fe7c270 commit 934a9a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_inheritance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ static inheritance_status zend_perform_covariant_type_check(
643643
* subtype of a parent single/intersection type, either it is an INvalid subtype
644644
* when the parent is a union or it is unresolved, we check which case this is */
645645
if (ZEND_TYPE_IS_UNION(proto_type) && !parent_union_has_unresolved) {
646-
return tentative ? INHERITANCE_WARNING : INHERITANCE_ERROR;
646+
return INHERITANCE_ERROR;
647647
}
648648
} else {
649649
/* First try to check whether we can succeed without resolving anything */

0 commit comments

Comments
 (0)