Skip to content

Commit 618bf95

Browse files
committed
[TASK] Allow laravel 11
1 parent c7921ad commit 618bf95

File tree

5 files changed

+1410
-1574
lines changed

5 files changed

+1410
-1574
lines changed

.github/workflows/test.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,18 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php:
19-
- '8.1'
2019
- '8.2'
21-
- 'nightly'
20+
- '8.3'
2221

2322
laravel:
24-
- '9.0'
2523
- '10.0'
24+
- '11.0'
2625

2726
include:
28-
- php: '8.2'
29-
laravel: '10.0'
30-
stable: true
31-
- php: 'nightly'
32-
experimental: true
33-
34-
- laravel: '9.0'
35-
testbench: '7.0'
3627
- laravel: '10.0'
3728
testbench: '8.0'
29+
- laravel: '11.0'
30+
testbench: '9.0'
3831

3932
steps:
4033
- name: Checkout
@@ -48,8 +41,13 @@ jobs:
4841
coverage: pcov
4942

5043
- name: Remove platform from Composer file
44+
if: ${{ matrix.php }} == 'nightly'
5145
run: composer config --unset platform
5246

47+
- name: Set platform
48+
if: ${{ matrix.php }} != 'nightly'
49+
run: composer config platform.php ${{ matrix.php }}
50+
5351
- name: Configure to use Laravel ${{ matrix.laravel }} with Testbench ${{ matrix.testbench }}
5452
run: |
5553
composer require --no-update laravel/laravel:^${{ matrix.laravel }}
@@ -61,7 +59,6 @@ jobs:
6159
- name: Install Composer dependencies
6260
uses: ramsey/composer-install@v2
6361
with:
64-
composer-options: "--ignore-platform-req=php"
6562
dependency-versions: highest # We're installing additional packages, and cannot use the lockfile
6663

6764
- name: Run unit tests with coverage and printer

composer.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
"wysiwyg"
1111
],
1212
"require": {
13-
"php": "^8.1",
13+
"php": "^8.2",
1414
"ext-exif": "*",
1515
"ext-json": "*",
1616
"codex-team/editor.js": "*",
17-
"guzzlehttp/guzzle": "^6.0 || ^7.0",
18-
"illuminate/support": "^8.0 || ^9.0 || ^10.0",
19-
"illuminate/events": "^8.0 || ^9.0 || ^10.0",
17+
"guzzlehttp/guzzle": "^7.0",
18+
"illuminate/support": "^10.0 || ^11.0",
19+
"illuminate/events": "^10.0 || ^11.0",
2020
"laravel/nova": "^4.0",
21-
"spatie/image": "^1.7 || ^2.0"
21+
"spatie/image": "^3.0"
2222
},
2323
"require-dev": {
2424
"friendsofphp/php-cs-fixer": "^3.9",
25-
"orchestra/testbench": "^6.0 || ^7.0 || ^8.0",
25+
"orchestra/testbench": "^8.0 || ^9.0",
2626
"php-parallel-lint/php-parallel-lint": "^1.3"
2727
},
2828
"autoload": {
@@ -60,10 +60,7 @@
6060
}
6161
},
6262
"config": {
63-
"sort-packages": true,
64-
"platform": {
65-
"php": "8.1.25"
66-
}
63+
"sort-packages": true
6764
},
6865
"minimum-stability": "dev",
6966
"prefer-stable": true,

0 commit comments

Comments
 (0)