Skip to content

Commit 6cc3216

Browse files
add custom laravel-10 phpstan file
1 parent 97e5a85 commit 6cc3216

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/phpstan.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ jobs:
2323
include:
2424
- laravel: 10.*
2525
testbench: 8.*
26+
phpstan_neon: phpstan.laravel-10.neon
2627
- laravel: 11.*
2728
testbench: 9.*
29+
phpstan_neon: phpstan.neon
2830
exclude:
2931
- laravel: 11.*
3032
php: 8.1
@@ -50,4 +52,4 @@ jobs:
5052
run: composer show -D
5153

5254
- name: Run PHPStan
53-
run: vendor/bin/phpstan --error-format=github
55+
run: vendor/bin/phpstan --error-format=github --configuration=${{ matrix.phpstan_neon }}

phpstan.laravel-10.neon

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
includes:
2+
- ./vendor/larastan/larastan/extension.neon
3+
- phpstan-baseline.neon
4+
5+
parameters:
6+
level: 7
7+
8+
paths:
9+
- database
10+
- src
11+
- tests
12+
13+
ignoreErrors:
14+
-
15+
message: "#^PHPDoc tag @use contains generic type Illuminate\\\\Database\\\\Eloquent\\\\Factories\\\\HasFactory\\<DutchCodingCompany\\\\FilamentDeveloperLogins\\\\Database\\\\Factories\\\\TestUserFactory\\> but trait Illuminate\\\\Database\\\\Eloquent\\\\Factories\\\\HasFactory is not generic\\.$#"
16+
count: 1
17+
path: tests/Fixtures/TestUser.php

0 commit comments

Comments
 (0)