Commit 06aa4e96 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3224829 by Gábor Hojtsy, mstrelan, aangel: Set PHPStan memory limit to unlimited on exec()

parent 5bba566b
......@@ -278,7 +278,7 @@ final class DeprecationAnalyzer {
$output = [];
$error_filename = $this->temporaryDirectory . '/phpstan_error_output';
$command = $this->binPath . '/phpstan analyse --error-format=json -c ' . $this->phpstanNeonPath . ' ' . $project_dir . ' 2> ' . $error_filename;
$command = $this->binPath . '/phpstan analyse --memory-limit=-1 --error-format=json -c ' . $this->phpstanNeonPath . ' ' . $project_dir . ' 2> ' . $error_filename;
exec($command, $output);
$json = json_decode(implode('', $output), TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment