Skip to content

Commit f876297

Browse files
authored
feat: add Laravel 11 support (#475)
1 parent c222c50 commit f876297

File tree

4 files changed

+32
-18
lines changed

4 files changed

+32
-18
lines changed

.github/workflows/tests.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
- next-major
99
- beta
1010
- alpha
11-
- '[0-9]+.x'
1211
pull_request:
1312
types: [opened, synchronize, reopened]
1413
release:
@@ -17,8 +16,8 @@ on:
1716
workflow_dispatch:
1817

1918
env:
20-
default-php-version: '8.2'
21-
default-laravel-version: '10.*'
19+
default-php-version: '8.3'
20+
default-laravel-version: '11.0'
2221
semantic-node-version: 20
2322

2423
concurrency:
@@ -34,21 +33,36 @@ jobs:
3433
fail-fast: false
3534
matrix:
3635
php-version: ['8.1', '8.2', '8.3']
37-
laravel-version: ['9.*', '10.*']
36+
laravel-version: ['9.0', '10.0', '11.0']
3837
psr7: ['guzzle']
3938
include:
4039
- php-version: '8.1'
41-
laravel-version: '9.*'
40+
laravel-version: '9.0'
4241
psr7: 'nyholm'
4342
- php-version: '8.1'
44-
laravel-version: '9.*'
43+
laravel-version: '9.0'
4544
psr7: 'discovery'
4645
- php-version: '8.2'
47-
laravel-version: '10.*'
46+
laravel-version: '10.0'
4847
psr7: 'nyholm'
4948
- php-version: '8.2'
50-
laravel-version: '10.*'
49+
laravel-version: '10.0'
5150
psr7: 'discovery'
51+
- php-version: '8.2'
52+
laravel-version: '11.0'
53+
psr7: 'nyholm'
54+
- php-version: '8.2'
55+
laravel-version: '11.0'
56+
psr7: 'discovery'
57+
- php-version: '8.3'
58+
laravel-version: '11.0'
59+
psr7: 'nyholm'
60+
- php-version: '8.3'
61+
laravel-version: '11.0'
62+
psr7: 'discovery'
63+
exclude:
64+
- php-version: '8.1'
65+
laravel-version: '11.0'
5266

5367
steps:
5468
- name: Checkout sources
@@ -90,7 +104,7 @@ jobs:
90104
- name: Update dependencies with Laravel ${{ matrix.laravel-version }}
91105
run: |
92106
export COMPOSER_ROOT_VERSION=dev-main
93-
composer require "illuminate/support:${{ matrix.laravel-version }}" --no-update
107+
composer require "illuminate/support:^${{ matrix.laravel-version }}" --no-update
94108
95109
- name: Use psr7 variant (nyholm)
96110
if: matrix.psr7 == 'nyholm'
@@ -149,7 +163,7 @@ jobs:
149163
- name: Download results
150164
uses: actions/download-artifact@v4
151165
with:
152-
pattern: ${{ format('results_{0}_{1}', env.default-php-version, env.default-laravel-version) }}
166+
pattern: ${{ format('results_{0}_{1}*', env.default-php-version, env.default-laravel-version) }}
153167
path: results
154168
merge-multiple: true
155169

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"require": {
2323
"php": ">=8.1",
24-
"illuminate/support": "^9.0 || ^10.0",
24+
"illuminate/support": "^9.0 || ^10.0 || ^11.0",
2525
"phpdocumentor/reflection-docblock": "^5.3",
2626
"psr/http-factory-implementation": "1.0",
2727
"symfony/property-access": "^6.4 || ^7.0",
@@ -37,17 +37,17 @@
3737
"require-dev": {
3838
"ext-sqlite3": "*",
3939
"guzzlehttp/psr7": "^2.1",
40+
"jschaedl/composer-git-hooks": "^4.0",
41+
"larastan/larastan": "^2.0",
4042
"laravel/legacy-factories": "^1.0",
4143
"laravel/pint": "^1.13",
42-
"nunomaduro/larastan": "^2.0",
4344
"ocramius/package-versions": "^2.0",
44-
"orchestra/testbench": "^7.0 || ^8.0",
45+
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0",
4546
"phpstan/phpstan-deprecation-rules": "^1.0",
4647
"phpstan/phpstan-phpunit": "^1.0",
4748
"phpstan/phpstan-strict-rules": "^1.0",
48-
"phpunit/phpunit": "^9.5 || ^10.0",
49-
"psalm/plugin-laravel": "^2.8",
50-
"xheaven/composer-git-hooks": "^3.1"
49+
"phpunit/phpunit": "^9.5 || ^10.0 || ^11.0",
50+
"psalm/plugin-laravel": "^2.8"
5151
},
5252
"suggest": {
5353
"guzzlehttp/psr7": "To provide a psr/http-factory-implementation implementation",

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
- ./vendor/nunomaduro/larastan/extension.neon
2+
- ./vendor/larastan/larastan/extension.neon
33
- ./vendor/phpstan/phpstan-deprecation-rules/rules.neon
44
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
55

src/Models/WebauthnKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class WebauthnKey extends Model
2626
/**
2727
* The attributes that are mass assignable.
2828
*
29-
* @var array<string>
29+
* @var array<int,string>
3030
*/
3131
protected $fillable = [
3232
'user_id',

0 commit comments

Comments
 (0)