Skip to content

Commit 96f1c4c

Browse files
authored
Merge pull request #80 from drupol/74-support-phpstan-extension-installer
Issue #74: Support phpstan/extension-installer
2 parents c599d44 + 8771ecf commit 96f1c4c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ This extension was built for the [Centarro Toolbox](https://www.centarro.io/prod
88

99
## Usage
1010

11-
Add `phpstan.neon` to your Drupal project.
11+
When you are using [`phpstan/extension-installer`](https://github.com/phpstan/extension-installer), `phpstan.neon` will be automatically included.
12+
13+
Otherwise add `phpstan.neon` to your Drupal project.
1214

1315
Make sure it has
1416

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,20 @@
3838
"classmap": ["tests/src"]
3939
},
4040
"extra": {
41+
"branch-alias": {
42+
"dev-master": "0.12-dev"
43+
},
4144
"installer-paths": {
4245
"tests/fixtures/drupal/core": ["type:drupal-core"],
4346
"tests/fixtures/drupal/libraries/{$name}": ["type:drupal-library"],
4447
"tests/fixtures/drupal/modules/contrib/{$name}": ["type:drupal-module"],
4548
"tests/fixtures/drupal/profiles/contrib/{$name}": ["type:drupal-profile"],
4649
"tests/fixtures/drupal/themes/contrib/{$name}": ["type:drupal-theme"]
4750
},
48-
"branch-alias": {
49-
"dev-master": "0.12-dev"
51+
"phpstan": {
52+
"includes": [
53+
"extension.neon"
54+
]
5055
}
5156
}
5257
}

0 commit comments

Comments
 (0)