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 8b5f894 commit 573b8deCopy full SHA for 573b8de
Zend/zend_inheritance.c
@@ -574,8 +574,8 @@ static inheritance_status zend_is_class_subtype_of_type(
574
}
575
576
// replacing static with self in final classes is okay
577
- if (!is_intersection && fe_scope->ce_flags & ZEND_ACC_FINAL &&
578
- proto_type_full_mask & MAY_BE_STATIC && instanceof_function(fe_scope, proto_scope)) {
+ if (!is_intersection && (fe_scope->ce_flags & ZEND_ACC_FINAL) &&
+ (proto_type_full_mask & MAY_BE_STATIC) && instanceof_function(fe_scope, proto_scope)) {
579
if (!fe_ce) fe_ce = lookup_class(fe_scope, fe_class_name);
580
581
if (fe_ce && instanceof_function(fe_ce, fe_scope)) {
0 commit comments