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 b5da6c4 commit ed3b2eaCopy full SHA for ed3b2ea
Zend/zend_inheritance.c
@@ -546,7 +546,7 @@ static inheritance_status zend_perform_covariant_type_check(
546
547
/* For intersection types loop over the parent types first as a child
548
* can add them */
549
- if (ZEND_TYPE_HAS_INTERSECTION(proto_type)) {
+ if (ZEND_TYPE_HAS_INTERSECTION(proto_type) || ZEND_TYPE_HAS_INTERSECTION(fe_type)) {
550
/* First try to check whether we can succeed without resolving anything */
551
ZEND_TYPE_FOREACH(proto_type, single_type) {
552
inheritance_status status;
0 commit comments