@@ -260,7 +260,7 @@ public function log(string $message): void
260260 if ($ exitCode === 0 ) {
261261 return ;
262262 }
263- $ output ->writeln (sprintf ('<fg=red>Fixer process exited with code %d.</> ' , $ exitCode ));
263+ $ output ->writeln (sprintf ('<fg=red>PHPStan Pro process exited with code %d.</> ' , $ exitCode ));
264264 });
265265
266266 $ loop ->run ();
@@ -282,7 +282,7 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc
282282 $ this ->downloadPhar ($ output , $ pharPath , $ infoPath );
283283 } catch (\RuntimeException $ e ) {
284284 if (!file_exists ($ pharPath )) {
285- $ output ->writeln ('<fg=red>Could not download the fixer executable.</> ' );
285+ $ output ->writeln ('<fg=red>Could not download the PHPStan Pro executable.</> ' );
286286 $ output ->writeln ($ e ->getMessage ());
287287
288288 throw new \PHPStan \Command \FixerProcessException ();
@@ -297,15 +297,15 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc
297297 } catch (\Throwable $ e ) {
298298 @unlink ($ pharPath );
299299 @unlink ($ infoPath );
300- $ output ->writeln ('<fg=red>Fixer PHAR signature is corrupted.</> ' );
300+ $ output ->writeln ('<fg=red>PHPStan Pro PHAR signature is corrupted.</> ' );
301301
302302 throw new \PHPStan \Command \FixerProcessException ();
303303 }
304304
305305 if ($ phar ->getSignature ()['hash_type ' ] !== 'OpenSSL ' ) {
306306 @unlink ($ pharPath );
307307 @unlink ($ infoPath );
308- $ output ->writeln ('<fg=red>Fixer PHAR signature is corrupted.</> ' );
308+ $ output ->writeln ('<fg=red>PHPStan Pro PHAR signature is corrupted.</> ' );
309309
310310 throw new \PHPStan \Command \FixerProcessException ();
311311 }
@@ -332,7 +332,7 @@ private function downloadPhar(
332332 return ;
333333 }
334334
335- $ output ->writeln ('<fg=green>Checking if there \'s a new PHPStan Fixer release...</> ' );
335+ $ output ->writeln ('<fg=green>Checking if there \'s a new PHPStan Pro release...</> ' );
336336 }
337337
338338 $ loop = new StreamSelectLoop ();
@@ -353,11 +353,11 @@ private function downloadPhar(
353353 $ latestInfo = Json::decode ((string ) await ($ client ->get ('https://fixer-download-api.phpstan.com/latest ' ), $ loop , 5.0 )->getBody (), Json::FORCE_ARRAY );
354354 if ($ currentVersion !== null && $ latestInfo ['version ' ] === $ currentVersion ) {
355355 $ this ->writeInfoFile ($ infoPath , $ latestInfo ['version ' ]);
356- $ output ->writeln ('<fg=green>You \'re running the latest PHPStan Fixer !</> ' );
356+ $ output ->writeln ('<fg=green>You \'re running the latest PHPStan Pro !</> ' );
357357 return ;
358358 }
359359
360- $ output ->writeln ('<fg=green>Downloading the latest PHPStan Fixer ...</> ' );
360+ $ output ->writeln ('<fg=green>Downloading the latest PHPStan Pro ...</> ' );
361361
362362 $ progressBar = new ProgressBar ($ output );
363363 $ client ->requestStreaming ('GET ' , $ latestInfo ['url ' ])->then (static function (ResponseInterface $ response ) use ($ loop , $ pharPath , $ progressBar ): void {
0 commit comments