Skip to content

Commit 2c7cfd8

Browse files
committed
PHPStan Pro - when launching, PHP_BINARY needs to be escaped
1 parent 8632ccf commit 2c7cfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/FixerApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc
268268
}
269269
}
270270

271-
return new Process(sprintf('%s -d memory_limit=%s %s --port %d', PHP_BINARY, escapeshellarg(ini_get('memory_limit')), escapeshellarg($pharPath), $serverPort), null, $env, []);
271+
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, []);
272272
}
273273

274274
private function downloadPhar(

0 commit comments

Comments
 (0)