From 0fe12621aa5ab5610d3f83731d8ef73e45a85ec8 Mon Sep 17 00:00:00 2001 From: Ondrej Machulda Date: Sun, 7 Mar 2021 21:17:09 +0000 Subject: [PATCH] Allow PHP 8, add PHP 8 build (fixes #276) --- .github/workflows/tests.yaml | 3 ++- CHANGELOG.md | 1 + composer.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f4533c22..12b6a08f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - php-version: ['7.3', '7.4'] + php-version: ['7.3', '7.4', '8.0'] dependencies: [''] include: - { php-version: '7.3', dependencies: '--prefer-lowest --prefer-stable' } @@ -40,6 +40,7 @@ jobs: ./vendor/bin/phpunit --configuration ./src-tests/phpunit.xml --exclude-group integration --coverage-clover ./src-tests/logs/clover.xml - name: Submit coverage to Coveralls + if: ${{ matrix.php-version < 8.0 }} # Code coverage on PHP 8 is not supported with PHPUnit 8 env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_PARALLEL: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 64df37ca..e0b5adf5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### Added - `--parallel-limit` (`-l`) option of `run` command to allow limiting maximum number of tests being run simultaneously. - Show test duration in timeline tooltips. +- PHP 8 support. ### Changed - Require PHP 7.3+ and Symfony 5 components. diff --git a/composer.json b/composer.json index b26f5504..0992f970 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": "^7.3", + "php": "^7.3 || ^8.0", "ext-SimpleXML": "*", "ext-curl": "*", "ext-dom": "*",