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