Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,15 @@ services:
```

*Unfortunately, you cannot use phpstan/extension-installer in this case.*

### Enabling all but a few rules

If you want to enable all but a few rules, or if you prefer to use the extension installer while you don't want to enable all strict rules, you can [ignore the errors](https://phpstan.org/user-guide/ignoring-errors#ignoring-in-configuration-file) from the rules you don't want to use:

```
parameters:
ignoreErrors:
- '#.*should be covariant.*#'
- '#.*should be contravariant.*#'
- '#Short ternary operator is not allowed.*#'
```