From 8019e79968be592bd9b09b18f279d1834b697571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mirtes?= Date: Tue, 23 Aug 2022 17:04:03 +0200 Subject: [PATCH] Update README.md --- README.md | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 5062ca56..0a0b3397 100644 --- a/README.md +++ b/README.md @@ -79,26 +79,7 @@ parameters: If you don't want to start using all the available strict rules at once but only one or two, you can! -### Without extension-installer - -Just don't include the whole `rules.neon` from this package in your configuration, but look at its contents and copy only the rules you want to your configuration under the `services` key: - -```neon -services: - - - class: PHPStan\Rules\StrictCalls\StrictFunctionCallsRule - tags: - - phpstan.rules.rule - - - - class: PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule - tags: - - phpstan.rules.rule -``` - -### With extension-installer - -When using `phpstan/extension-installer` you can disable automatic loading of all rules by: +You can disable all rules from the included `rules.neon` with: ```neon parameters: @@ -106,7 +87,7 @@ parameters: allRules: false ``` -Then you can enable individual rules by adding them as services just like without extension-installer (see above) or re-enable them by configuration parameters: +Then you can re-enable individual rules with configuration parameters: ```neon parameters: