From 5e0f5343227347b6d14deb1abc673858355422ff Mon Sep 17 00:00:00 2001
From: Yassine Doghri <yassine@doghri.fr>
Date: Thu, 20 May 2021 14:43:12 +0000
Subject: [PATCH] ci: increase memory limit for phpstan command

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 75d7fcd6b9..bdecaedb44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,7 +48,8 @@ code-style:
 static-analysis:
   stage: quality
   script:
-    - vendor/bin/phpstan analyse --ansi
+    # increase memory limit to 1GB because of script failure
+    - php -d memory_limit=1G vendor/bin/phpstan analyse --ansi
 
 code-review:
   stage: quality
-- 
GitLab