Skip to content

Commit

Permalink
Lower phpstan memory-limit to match container limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
JaxkDev committed Jun 2, 2023
1 parent 5a04c83 commit 2bcbbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

echo "[Info] -> Starting phpstan...\n";

$proc = proc_open("phpstan analyze --error-format=json --no-progress --memory-limit=2G -c {$_ENV["PHPSTAN_CONFIG"]} > /source/phpstan-results.json", [0 => ["file", "/dev/null", "r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"]], $pipes);
$proc = proc_open("phpstan analyze --error-format=json --no-progress --memory-limit=256M -c {$_ENV["PHPSTAN_CONFIG"]} > /source/phpstan-results.json", [0 => ["file", "/dev/null", "r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"]], $pipes);
if(is_resource($proc)) {
$stdout = stream_get_contents($pipes[1]);
fclose($pipes[1]);
Expand Down

0 comments on commit 2bcbbfb

Please sign in to comment.