From da8d40abd0efe0113b0503ad279018e86d9ac781 Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Mon, 29 Aug 2022 17:32:58 +0100
Subject: [PATCH] :ambulance: Fix CI for phpstan composer

Using composer globale instead of local.
---
 .gitlab-ci.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f6617b22b..1f7c2436e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,8 +75,7 @@ create_phpstan_rapport:
     - test -d ../dev-tools/ && rm -Rf ../dev-tools/
     - git clone --depth 1 https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
     - cp ../dev-tools/phpstan/fusiondirectory/1.4-dev/*.neon .
-    - cd /root/.composer/
-    - composer require phpstan/phpstan=0.12.94
+    - composer globale require phpstan/phpstan=0.12.94
     - /root/.composer/vendor/bin/phpstan analyse -c phpstan.neon
 
 # fusiondirectory-update-locale
-- 
GitLab