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 1b95868 commit 66df47fCopy full SHA for 66df47f
Zend/zend_inheritance.c
@@ -503,8 +503,7 @@ static inheritance_status zend_is_class_subtype_of_type(
503
}
504
505
/* 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)) {
+ if ((ZEND_TYPE_FULL_MASK(proto_type) & MAY_BE_STATIC) && (fe_scope->ce_flags & ZEND_ACC_FINAL)) {
508
if (!fe_ce) fe_ce = lookup_class(fe_scope, fe_class_name);
509
if (!fe_ce) {
510
have_unresolved = 1;
0 commit comments