From fb8af570906d25dcac7ed65ee86263d8c86b0e85 Mon Sep 17 00:00:00 2001 From: Andrei Ciungulete Date: Tue, 18 Jan 2022 13:43:08 +0200 Subject: [PATCH] Add support for Laravel 9 --- .github/workflows/tests.yml | 11 ++++------- composer.json | 15 ++++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36c6d04..1d70f2c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,11 +12,8 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, 8.0, 8.1] - laravel: [^7.0, ^8.0] - exclude: - - php: 8.1 - laravel: ^7.0 + php: ['8.0', 8.1] + laravel: [8, 9] name: P${{ matrix.php }} - L${{ matrix.laravel }} @@ -34,8 +31,8 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update - composer update --prefer-dist --no-interaction --no-progress + composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update + composer update --prefer-dist --no-interaction --no-progress --ignore-platform-reqs - name: Execute tests run: vendor/bin/phpunit --verbose diff --git a/composer.json b/composer.json index 64885a1..6ff4720 100644 --- a/composer.json +++ b/composer.json @@ -41,18 +41,17 @@ "socialite" ], "require": { - "php": "^7.2|^8.0", - "illuminate/support": "^6.0|^7.0|^8.0", + "php": "^7.3|^8.0", + "illuminate/support": "^8.0|^9.0", "mollie/mollie-api-php": "^2.40", "ext-json": "*" }, "require-dev": { - "graham-campbell/testbench": "^5.5", + "graham-campbell/testbench": "^5.0", "mockery/mockery": "^1.0", - "phpunit/phpunit": "^7.5|^8.0", - "laravel/socialite": "^4.0|^5.0", + "phpunit/phpunit": "^9.0", + "laravel/socialite": "^5.0", "friendsofphp/php-cs-fixer": "^3.0" - }, "suggest": { "laravel/socialite": "Use Mollie Connect (OAuth) to authenticate via Laravel Socialite with the Mollie API. This is needed for some endpoints." @@ -83,5 +82,7 @@ "scripts": { "test": "./vendor/bin/phpunit tests", "format": "./vendor/bin/php-cs-fixer fix --allow-risky=yes" - } + }, + "minimum-stability": "dev", + "prefer-stable": true }