Skip to content

Commit c897d12

Browse files
authored
Merge pull request #89 from localheinz/feature/extension-installer
Enhancement: Allow usage with phpstan/extension-installer
2 parents 51d8c8e + cfa009b commit c897d12

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## Unreleased
88

9-
For a full diff see [`0.9.0...master`](https://github.com/localheinz/phpstan-rules/compare/0.9.0...master).
9+
For a full diff see [`0.9.1...master`](https://github.com/localheinz/phpstan-rules/compare/0.9.1...master).
10+
11+
## [`0.9.1`](https://github.com/localheinz/phpstan-rules/releases/tag/0.9.1)
12+
13+
For a full diff see [`0.9.0...0.9.1`](https://github.com/localheinz/phpstan-rules/compare/0.9.0...0.9.1).
14+
15+
### Changed
16+
17+
* Allow usage with [`phpstan/extension-installer`](https://github.com/phpstan/extension-installer) ([#89](https://github.com/localheinz/phpstan-rules/pull/89)), by [@localheinz](https://github.com/localheinz)
1018

1119
## [`0.9.0`](https://github.com/localheinz/phpstan-rules/releases/tag/0.9.0)
1220

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ $ composer require --dev localheinz/phpstan-rules
1717

1818
## Usage
1919

20-
All of the [rules](https://github.com/localheinz/phpstan-rules#rules) provided (and used) by this library are included in [`rules.neon`](rules.neon). The easiest way to use these rules in your project is to include `rules.neon` in your `phpstan.neon`:
20+
All of the [rules](https://github.com/localheinz/phpstan-rules#rules) provided (and used) by this library are included in [`rules.neon`](rules.neon).
21+
22+
When you are using [`phpstan/extension-installer`](https://github.com/phpstan/extension-installer), `rules.neon` will be automatically included.
23+
24+
Otherwise you need to include `rules.neon` in your `phpstan.neon`:
2125

2226
```neon
2327
includes:

composer.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "localheinz/phpstan-rules",
3-
"type": "library",
3+
"type": "phpstan-extension",
44
"description": "Provides additional rules for phpstan/phpstan.",
55
"keywords": [
66
"phpstan",
@@ -33,6 +33,13 @@
3333
"preferred-install": "dist",
3434
"sort-packages": true
3535
},
36+
"extra": {
37+
"phpstan": {
38+
"includes": [
39+
"rules.neon"
40+
]
41+
}
42+
},
3643
"autoload": {
3744
"psr-4": {
3845
"Localheinz\\PHPStan\\Rules\\": "src/"

composer.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)