Skip to content

Commit 367af6d

Browse files
committed
Add support for Laravel 12
1 parent feee489 commit 367af6d

File tree

5 files changed

+42
-13
lines changed

5 files changed

+42
-13
lines changed

.github/workflows/phpstan.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
matrix:
2020
os: [ubuntu-latest]
2121
php: [8.4, 8.3, 8.2, 8.1]
22-
laravel: [10.*, 11.*]
22+
laravel: [10.*, 11.*, 12.*]
2323
stability: [prefer-stable]
2424
include:
2525
- laravel: 10.*
@@ -28,11 +28,16 @@ jobs:
2828
- laravel: 11.*
2929
testbench: 9.*
3030
phpstan_neon: phpstan.neon
31+
- laravel: 12.*
32+
testbench: 10.*
33+
phpstan_neon: phpstan.neon
3134
exclude:
3235
- laravel: 10.*
3336
php: 8.4
3437
- laravel: 11.*
3538
php: 8.1
39+
- laravel: 12.*
40+
php: 8.1
3641

3742
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.os }}
3843

.github/workflows/run-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,22 @@ jobs:
2121
matrix:
2222
os: [ubuntu-latest]
2323
php: [8.4, 8.3, 8.2, 8.1]
24-
laravel: [10.*, 11.*]
24+
laravel: [10.*, 11.*, 12.*]
2525
stability: [prefer-stable]
2626
include:
2727
- laravel: 10.*
2828
testbench: 8.*
2929
- laravel: 11.*
3030
testbench: 9.*
31+
- laravel: 12.*
32+
testbench: 10.*
3133
exclude:
3234
- laravel: 10.*
3335
php: 8.4
3436
- laravel: 11.*
3537
php: 8.1
38+
- laravel: 12.*
39+
php: 8.1
3640

3741
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.os }}
3842

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
},
2828
"require-dev": {
2929
"friendsofphp/php-cs-fixer": "^3.8",
30-
"larastan/larastan": "^2.9",
30+
"larastan/larastan": "^2.9|^3.0",
3131
"nunomaduro/collision": "^7.0|^8.1",
32-
"orchestra/testbench": "^8.0|^9.0",
33-
"phpunit/phpunit": "^10.0",
32+
"orchestra/testbench": "^8.0|^9.0|^10.0",
33+
"phpunit/phpunit": "^10.0|^11.0",
3434
"spatie/laravel-ray": "^1.26"
3535
},
3636
"autoload": {

phpstan-baseline.neon

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,43 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Class DutchCodingCompany\\\\FilamentDeveloperLogins\\\\Database\\\\Factories\\\\TestUserFactory extends generic class Illuminate\\\\Database\\\\Eloquent\\\\Factories\\\\Factory but does not specify its types\\: TModel$#"
4+
message: '#^Class DutchCodingCompany\\FilamentDeveloperLogins\\Database\\Factories\\TestUserFactory extends generic class Illuminate\\Database\\Eloquent\\Factories\\Factory but does not specify its types\: TModel$#'
5+
identifier: missingType.generics
56
count: 1
67
path: database/factories/TestUserFactory.php
78

89
-
9-
message: "#^Class App\\\\Models\\\\User not found\\.$#"
10+
message: '#^Class App\\Models\\User not found\.$#'
11+
identifier: class.notFound
1012
count: 1
1113
path: src/FilamentDeveloperLoginsPlugin.php
1214

1315
-
14-
message: "#^Property DutchCodingCompany\\\\FilamentDeveloperLogins\\\\FilamentDeveloperLoginsPlugin\\:\\:\\$modelClass \\(class\\-string\\<Illuminate\\\\Contracts\\\\Auth\\\\Authenticatable&Illuminate\\\\Database\\\\Eloquent\\\\Model\\>\\) does not accept default value of type string\\.$#"
16+
message: '#^Property DutchCodingCompany\\FilamentDeveloperLogins\\FilamentDeveloperLoginsPlugin\:\:\$modelClass \(class\-string\<Illuminate\\Contracts\\Auth\\Authenticatable&Illuminate\\Database\\Eloquent\\Model\>\) does not accept default value of type string\.$#'
17+
identifier: property.defaultValue
1518
count: 1
1619
path: src/FilamentDeveloperLoginsPlugin.php
1720

1821
-
19-
message: "#^Call to an undefined method Illuminate\\\\Testing\\\\TestResponse\\:\\:assertDontSeeLivewire\\(\\)\\.$#"
22+
message: '#^Call to an undefined method Illuminate\\Testing\\TestResponse\:\:assertDontSeeLivewire\(\)\.$#'
23+
identifier: method.notFound
2024
count: 3
2125
path: tests/Feature/MenuLoginsTest.php
2226

2327
-
24-
message: "#^Call to an undefined method Illuminate\\\\Testing\\\\TestResponse\\:\\:assertSeeLivewire\\(\\)\\.$#"
28+
message: '#^Call to an undefined method Illuminate\\Testing\\TestResponse\:\:assertSeeLivewire\(\)\.$#'
29+
identifier: method.notFound
2530
count: 2
2631
path: tests/Feature/MenuLoginsTest.php
2732

2833
-
29-
message: "#^Access to an undefined property DutchCodingCompany\\\\FilamentDeveloperLogins\\\\Tests\\\\Fixtures\\\\TestUser\\:\\:\\$is_admin\\.$#"
34+
message: '#^Access to an undefined property DutchCodingCompany\\FilamentDeveloperLogins\\Tests\\Fixtures\\TestUser\:\:\$is_admin\.$#'
35+
identifier: property.notFound
3036
count: 1
3137
path: tests/Fixtures/TestUser.php
3238

3339
-
34-
message: "#^Parameter \\#1 \\$callback of static method Illuminate\\\\Database\\\\Eloquent\\\\Factories\\\\Factory\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\>\\:\\:guessFactoryNamesUsing\\(\\) expects callable\\(class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\>\\)\\: class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Factories\\\\Factory\\>, Closure\\(string\\)\\: non\\-falsy\\-string given\\.$#"
40+
message: '#^Parameter \#1 \$callback of static method Illuminate\\Database\\Eloquent\\Factories\\Factory\<Illuminate\\Database\\Eloquent\\Model\>\:\:guessFactoryNamesUsing\(\) expects callable\(class\-string\<Illuminate\\Database\\Eloquent\\Model\>\)\: class\-string\<Illuminate\\Database\\Eloquent\\Factories\\Factory\>, Closure\(string\)\: non\-falsy\-string given\.$#'
41+
identifier: argument.type
3542
count: 1
3643
path: tests/TestCase.php

phpstan.neon

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,17 @@ parameters:
88
paths:
99
- database
1010
- src
11-
- tests
11+
- tests
12+
13+
ignoreErrors:
14+
-
15+
message: '#^Parameter \#1 \$view of function view expects view\-string\|null, string given\.$#'
16+
identifier: argument.type
17+
count: 1
18+
path: src/Livewire/MenuLogins.php
19+
20+
-
21+
message: '#^Parameter \#1 \$view of function view expects view\-string\|null, string given\.$#'
22+
identifier: argument.type
23+
count: 1
24+
path: src/View/Components/DeveloperLogins.php\

0 commit comments

Comments
 (0)