From c1b92009ecc25821d61ae5d6afe55665e51fb1bd Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Thu, 3 Dec 2020 08:57:16 +0900 Subject: [PATCH] PHP 8 support --- .github/workflows/main.yml | 5 +++++ composer.json | 2 +- composer.lock | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78a9646..c750a50 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,7 @@ jobs: - '7.2' - '7.3' - '7.4' + - '8.0' name: PHP ${{ matrix.php-version }} @@ -30,6 +31,10 @@ jobs: key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- + - name: Remove lock for PHP 8 + if: matrix.php-version == '8.0' + run: rm composer.lock + - name: Install dependencies run: composer install diff --git a/composer.json b/composer.json index 3f7892b..2268a39 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ } }, "require": { - "php": "^7.2", + "php": "^7.2 || ^8.0", "ext-bcmath": "*", "ext-fileinfo": "*", "ext-json": "*", diff --git a/composer.lock b/composer.lock index 8428edd..38ab907 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0e122ed9214da054a1d45adf8a9c7daa", + "content-hash": "e23c76709a88e1023105f97a21d681b3", "packages": [ { "name": "cakephp/chronos", @@ -6589,7 +6589,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.2", + "php": "^7.2 || ^8.0", "ext-bcmath": "*", "ext-fileinfo": "*", "ext-json": "*",