From 545684cc03de5ec691f72b21d2d86c02a5a7d2d7 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 24 Mar 2021 14:45:36 +0100 Subject: [PATCH] allow installation on PHP 8 --- .github/workflows/ci.yaml | 4 ++++ composer.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 951f6d4..7872523 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,6 +21,10 @@ jobs: composer-options: '--prefer-stable' - php-version: '7.3' composer-options: '--prefer-stable' + - php-version: '7.4' + composer-options: '--prefer-stable' + - php-version: '8.0' + composer-options: '--prefer-stable' steps: - name: 'Check out' diff --git a/composer.json b/composer.json index 15208f4..5b7847f 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "^7.1", + "php": "^7.1 || ^8.0", "php-http/client-common": "^1.0 || ^2.0", "php-http/client-implementation": "^1.0", "php-http/httplug": "^1.0 || ^2.0", @@ -26,7 +26,7 @@ "psr/http-message": "^1.0" }, "require-dev": { - "phpspec/phpspec": "^2.4", + "phpspec/phpspec": "^5.0 || ^6.0 || ^7.0", "php-http/mock-client": "^1.2", "php-xapi/test-fixtures": "^1.0", "symfony/phpunit-bridge": "^5.2"