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 1d353f8 commit 9369f53Copy full SHA for 9369f53
Zend/zend_inheritance.c
@@ -572,7 +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 && instanceof_function(fe_scope, proto_scope)) {
+ if (!is_intersection && fe_scope->ce_flags & ZEND_ACC_FINAL &&
576
+ ZEND_TYPE_FULL_MASK(proto_type) & MAY_BE_STATIC && instanceof_function(fe_scope, proto_scope)) {
577
if (!fe_ce) fe_ce = lookup_class(fe_scope, fe_class_name);
578
579
if (fe_ce && instanceof_function(fe_ce, fe_scope)) {
0 commit comments