From 87a6b9ed7f910fb79beca15a875e57712889acc5 Mon Sep 17 00:00:00 2001 From: dmason30 Date: Mon, 24 Feb 2025 22:11:01 +0000 Subject: [PATCH 1/2] Adds Laravel 12.x Support --- .github/workflows/phpstan.yml | 2 +- .github/workflows/run-tests.yml | 18 +++++++++++------- composer.json | 14 +++++++------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 3855a08..c1a2fa8 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -16,7 +16,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 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0b6fc36..581d8c5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,17 +13,21 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.4, 8.3, 8.2, 8.1] - laravel: ['^11.0', '^10.0'] + php: [8.1, 8.2, 8.3, 8.4] + laravel: [10.*, 11.*, 12.*] stability: [prefer-lowest, prefer-stable] exclude: - - laravel: '^11.0' + - laravel: 11.* + php: 8.1 + - laravel: 12.* php: 8.1 include: - - laravel: '^10.0' - testbench: 8.* - - laravel: '^11.0' - testbench: 9.* + - laravel: 10.* + testbench: ^8.0 + - laravel: 11.* + testbench: ^9.0 + - laravel: 12.* + testbench: ^10.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index 2065647..48ba4c2 100644 --- a/composer.json +++ b/composer.json @@ -17,18 +17,18 @@ ], "require": { "php": "^8.1", - "illuminate/console": "^10.0|^11.0" + "illuminate/console": "^10.0|^11.0|^12.0" }, "require-dev": { "laravel/pint": "^1.0", "nunomaduro/collision": "^7.0|^8.0", - "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.0|^9.0", - "pestphp/pest": "^2.0", - "pestphp/pest-plugin-laravel": "^2.0", + "larastan/larastan": "^3.1", + "orchestra/testbench": "^8.0|^9.0|^10.0", + "pestphp/pest": "^3.0", + "pestphp/pest-plugin-laravel": "^3.0", "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0" + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0" }, "autoload": { "psr-4": { From 5a79664a5cba16f72f38f779ca777a89c87b3576 Mon Sep 17 00:00:00 2001 From: dmason30 Date: Mon, 24 Feb 2025 22:13:23 +0000 Subject: [PATCH 2/2] Drops Laravel 10.x Support --- .github/workflows/run-tests.yml | 11 ++--------- composer.json | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 581d8c5..b13855f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,17 +13,10 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.1, 8.2, 8.3, 8.4] - laravel: [10.*, 11.*, 12.*] + php: [8.2, 8.3, 8.4] + laravel: [11.*, 12.*] stability: [prefer-lowest, prefer-stable] - exclude: - - laravel: 11.* - php: 8.1 - - laravel: 12.* - php: 8.1 include: - - laravel: 10.* - testbench: ^8.0 - laravel: 11.* testbench: ^9.0 - laravel: 12.* diff --git a/composer.json b/composer.json index 48ba4c2..a2f50ac 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ ], "require": { "php": "^8.1", - "illuminate/console": "^10.0|^11.0|^12.0" + "illuminate/console": "^11.0|^12.0" }, "require-dev": { "laravel/pint": "^1.0", "nunomaduro/collision": "^7.0|^8.0", "larastan/larastan": "^3.1", - "orchestra/testbench": "^8.0|^9.0|^10.0", + "orchestra/testbench": "^9.0|^10.0", "pestphp/pest": "^3.0", "pestphp/pest-plugin-laravel": "^3.0", "phpstan/extension-installer": "^1.1",