From d0899a4e3df0a5f8ca766af7979aead55663c5fd Mon Sep 17 00:00:00 2001 From: Yozhef Date: Fri, 29 Jan 2021 21:40:07 +0200 Subject: [PATCH] allow php 8.0 --- .github/workflows/test.yaml | 9 +-------- composer.json | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b8ce04da..489b4a93 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -33,6 +33,7 @@ jobs: php-version: - '7.3' - '7.4' + - '8.0' dependencies: [highest] allowed-to-fail: [false] variant: [normal] @@ -41,10 +42,6 @@ jobs: dependencies: lowest allowed-to-fail: false variant: normal - - php-version: '8.0' - dependencies: highest - allowed-to-fail: true - variant: normal - php-version: '7.4' dependencies: highest allowed-to-fail: false @@ -69,10 +66,6 @@ jobs: - name: Add PHPUnit matcher run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Configuration required for PHP 8.0 - if: matrix.php-version == '8.0' - run: composer config platform.php 7.4.99 - - name: Install variant if: matrix.variant != 'normal' run: composer require ${{ matrix.variant }} --no-update diff --git a/composer.json b/composer.json index c04e16a1..f6da7ee7 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } ], "require": { - "php": "^7.3", + "php": "^7.3 || ^8.0", "cocur/slugify": "^3.0 || ^4.0", "doctrine/persistence": "^1.3.6 || ^2.0", "sonata-project/datagrid-bundle": "^2.3 || ^3.0",