Skip to content

Commit 8019e79

Browse files
authored
Update README.md
1 parent f120c3b commit 8019e79

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

Diff for: README.md

+2-21
Original file line numberDiff line numberDiff line change
@@ -79,34 +79,15 @@ parameters:
7979

8080
If you don't want to start using all the available strict rules at once but only one or two, you can!
8181

82-
### Without extension-installer
83-
84-
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:
85-
86-
```neon
87-
services:
88-
-
89-
class: PHPStan\Rules\StrictCalls\StrictFunctionCallsRule
90-
tags:
91-
- phpstan.rules.rule
92-
93-
-
94-
class: PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule
95-
tags:
96-
- phpstan.rules.rule
97-
```
98-
99-
### With extension-installer
100-
101-
When using `phpstan/extension-installer` you can disable automatic loading of all rules by:
82+
You can disable all rules from the included `rules.neon` with:
10283

10384
```neon
10485
parameters:
10586
strictRules:
10687
allRules: false
10788
```
10889

109-
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:
90+
Then you can re-enable individual rules with configuration parameters:
11091

11192
```neon
11293
parameters:

0 commit comments

Comments
 (0)