From 17b8c3871a2fd7889750e28ab8a9cfac1833150b Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 31 Jan 2025 14:40:02 +0800 Subject: [PATCH] Supports Laravel 12 Signed-off-by: Mior Muhammad Zaki --- .github/workflows/tests.yml | 6 ++++-- composer.json | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6522597a5..566c8e376 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,7 @@ jobs: fail-fast: true matrix: php: [8.1, 8.2, 8.3, 8.4] - laravel: [10, 11] + laravel: [10, 11, 12] include: - php: 8.2 laravel: 9 @@ -41,6 +41,8 @@ jobs: laravel: 10 - php: 8.1 laravel: 11 + - php: 8.1 + laravel: 12 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} @@ -59,7 +61,7 @@ jobs: - name: Install dependencies run: | - composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts=^${{ matrix.laravel }}" + composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}" - name: Execute tests run: vendor/bin/phpunit ${{ matrix.laravel >= 10 && '--display-deprecations --fail-on-deprecation' || '' }} diff --git a/composer.json b/composer.json index dec254e5c..45f381748 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": "^8.0", "ext-json": "*", - "laravel/framework": "^8.37|^9.0|^10.0|^11.0", + "laravel/framework": "^8.37|^9.0|^10.0|^11.0|^12.0", "symfony/console": "^5.3|^6.0|^7.0", "symfony/var-dumper": "^5.0|^6.0|^7.0" }, @@ -24,9 +24,9 @@ "ext-gd": "*", "guzzlehttp/guzzle": "^6.0|^7.0", "laravel/octane": "^1.4|^2.0|dev-develop", - "orchestra/testbench": "^6.40|^7.37|^8.17|^9.0", + "orchestra/testbench": "^6.40|^7.37|^8.17|^9.0|^10.0", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.0|^10.5" + "phpunit/phpunit": "^9.0|^10.5|^11.5" }, "autoload": { "psr-4": {