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:
parent
2943cfe11d
commit
1ff41e68a0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user