Skip to content

Commit

Permalink
Add support for Laravel 11 (#5)
Browse files Browse the repository at this point in the history
* Add Laravel 11

* Update workflows

* Update larastan

* Update testbench versions

* Fix workflows
  • Loading branch information
cbaconnier authored Mar 12, 2024
1 parent 0f1c41b commit 6d28576
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1]
laravel: [10.*]
php: [8.1, 8.2, 8.3]
laravel: [10.*, 11.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 10.*
testbench: ^8.20
- laravel: 11.*
testbench: ^9.0
exclude:
- php: 8.1
laravel: 11.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

Expand Down
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
],
"require": {
"php": "^8.1",
"illuminate/http": "^10.0",
"illuminate/support": "^10.0"
"illuminate/http": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0"
},
"autoload": {
"psr-4": {
Expand All @@ -35,15 +35,18 @@
"test": "phpunit"
},
"require-dev": {
"orchestra/testbench": "^8.12",
"orchestra/testbench": "^8.20|^9.0",
"phpunit/phpunit": "^10.3",
"guzzlehttp/guzzle": "^7.8",
"nunomaduro/larastan": "^2.6",
"larastan/larastan": "^2.9",
"phpstan/extension-installer": "^1.3"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
}
},
"minimum-stability" : "dev",
"prefer-stable" : true
}

0 comments on commit 6d28576

Please sign in to comment.