1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Merge pull request #9522 from edsrzf/unused-class-analyzer-property

Remove always-empty ClassAnalyzer leftover_stmts array
This commit is contained in:
orklah 2023-03-15 20:09:01 +01:00 committed by GitHub
commit a11fd94c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)