Skip to content

Commit

Permalink
PHPStan Pro - when launching, PHP_BINARY needs to be escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Aug 14, 2023
1 parent 8632ccf commit 2c7cfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/FixerApplication.php
Expand Up @@ -268,7 +268,7 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc
}
}

return new Process(sprintf('%s -d memory_limit=%s %s --port %d', PHP_BINARY, escapeshellarg(ini_get('memory_limit')), escapeshellarg($pharPath), $serverPort), null, $env, []);
return new Process(sprintf('%s -d memory_limit=%s %s --port %d', escapeshellarg(PHP_BINARY), escapeshellarg(ini_get('memory_limit')), escapeshellarg($pharPath), $serverPort), null, $env, []);
}

private function downloadPhar(
Expand Down

0 comments on commit 2c7cfd8

Please sign in to comment.