Skip to content

Commit

Permalink
Support Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Apr 24, 2024
1 parent 9d92c19 commit 29c6c5f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
composer-normalize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand All @@ -29,7 +29,7 @@ jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand All @@ -44,7 +44,7 @@ jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,27 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
laravel-version:
- "^8"
- "^9"
- "^10"
- "^11"
exclude:
- php-version: "7.4"
laravel-version: "^9"
- php-version: "7.4"
laravel-version: "^10"
- php-version: "7.4"
laravel-version: "^11"
- php-version: "8.0"
laravel-version: "^10"
- php-version: "8.0"
laravel-version: "^11"
- php-version: "8.1"
laravel-version: "^11"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## v2.3.0

### Added

- Support Laravel 11

## v2.2.0

### Added
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ setup: vendor ## Setup the local environment

.PHONY: fix
fix: ## Fix code style
composer normalize
vendor/bin/php-cs-fixer fix

.PHONY: stan
Expand Down
14 changes: 8 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@
],
"require": {
"php": "^7.4 || ^8",
"illuminate/console": "^8 || ^9 || ^10",
"illuminate/contracts": "^8 || ^9 || ^10",
"illuminate/support": "^8 || ^9 || ^10",
"illuminate/console": "^8 || ^9 || ^10 || ^11",
"illuminate/contracts": "^8 || ^9 || ^10 || ^11",
"illuminate/support": "^8 || ^9 || ^10 || ^11",
"thecodingmachine/safe": "^1 || ^2"
},
"require-dev": {
"ergebnis/composer-normalize": "^2",
"laravel/lumen-framework": "^8 || ^9 || ^10",
"laravel/lumen-framework": "^8 || ^9 || ^10 || ^11",
"mll-lab/php-cs-fixer-config": "^5",
"nunomaduro/larastan": "^0.7 || ^1 || ^2",
"orchestra/testbench": "^6 || ^7 || ^8",
"orchestra/testbench": "^6 || ^7 || ^8 || ^9",
"phpstan/extension-installer": "^1",
"thecodingmachine/phpstan-safe-rule": "^1"
},
"minimum-stability": "dev",
Expand All @@ -37,7 +38,8 @@
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
},
"sort-packages": true
},
Expand Down
3 changes: 0 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
includes:
- vendor/nunomaduro/larastan/extension.neon
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
parameters:
level: max
paths:
Expand Down

0 comments on commit 29c6c5f

Please sign in to comment.