File tree Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 27
27
coverage : none
28
28
- name : Run PHP-CS-Fixer Fix, version ${{ env.PHP_CS_FIXER_VERSION }}
29
29
run : php-cs-fixer fix --dry-run --diff --ansi
30
-
30
+ phpstan :
31
+ runs-on : ubuntu-latest
32
+ strategy :
33
+ matrix :
34
+ php :
35
+ - ' 8.1'
36
+ steps :
37
+ - name : Checkout
38
+ uses : actions/checkout@v2
39
+ - name : Setup PHP
40
+ uses : shivammathur/setup-php@v2
41
+ with :
42
+ php-version : ${{ matrix.php }}
43
+ extensions : curl,mbstring
44
+ tools : composer
45
+ coverage : none
46
+ ini-values : memory_limit=-1
47
+ - name : Install dependencies
48
+ run : composer install --no-interaction
49
+ - name : Run PHPStan Analysis
50
+ run : ./vendor/bin/phpstan analyse --no-interaction --no-progress --ansi
31
51
build :
32
52
runs-on : ${{ matrix.os }}
33
53
name : PHP v${{ matrix.php }} with MongoDB ${{ matrix.mongodb }}
Original file line number Diff line number Diff line change 6
6
.phpunit.result.cache
7
7
/.php-cs-fixer.php
8
8
/.php-cs-fixer.cache
9
+ /phpstan.neon
9
10
/vendor
10
11
composer.lock
11
12
composer.phar
Original file line number Diff line number Diff line change 23
23
"illuminate/container" : " ^9.0" ,
24
24
"illuminate/database" : " ^9.0" ,
25
25
"illuminate/events" : " ^9.0" ,
26
- "mongodb/mongodb" : " ^1.11"
26
+ "mongodb/mongodb" : " ^1.11" ,
27
+ "nunomaduro/larastan" : " ^2.2"
27
28
},
28
29
"require-dev" : {
29
30
"phpunit/phpunit" : " ^9.5.8" ,
Original file line number Diff line number Diff line change
1
+ includes:
2
+ - ./vendor/nunomaduro/larastan/extension.neon
3
+ parameters:
4
+ paths:
5
+ - src
6
+ level: 5
You can’t perform that action at this time.
0 commit comments