File tree Expand file tree Collapse file tree 5 files changed +54
-0
lines changed
Expand file tree Collapse file tree 5 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ CHANGELOG.md export-ignore
99CONTRIBUTING.md export-ignore
1010phpunit.xml export-ignore
1111README.md export-ignore
12+ phpstan * export-ignore
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+
9+ jobs :
10+ phpstan :
11+ name : phpstan
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Setup PHP
17+ uses : shivammathur/setup-php@v2
18+ with :
19+ php-version : 8.3
20+ coverage : none
21+
22+ - name : Install composer dependencies
23+ uses : ramsey/composer-install@v3
24+
25+ - name : Install larastan
26+ run : |
27+ composer require "nunomaduro/larastan" --no-interaction --no-update
28+ composer update --prefer-dist --no-interaction
29+
30+ - name : Run PHPStan
31+ run : ./vendor/bin/phpstan --error-format=github
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ composer.lock
44.vscode
55.phpunit.cache
66.phpunit.result.cache
7+ /build /phpstan
Original file line number Diff line number Diff line change 1+ parameters :
2+ ignoreErrors :
Original file line number Diff line number Diff line change 1+ includes:
2+ - phpstan-baseline.neon
3+ - ./vendor/nunomaduro/larastan/extension.neon
4+
5+ parameters:
6+ level: 8
7+ paths:
8+ - src/
9+ - config/
10+ - database/migrations/audits.stub
11+ - stubs/
12+ tmpDir: build/phpstan
13+ checkOctaneCompatibility: false
14+ treatPhpDocTypesAsCertain: false
15+
16+ ignoreErrors:
17+ -
18+ identifier: larastan.noEnvCallsOutsideOfConfig
19+ path: config/audit.php
You can’t perform that action at this time.
0 commit comments