mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +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);
|
$event = new BeforeFileAnalysisEvent($this, $this->context, $file_storage, $codebase, $stmts);
|
||||||
$codebase->config->eventDispatcher->dispatchBeforeFileAnalysis($event);
|
$codebase->config->eventDispatcher->dispatchBeforeFileAnalysis($event);
|
||||||
$stmts = $event->getStmts();
|
|
||||||
|
|
||||||
if ($codebase->alter_code) {
|
if ($codebase->alter_code) {
|
||||||
foreach ($stmts as $stmt) {
|
foreach ($stmts as $stmt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user