Skip to content

Commit

Permalink
Support Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Mar 1, 2024
1 parent 0de2508 commit 38d3452
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
composer-normalize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.1
php-version: 8.2

- run: composer install --no-interaction --no-progress --no-suggest

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

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

- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: mbstring
php-version: 8.1
php-version: 8.2

- run: composer install --no-interaction --no-progress --no-suggest

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Validate"
name: Validate

on:
pull_request:
push:
Expand All @@ -20,6 +21,7 @@ jobs:
laravel-version:
- "^9"
- "^10"
- "^11"
composer:
- name: lowest
arg: "--prefer-lowest --prefer-stable"
Expand All @@ -28,22 +30,20 @@ jobs:
exclude:
- 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:
coverage: none
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }}
php-version: ${{ matrix.php-version }}

- name: "Cache composer dependencies"
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }}-os-${{ matrix.os }}-composer-${{ matrix.composer.name }}

- run: >
composer require
illuminate/contracts:${{ matrix.laravel-version }}
Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@
],
"require": {
"php": "^8",
"illuminate/console": "^9 || ^10",
"illuminate/contracts": "^9 || ^10",
"illuminate/support": "^9 || ^10"
"illuminate/console": "^9 || ^10 || ^11",
"illuminate/contracts": "^9 || ^10 || ^11",
"illuminate/support": "^9 || ^10 || ^11"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29",
"laravel/lumen-framework": "^9 || ^10",
"larastan/larastan": "^2.5.2",
"mll-lab/php-cs-fixer-config": "^5",
"nunomaduro/larastan": "^2.5.2",
"orchestra/testbench": "^7.7 || ^8.8",
"orchestra/testbench": "^7.7 || ^8.8 || ^9",
"phpstan/extension-installer": "^1",
"phpstan/phpstan": "^1.10.15",
"phpstan/phpstan-mockery": "^1.1.1",
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ parameters:
# Install https://plugins.jetbrains.com/plugin/7677-awesome-console to make those links clickable
editorUrl: '%%relFile%%:%%line%%'
editorUrlTitle: '%%relFile%%:%%line%%'
ignoreErrors:
# Lumen does not support Laravel 11
- '#Laravel\\Lumen#'

0 comments on commit 38d3452

Please sign in to comment.