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:
commit
a11fd94c9c
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user