From 5979ca29a483f460a9177a2c8e73eeeccf10ab50 Mon Sep 17 00:00:00 2001 From: Ben Challis Date: Tue, 13 Dec 2022 11:46:41 +0000 Subject: [PATCH 1/2] Override deprecationRulesInstalled in rules.neon --- rules.neon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules.neon b/rules.neon index a8f89b8..9d1d91d 100644 --- a/rules.neon +++ b/rules.neon @@ -2,6 +2,9 @@ services: - class: PHPStan\Rules\Deprecations\DeprecatedClassHelper +parameters: + deprecationRulesInstalled: true + rules: - PHPStan\Rules\Deprecations\AccessDeprecatedPropertyRule - PHPStan\Rules\Deprecations\AccessDeprecatedStaticPropertyRule From 5e29faaebbb9dd5f8338eb5f9acfcac5ab9f5a22 Mon Sep 17 00:00:00 2001 From: Ben Challis Date: Tue, 13 Dec 2022 11:51:05 +0000 Subject: [PATCH 2/2] Remove deprecationRulesInstalled from phpstan.neon --- phpstan.neon | 1 - 1 file changed, 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 925b0b0..e3c1480 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,6 +5,5 @@ includes: - vendor/phpstan/phpstan-phpunit/extension.neon parameters: - deprecationRulesInstalled: true excludePaths: - tests/*/data/*