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