File tree Expand file tree Collapse file tree 4 files changed +52
-1
lines changed Expand file tree Collapse file tree 4 files changed +52
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : PHPStan
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **.php'
7
+ - ' phpstan.neon.dist'
8
+ - ' .github/workflows/phpstan.yml'
9
+
10
+ jobs :
11
+ phpstan :
12
+ name : phpstan
13
+ runs-on : ubuntu-latest
14
+ timeout-minutes : 5
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Setup PHP
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : ' 8.2'
22
+ coverage : none
23
+
24
+ - name : Install composer dependencies
25
+ uses : ramsey/composer-install@v2
26
+
27
+ - name : Run PHPStan
28
+ run : ./vendor/bin/phpstan --error-format=github
Original file line number Diff line number Diff line change 5
5
"require" : {
6
6
"php" : " ^8.2"
7
7
},
8
+ "require-dev" : {
9
+ "laravel/pint" : " ^1.0" ,
10
+ "phpstan/extension-installer" : " ^1.1" ,
11
+ "phpstan/phpstan-deprecation-rules" : " ^1.0" ,
12
+ "phpstan/phpstan-phpunit" : " ^1.0"
13
+ },
8
14
"license" : " MIT" ,
9
15
"autoload" : {
10
16
"psr-4" : {
18
24
"role" : " Developer"
19
25
}
20
26
],
27
+ "scripts" : {
28
+ "analyse" : " vendor/bin/phpstan analyse" ,
29
+ "format" : " vendor/bin/pint"
30
+ },
21
31
"config" : {
22
- "sort-packages" : true
32
+ "sort-packages" : true ,
33
+ "allow-plugins" : {
34
+ "phpstan/extension-installer" : true
35
+ }
23
36
},
24
37
"minimum-stability" : " dev" ,
25
38
"prefer-stable" : true
Original file line number Diff line number Diff line change
1
+ includes:
2
+ - phpstan-baseline.neon
3
+
4
+ parameters:
5
+ level: 5
6
+ paths:
7
+ - src
8
+ tmpDir: build/phpstan
9
+ checkMissingIterableValueType: false
10
+
You can’t perform that action at this time.
0 commit comments