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 238280d commit 91bb90fCopy full SHA for 91bb90f
Zend/zend_inheritance.c
@@ -539,7 +539,8 @@ static inheritance_status zend_perform_covariant_type_check(
539
/* Builtin types may be removed, but not added */
540
uint32_t fe_type_mask = ZEND_TYPE_PURE_MASK(fe_type);
541
uint32_t proto_type_mask = ZEND_TYPE_PURE_MASK(proto_type);
542
- uint32_t added_types = fe_type_mask & ~proto_type_mask;
+ /* MAY_BE_ITERABLE is only used for BC with Reflection so remove it */
543
+ uint32_t added_types = fe_type_mask & ~proto_type_mask & ~MAY_BE_ITERABLE;
544
if (added_types) {
545
if ((added_types & MAY_BE_STATIC)
546
&& zend_type_permits_self(proto_type, proto_scope, fe_scope)) {
0 commit comments