From 1d9bcb3e1360f678bd6d04146180301fda794093 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 6 Mar 2025 18:43:27 +0100 Subject: [PATCH] perf: :white_check_mark: add php deprecation rules --- composer.json | 1 + phpstan.neon | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2d67769..a0cf20a 100644 --- a/composer.json +++ b/composer.json @@ -31,6 +31,7 @@ "nextcloud/coding-standard": "^1.3.2", "nextcloud/rector": "^0.3.1", "phpstan/phpstan": "~1.12.20", + "phpstan/phpstan-deprecation-rules": "~1.2.1", "rector/rector": "~1.2.10" }, "config": { diff --git a/phpstan.neon b/phpstan.neon index 550c70d..7294319 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,5 +2,5 @@ parameters: level: 9 paths: - lib - ignoreErrors: - - '#Method [a-zA-Z0-9:\(\)\\_]+ return type with generic class OCP\\AppFramework\\Http\\[a-zA-Z]+ does not specify its types#' +includes: + - vendor/phpstan/phpstan-deprecation-rules/rules.neon