Skip to content

Commit

Permalink
PHPStan Pro - do not monitor file changes when analysis is in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 6, 2024
1 parent c84a072 commit 1632a2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/FixerApplication.php
Expand Up @@ -412,6 +412,10 @@ private function monitorFileChanges(LoopInterface $loop, callable $hasChangesCal
$loop->addTimer(1.0, $callback);
return;
}
if ($this->processInProgress !== null) {
$loop->addTimer(1.0, $callback);
return;
}
$changes = $this->fileMonitor->getChanges();

if ($changes->hasAnyChanges()) {
Expand Down

0 comments on commit 1632a2d

Please sign in to comment.