Skip to content

Commit 1ec1d04

Browse files
ikvasnicaondrejmirtes
authored andcommitted
Specify the configuration key for including rules one-by-one
1 parent bffdf03 commit 1ec1d04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ includes:
4242

4343
## Enabling rules one-by-one
4444

45-
If you don't want to start using all the available strict rules at once but only one or two, you can! 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:
45+
If you don't want to start using all the available strict rules at once but only one or two, you can! 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:
4646

4747
```
48+
services:
4849
-
4950
class: PHPStan\Rules\StrictCalls\StrictFunctionCallsRule
5051
tags:

0 commit comments

Comments
 (0)