From 2bcbbfb2abc8aad084d928e717a5a0db1bc8681b Mon Sep 17 00:00:00 2001 From: Jack Honour Date: Fri, 2 Jun 2023 17:30:32 +0100 Subject: [PATCH] Lower phpstan memory-limit to match container limit. --- entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry.php b/entry.php index 36ca65d..6119d68 100755 --- a/entry.php +++ b/entry.php @@ -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]);