Skip to content

Commit 4ab5db6

Browse files
committed
chore: Allow Laravel 12 and other improvements
1 parent 07fb753 commit 4ab5db6

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

.github/workflows/phpunit.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,29 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
php: [8.0, 8.1, 8.2, 8.3, 8.4]
18-
laravel: [9.*, 10.*, 11.*]
19-
os: [ubuntu-latest]
18+
laravel: [9.*, 10.*, 11.*, 12.*]
19+
os: [ubuntu-latest, windows-latest]
2020
coverage: [none]
21+
stability: [prefer-lowest, prefer-stable]
2122
include:
22-
- php: 8.3
23-
laravel: 11.*
23+
- php: 8.4
24+
laravel: 12.*
2425
os: ubuntu-latest
2526
coverage: xdebug
27+
stability: prefer-stable
2628
exclude:
2729
- php: 8.0
2830
laravel: 10.*
2931
- php: 8.0
3032
laravel: 11.*
3133
- php: 8.1
3234
laravel: 11.*
35+
- php: 8.0
36+
laravel: 12.*
37+
- php: 8.1
38+
laravel: 12.*
3339

34-
name: '[P${{ matrix.php }}] [L${{ matrix.laravel }}] [${{ matrix.coverage }}]'
40+
name: PHP${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
3541

3642
steps:
3743
- name: Checkout code

composer.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
],
2525
"require": {
2626
"php": "^8.0",
27-
"illuminate/auth": "^9.0|^10.0|^11.0",
28-
"illuminate/contracts": "^9.0|^10.0|^11.0",
29-
"illuminate/http": "^9.0|^10.0|^11.0",
30-
"illuminate/support": "^9.0|^10.0|^11.0",
27+
"illuminate/auth": "^9.0|^10.0|^11.0|^12.0",
28+
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0",
29+
"illuminate/http": "^9.0|^10.0|^11.0|^12.0",
30+
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
3131
"lcobucci/jwt": "^4.0",
3232
"nesbot/carbon": "^2.0|^3.0"
3333
},
3434
"require-dev": {
35-
"illuminate/console": "^9.0|^10.0|^11.0",
36-
"illuminate/database": "^9.0|^10.0|^11.0",
37-
"illuminate/routing": "^9.0|^10.0|^11.0",
35+
"illuminate/console": "^9.0|^10.0|^11.0|^12.0",
36+
"illuminate/database": "^9.0|^10.0|^11.0|^12.0",
37+
"illuminate/routing": "^9.0|^10.0|^11.0|^12.0",
3838
"mockery/mockery": ">=0.9.9",
3939
"phpunit/phpunit": "^9.4"
4040
},
@@ -63,12 +63,6 @@
6363
]
6464
}
6565
},
66-
"funding": [
67-
{
68-
"type": "patreon",
69-
"url": "https://www.patreon.com/seantymon"
70-
}
71-
],
7266
"config": {
7367
"sort-packages": true
7468
},

src/Claims/Claim.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function matches($value, $strict = true)
139139
* @return array
140140
*/
141141
#[\ReturnTypeWillChange]
142-
public function jsonSerialize()
142+
public function jsonSerialize(): mixed
143143
{
144144
return $this->toArray();
145145
}

0 commit comments

Comments
 (0)