Skip to content

Commit 66df47f

Browse files
committed
#17725 remove unlinked_instanceof
1 parent 1b95868 commit 66df47f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_inheritance.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,7 @@ static inheritance_status zend_is_class_subtype_of_type(
503503
}
504504

505505
/* Replacing static with self in final classes is okay */
506-
if ((ZEND_TYPE_FULL_MASK(proto_type) & MAY_BE_STATIC) &&
507-
(fe_scope->ce_flags & ZEND_ACC_FINAL) && unlinked_instanceof(fe_scope, proto_scope)) {
506+
if ((ZEND_TYPE_FULL_MASK(proto_type) & MAY_BE_STATIC) && (fe_scope->ce_flags & ZEND_ACC_FINAL)) {
508507
if (!fe_ce) fe_ce = lookup_class(fe_scope, fe_class_name);
509508
if (!fe_ce) {
510509
have_unresolved = 1;

0 commit comments

Comments
 (0)