Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ Run
composer require --dev sidz/phpstan-rules
```

## Add Static Rules to `phpstan.neon`

Currently, you need to manually register all the rules in your `phpstan.neon`:
If you use [PHPStan extension installer](https://github.com/phpstan/extension-installer), you're all set. If not, you need to manually register all the rules in your `phpstan.neon`:

```neon
includes:
Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,12 @@
"sort-packages": true,
"preferred-install": "dist"
},
"extra": {
"phpstan": {
"includes": [
"rules.neon"
]
}
},
"prefer-stable": true
}