Skip to content

Commit

Permalink
Fix #4019 - new static isn’t static if class is final
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Aug 18, 2020
1 parent 7ac6d2e commit ebe3739
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -82,8 +82,12 @@ public static function analyze(
// @todo maybe we can do better here
$class_storage = $codebase->classlike_storage_provider->get($context->self);
$fq_class_name = $class_storage->name;
$can_extend = true;
$from_static = true;

if (!$class_storage->final) {
$can_extend = true;
$from_static = true;
}

break;
}
}
Expand Down

0 comments on commit ebe3739

Please sign in to comment.