Skip to content

Commit ed4c438

Browse files
feat: laravel 12.x compatibility (#1047)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12 * update PHPUnit configuration for Laravel 12 compatibility --------- Co-authored-by: Kieran <[email protected]>
1 parent cdaee7e commit ed4c438

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

.github/workflows/php-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
laravel: ['10', '11']
15+
laravel: ['10', '11', '12']
1616
php: ['8.1', '8.2', '8.3', '8.4']
1717
exclude:
1818
- laravel: '11'
1919
php: '8.1'
2020
- laravel: '10'
2121
php: '8.4'
22+
- laravel: '12'
23+
php: '8.1'
2224

2325
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}
2426

@@ -56,4 +58,4 @@ jobs:
5658

5759
- name: Check code coverage
5860
uses: codecov/codecov-action@v4
59-
if: "matrix.php == '8.2' && matrix.laravel == '10'"
61+
if: "matrix.php == '8.4' && matrix.laravel == '12'"

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@
2727
],
2828
"require": {
2929
"php": "^8.1",
30-
"illuminate/config": "^10.0|^11.0",
31-
"illuminate/contracts": "^10.0|^11.0",
32-
"illuminate/http": "^10.0|^11.0",
33-
"illuminate/support": "^10.0|^11.0",
34-
"illuminate/translation": "^10.0|^11.0",
35-
"illuminate/validation": "^10.0|^11.0",
36-
"illuminate/view": "^10.0|^11.0",
30+
"illuminate/config": "^10.0|^11.0|^12.0",
31+
"illuminate/contracts": "^10.0|^11.0|^12.0",
32+
"illuminate/http": "^10.0|^11.0|^12.0",
33+
"illuminate/support": "^10.0|^11.0|^12.0",
34+
"illuminate/translation": "^10.0|^11.0|^12.0",
35+
"illuminate/validation": "^10.0|^11.0|^12.0",
36+
"illuminate/view": "^10.0|^11.0|^12.0",
3737
"symfony/http-foundation": "^6.0|^7.0"
3838
},
3939
"require-dev": {
4040
"mockery/mockery": "^1.0",
41-
"orchestra/testbench": "^8.0|^9.0",
42-
"phpunit/phpunit": "^9.5|^10.0"
41+
"orchestra/testbench": "^8.0|^9.0|^10.0",
42+
"phpunit/phpunit": "^9.5|^10.0|^11.5.3"
4343
},
4444
"autoload": {
4545
"psr-4": {

phpunit.xml.dist

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
colors="true"
77
processIsolation="false"
88
stopOnFailure="false"
9-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
1010
cacheDirectory=".phpunit.cache"
11+
displayDetailsOnPhpunitDeprecations="true"
1112
backupStaticProperties="false">
1213
<coverage>
13-
<include>
14-
<directory suffix=".php">src/</directory>
15-
</include>
1614
<report>
1715
<clover outputFile="build/logs/clover.xml"/>
1816
</report>
@@ -28,4 +26,9 @@
2826
<php>
2927
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
3028
</php>
29+
<source>
30+
<include>
31+
<directory suffix=".php">src/</directory>
32+
</include>
33+
</source>
3134
</phpunit>

0 commit comments

Comments
 (0)