From c4e4944037228568be1fcdbd29089297167d5c16 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Thu, 14 Nov 2024 22:07:04 +0100
Subject: [PATCH] phpstan only needs to react to relevant changes

---
 .gitlab-ci.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 243aa110e0f..48af858bc9f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -236,7 +236,11 @@ phpstan:
   stage: analyse
   needs: [build-composer]
   rules:
-    - !reference [.definitions, php-changed]
+    changes:
+      - app/controllers/**/*.php
+      - lib/**/*.php
+      - tests/**/*.php
+
   variables:
     CACHE_LOCATION: $CACHE_DIR/phpstan
     PHPSTAN_CODE_QUALITY_REPORT: $REPORT_DIR/phpstan-codequality.json
-- 
GitLab