diff --git a/includes/tests/static-analysis.yml b/includes/tests/static-analysis.yml
index 4e1121341409ec94edf715450d073737fdc4455d..0d74ee425189de3108c8da69afa699f098ffbf05 100644
--- a/includes/tests/static-analysis.yml
+++ b/includes/tests/static-analysis.yml
@@ -9,12 +9,12 @@ phpstan:
   script:
     - |
       if [ -f "vendor/bin/phpstan" ]; then
-        vendor/bin/phpstan analyse --level 5 --error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
-        vendor/bin/phpstan analyse --level 5 --error-format=junit --memory-limit=2G > phpstan-junit.xml
+        vendor/bin/phpstan analyse --error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
+        vendor/bin/phpstan analyse --error-format=junit --memory-limit=2G > phpstan-junit.xml
       elif [ -f "vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan" ]; then
         # PHPStan installed by director
-        vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse --level 5 --error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
-        vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse --level 5 --error-format=junit --memory-limit=2G > phpstan-junit.xml
+        vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse --error-format=gitlab --memory-limit=2G > phpstan-codequality.json || true
+        vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse --error-format=junit --memory-limit=2G > phpstan-junit.xml
       else
         echo "PHPStan not found! Install it with 'composer require --dev wpdesk/phpstan-rules'."
         exit 125