Skip to content

Commit b95606e

Browse files
committed
Force update of the PHPStan Pro PHAR in case of crash
1 parent d194a47 commit b95606e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/FixerApplication.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function log(string $message): void
244244
}
245245

246246
$fixerProcess->start($loop);
247-
$fixerProcess->on('exit', static function ($exitCode) use ($output, $loop): void {
247+
$fixerProcess->on('exit', function ($exitCode) use ($output, $loop): void {
248248
$loop->stop();
249249
if ($exitCode === null) {
250250
return;
@@ -253,6 +253,7 @@ public function log(string $message): void
253253
return;
254254
}
255255
$output->writeln(sprintf('<fg=red>PHPStan Pro process exited with code %d.</>', $exitCode));
256+
@unlink($this->fixerTmpDir . '/phar-info.json');
256257
});
257258

258259
$loop->run();

0 commit comments

Comments
 (0)