Skip to content

Commit 2a5bef7

Browse files
authored
Add more phpstan extensions (#756)
1 parent ae32657 commit 2a5bef7

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ max_line_length = 80
1818

1919
[*.{yaml,yml}]
2020
indent_size = 2
21+
22+
[*.{neon,neon.dist}]
23+
indent_style = tab
24+
indent_size = 4

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@
4545
"guzzlehttp/guzzle": "^7.8.1",
4646
"http-interop/http-factory-guzzle": "^1.2.0",
4747
"phpstan/phpstan": "^2.0",
48-
"phpstan/extension-installer": "^1.4.1",
49-
"phpstan/phpstan-strict-rules": "^2.0",
5048
"phpstan/phpstan-phpunit": "^2.0",
51-
"phpstan/phpstan-deprecation-rules": "^2.0"
49+
"phpstan/phpstan-deprecation-rules": "^2.0",
50+
"phpstan/phpstan-strict-rules": "^2.0"
5251
},
5352
"scripts": {
5453
"lint": [
@@ -62,7 +61,6 @@
6261
},
6362
"config": {
6463
"allow-plugins": {
65-
"phpstan/extension-installer": true,
6664
"php-http/discovery": true
6765
}
6866
}

phpstan.dist.neon

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
includes:
2+
- vendor/phpstan/phpstan-phpunit/extension.neon
3+
- vendor/phpstan/phpstan-phpunit/rules.neon
4+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
5+
- vendor/phpstan/phpstan-strict-rules/rules.neon
6+
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
7+
8+
parameters:
9+
level: 5
10+
paths:
11+
- src
12+
- tests
13+
additionalConstructors:
14+
- PHPUnit\Framework\TestCase::setUp

phpstan.neon.dist

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)