Skip to content

Commit 573b8de

Browse files
committed
#17725 add brackets
1 parent 8b5f894 commit 573b8de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_inheritance.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ static inheritance_status zend_is_class_subtype_of_type(
574574
}
575575

576576
// 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)) {
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)) {
579579
if (!fe_ce) fe_ce = lookup_class(fe_scope, fe_class_name);
580580

581581
if (fe_ce && instanceof_function(fe_ce, fe_scope)) {

0 commit comments

Comments
 (0)