Skip to content

Commit

Permalink
Specify the configuration key for including rules one-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
ikvasnica authored and ondrejmirtes committed Jun 30, 2018
1 parent bffdf03 commit 1ec1d04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -42,9 +42,10 @@ includes:

## Enabling rules one-by-one

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:
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:

```
services:
-
class: PHPStan\Rules\StrictCalls\StrictFunctionCallsRule
tags:
Expand Down

0 comments on commit 1ec1d04

Please sign in to comment.