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 a77482d commit a957dbfCopy full SHA for a957dbf
Zend/zend_inheritance.c
@@ -572,8 +572,8 @@ static inheritance_status zend_is_class_subtype_of_type(
572
}
573
574
/* Replacing static with self in final classes is okay */
575
- if (!is_intersection && (fe_scope->ce_flags & ZEND_ACC_FINAL) &&
576
- (ZEND_TYPE_FULL_MASK(proto_type) & MAY_BE_STATIC) && unlinked_instanceof(fe_scope, proto_scope)) {
+ if ((ZEND_TYPE_FULL_MASK(proto_type) & MAY_BE_STATIC) &&
+ (fe_scope->ce_flags & ZEND_ACC_FINAL) && unlinked_instanceof(fe_scope, proto_scope)) {
577
if (!fe_ce) fe_ce = lookup_class(fe_scope, fe_class_name);
578
579
if (fe_ce == fe_scope) {
0 commit comments