Skip to content

Commit 14b59dc

Browse files
authored
Add Laravel 12 Support (#40)
1 parent ca824fe commit 14b59dc

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.3, 8.2, 8.1]
17-
laravel: ["^11.0", "^10.0", "^9.38"]
16+
php: [8.4, 8.3, 8.2, 8.1]
17+
laravel: ["^12.0", "^11.0", "^10.0", "^9.38"]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20+
- laravel: "^12.0"
21+
testbench: 10.*
2022
- laravel: "^11.0"
2123
testbench: 9.*
2224
- laravel: "^10.0"
@@ -26,6 +28,8 @@ jobs:
2628
exclude:
2729
- laravel: "^11.0"
2830
php: 8.1
31+
- laravel: "^12.0"
32+
php: 8.1
2933

3034
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3135

@@ -45,6 +49,9 @@ jobs:
4549
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4650
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4751
52+
- name: Remove larastan from dev dependencies
53+
run: composer remove --dev nunomaduro/larastan
54+
4855
- name: Install dependencies
4956
run: |
5057
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update

composer.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,19 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/contracts": "^9.38|^10.0|^11.0",
20+
"illuminate/contracts": "^9.38|^10.0|^11.0|^12.0",
2121
"spatie/laravel-package-tools": "^1.14.0",
2222
"symfony/mailer": "^6.0|^7.0"
2323
},
2424
"require-dev": {
25+
"composer/semver": "^3.4",
2526
"guzzlehttp/guzzle": "^7.5",
2627
"laravel/pint": "^1.0",
27-
"nunomaduro/collision": "^6.0|^7.0|^8.0",
28-
"nunomaduro/larastan": "^2.0.1",
29-
"orchestra/testbench": "^7.0|^8.0|^9.0",
30-
"pestphp/pest": "^1.21|^2.0",
31-
"pestphp/pest-plugin-laravel": "^1.21|^2.0",
28+
"nunomaduro/larastan": "^2.0.1|^3.0",
29+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
30+
"pestphp/pest": "^1.21|^2.0|^3.0",
31+
"pestphp/pest-plugin-laravel": "^1.21|^2.0|^3.0",
3232
"phpstan/extension-installer": "^1.1",
33-
"phpstan/phpstan-deprecation-rules": "^1.0",
34-
"phpstan/phpstan-phpunit": "^1.0",
3533
"spatie/laravel-ray": "^1.26"
3634
},
3735
"autoload": {

0 commit comments

Comments
 (0)