Skip to content

Commit ead5e00

Browse files
authored
Use phpstan/extension-installer for proper config (#116)
phpstan-drupal is not being loaded due to missing includes, neither are deprecation checks. This is fixed with extension-installer. This also adds explicit dependencies so they aren't inherited just through upgrade_status
1 parent d4c732f commit ead5e00

File tree

3 files changed

+59
-10
lines changed

3 files changed

+59
-10
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
},
2626
"require-dev": {
2727
"acquia/coding-standards": "^0.8.0",
28+
"mglaman/phpstan-drupal": "^1.1",
29+
"phpstan/extension-installer": "^1.1",
30+
"phpstan/phpstan": "^1.6",
2831
"phpstan/phpstan-deprecation-rules": "^1.0",
2932
"phpunit/phpunit": "^9.5",
3033
"squizlabs/php_codesniffer": "^3.6"
@@ -36,7 +39,8 @@
3639
"dealerdirect/phpcodesniffer-composer-installer": true,
3740
"drupal/core-composer-scaffold": true,
3841
"ergebnis/composer-normalize": true,
39-
"oomphinc/composer-installers-extender": true
42+
"oomphinc/composer-installers-extender": true,
43+
"phpstan/extension-installer": true
4044
},
4145
"platform": {
4246
"php": "7.4"

composer.lock

Lines changed: 53 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ parameters:
44
- docroot/modules/custom
55
- docroot/themes/custom
66
- docroot/profiles/custom
7-
- tests
7+
- tests

0 commit comments

Comments
 (0)