Skip to content

Commit 1632a2d

Browse files
committed
PHPStan Pro - do not monitor file changes when analysis is in progress
1 parent c84a072 commit 1632a2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Command/FixerApplication.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ private function monitorFileChanges(LoopInterface $loop, callable $hasChangesCal
412412
$loop->addTimer(1.0, $callback);
413413
return;
414414
}
415+
if ($this->processInProgress !== null) {
416+
$loop->addTimer(1.0, $callback);
417+
return;
418+
}
415419
$changes = $this->fileMonitor->getChanges();
416420

417421
if ($changes->hasAnyChanges()) {

0 commit comments

Comments
 (0)