Skip to content

Commit 851bffe

Browse files
[1.x] Support Laravel 12 (#294)
1 parent 4eadfce commit 851bffe

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

Diff for: .github/workflows/tests.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,39 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [7.4, '8.0', 8.1, 8.2, 8.3]
20-
laravel: [8, 9, 10, 11]
19+
php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4]
20+
laravel: [8, 9, 10, 11, 12]
2121
exclude:
2222
- php: 7.4
2323
laravel: 9
2424
- php: 7.4
2525
laravel: 10
2626
- php: 7.4
2727
laravel: 11
28+
- php: 7.4
29+
laravel: 12
2830
- php: '8.0'
2931
laravel: 10
3032
- php: '8.0'
3133
laravel: 11
34+
- php: '8.0'
35+
laravel: 12
3236
- php: 8.1
3337
laravel: 11
38+
- php: 8.1
39+
laravel: 12
3440
- php: 8.2
3541
laravel: 8
3642
- php: 8.3
3743
laravel: 8
3844
- php: 8.3
3945
laravel: 9
46+
- php: 8.4
47+
laravel: 8
48+
- php: 8.4
49+
laravel: 9
50+
- php: 8.4
51+
laravel: 10
4052

4153
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
4254

@@ -55,8 +67,7 @@ jobs:
5567

5668
- name: Install dependencies
5769
run: |
58-
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
59-
composer update --prefer-dist --no-interaction --no-progress
70+
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}"
6071
6172
- name: Execute tests
6273
run: vendor/bin/phpunit

Diff for: composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"ext-json": "*",
2323
"ext-openssl": "*",
2424
"guzzlehttp/guzzle": "^7.4.5",
25-
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0",
26-
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
27-
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
28-
"illuminate/routing": "^8.0|^9.0|^10.0|^11.0",
29-
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
30-
"illuminate/view": "^8.0|^9.0|^10.0|^11.0",
25+
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0",
26+
"illuminate/database": "^8.0|^9.0|^10.0|^11.0|^12.0",
27+
"illuminate/http": "^8.0|^9.0|^10.0|^11.0|^12.0",
28+
"illuminate/routing": "^8.0|^9.0|^10.0|^11.0|^12.0",
29+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
30+
"illuminate/view": "^8.0|^9.0|^10.0|^11.0|^12.0",
3131
"moneyphp/money": "^3.2|^4.0",
3232
"nesbot/carbon": "^2.0|^3.0",
3333
"spatie/url": "^1.3.5|^2.0",
@@ -36,9 +36,9 @@
3636
},
3737
"require-dev": {
3838
"mockery/mockery": "^1.0",
39-
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
39+
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0",
4040
"phpstan/phpstan": "^1.10",
41-
"phpunit/phpunit": "^9.0|^10.4"
41+
"phpunit/phpunit": "^9.0|^10.4|^11.5"
4242
},
4343
"suggest": {
4444
"ext-intl": "Allows for more locales besides the default \"en\" when formatting money values."

0 commit comments

Comments
 (0)