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 4c0e600 commit 33a7f22Copy full SHA for 33a7f22
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