Skip to content

Commit 2170f7b

Browse files
committed
Rebase fixup
1 parent 6836b10 commit 2170f7b

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
@@ -631,7 +631,7 @@ static inheritance_status zend_perform_covariant_type_check(
631631
* subtype of a parent single/intersection type, either it is an INvalid subtype
632632
* when the parent is a union or it is unresolved, we check which case this is */
633633
if (ZEND_TYPE_IS_UNION(proto_type) && !parent_union_has_unresolved) {
634-
return tentative ? INHERITANCE_WARNING : INHERITANCE_ERROR;
634+
return INHERITANCE_ERROR;
635635
}
636636
} else {
637637
/* First try to check whether we can succeed without resolving anything */

0 commit comments

Comments
 (0)