Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎README.md‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /