diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 243aa110e0f477051f43a92c325b5cbcd3f2cf21..48af858bc9fadfa858568d65b47c8e168fd4530c 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