1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Remove always-empty ClassAnalyzer leftover_stmts array

This commit is contained in:
Evan Shaw 2023-03-16 07:02:43 +13:00
parent c272be1e04
commit 37ff3a0657
2 changed files with 0 additions and 15 deletions

View File

@ -362,16 +362,6 @@ class ClassAnalyzer extends ClassLikeAnalyzer
return;
}
if ($this->leftover_stmts) {
(new StatementsAnalyzer(
$this,
new NodeDataProvider(),
))->analyze(
$this->leftover_stmts,
$class_context,
);
}
if (!$storage->abstract) {
foreach ($storage->declaring_method_ids as $declaring_method_id) {
$method_storage = $codebase->methods->getStorage($declaring_method_id);

View File

@ -92,11 +92,6 @@ abstract class ClassLikeAnalyzer extends SourceAnalyzer
*/
protected ?string $parent_fq_class_name = null;
/**
* @var PhpParser\Node\Stmt[]
*/
protected array $leftover_stmts = [];
protected ClassLikeStorage $storage;
public function __construct(PhpParser\Node\Stmt\ClassLike $class, SourceAnalyzer $source, string $fq_class_name)