From 5baa98097073419aec6caea903cc694e85e46cfc Mon Sep 17 00:00:00 2001 From: Gudmundur Haraldsson Date: Mon, 7 Mar 2022 14:35:12 +0000 Subject: [PATCH] Setting PHPCS memory limit. --- phpcs-scan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpcs-scan.php b/phpcs-scan.php index 2081d2d4e..582ed78fd 100644 --- a/phpcs-scan.php +++ b/phpcs-scan.php @@ -108,7 +108,7 @@ function vipgoci_phpcs_do_scan( * Feed PHPCS the temporary file specified by our caller. */ $cmd = sprintf( - '%s %s --severity=%s --report=%s', + '%s -d memory_limit=500M %s --severity=%s --report=%s', escapeshellcmd( $phpcs_php_path ), escapeshellcmd( $phpcs_path ), escapeshellarg( (string) $phpcs_severity ),