Skip to content

Commit c0bf371

Browse files
authored
[3.x] Supports Laravel 13 (#197)
* Supports Laravel 13 Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * fix workflow matrix Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> --------- Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent 104ac0b commit c0bf371

File tree

4 files changed

+25
-29
lines changed

4 files changed

+25
-29
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,23 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [8.1, 8.2, 8.3]
20-
laravel: [10, 11, 12]
21-
include:
22-
- php: 8.4
23-
laravel: 11
24-
- php: 8.4
25-
laravel: 12
26-
- php: 8.1
27-
laravel: 8
28-
- php: 8.1
29-
laravel: 9
30-
- php: 8.2
31-
laravel: 9
19+
php: [8.1, 8.2, 8.3, 8.4, 8.5]
20+
laravel: [10, 11, 12, 13]
3221
exclude:
3322
- php: 8.1
3423
laravel: 11
3524
- php: 8.1
3625
laravel: 12
26+
- php: 8.1
27+
laravel: 13
28+
- php: 8.2
29+
laravel: 13
30+
- php: 8.4
31+
laravel: 10
32+
- php: 8.5
33+
laravel: 10
34+
- php: 8.5
35+
laravel: 11
3736

3837
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
3938

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
composer.lock
33
/phpunit.xml
44
.phpunit.result.cache
5+
.phpunit.cache

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
],
1212
"require": {
1313
"php": "^8.1",
14-
"illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0",
15-
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0",
16-
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
14+
"illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
15+
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
16+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0",
1717
"psy/psysh": "^0.12.0",
1818
"symfony/var-dumper": "^5.4|^6.0|^7.0|^8.0"
1919
},
2020
"require-dev": {
2121
"mockery/mockery": "~1.3.3|^1.4.2",
2222
"phpstan/phpstan": "^1.10",
23-
"phpunit/phpunit": "^9.6.8|^10.5"
23+
"phpunit/phpunit": "^10.5|^11.5"
2424
},
2525
"suggest": {
26-
"illuminate/database": "The Illuminate Database package (^8.0|^9.0|^10.0|^11.0|^12.0)."
26+
"illuminate/database": "The Illuminate Database package (^8.0|^9.0|^10.0|^11.0|^12.0|^13.0)."
2727
},
2828
"autoload": {
2929
"psr-4": {

phpunit.xml.dist

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
43
bootstrap="vendor/autoload.php"
54
colors="true"
6-
convertDeprecationsToExceptions="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
105
processIsolation="false"
116
stopOnFailure="false"
12-
>
13-
<testsuites>
14-
<testsuite name="Laravel Tinker Test Suite">
15-
<directory suffix="Test.php">./tests/</directory>
16-
</testsuite>
17-
</testsuites>
7+
cacheDirectory=".phpunit.cache"
8+
backupStaticProperties="false">
9+
<testsuites>
10+
<testsuite name="Laravel Tinker Test Suite">
11+
<directory suffix="Test.php">./tests/</directory>
12+
</testsuite>
13+
</testsuites>
1814
</phpunit>

0 commit comments

Comments
 (0)