Skip to content

Commit 6865227

Browse files
committed
This is safer
1 parent 452d081 commit 6865227

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/FixerApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc
319319
$output->writeln('Running in Docker? Don\'t forget to do these steps:');
320320

321321
$output->writeln('1) Publish this port when running Docker:');
322-
$output->writeln(sprintf(' <fg=cyan>-p %d</>', $_SERVER['PHPSTAN_PRO_WEB_PORT']));
322+
$output->writeln(sprintf(' <fg=cyan>-p 127.0.0.1:%d:%d</>', $_SERVER['PHPSTAN_PRO_WEB_PORT'], $_SERVER['PHPSTAN_PRO_WEB_PORT']));
323323
$output->writeln('2) Map the temp directory to a persistent volume');
324324
$output->writeln(' so that you don\'t have to log in every time:');
325325
$output->writeln(sprintf(' <fg=cyan>-v ~/phpstan-pro:%s</>', $this->fixerTmpDir));

0 commit comments

Comments
 (0)