diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 75d7fcd6b9681981991af59106680d59de7bd416..bdecaedb44395063780580949df0d6699e75af4c 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