1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00

Drop superfluous fetching of statements from event

This commit is contained in:
Oliver Hader 2024-02-20 00:22:14 +01:00
parent 2943cfe11d
commit 1ff41e68a0
No known key found for this signature in database
GPG Key ID: C19FAFD699012A5A

View File

@ -152,7 +152,6 @@ class FileAnalyzer extends SourceAnalyzer
$event = new BeforeFileAnalysisEvent($this, $this->context, $file_storage, $codebase, $stmts);
$codebase->config->eventDispatcher->dispatchBeforeFileAnalysis($event);
$stmts = $event->getStmts();
if ($codebase->alter_code) {
foreach ($stmts as $stmt) {