From c3f79b1428ffde70ea68fc53805b8801a96c146d Mon Sep 17 00:00:00 2001 From: core23 Date: Fri, 27 Nov 2020 10:12:59 +0100 Subject: [PATCH 1/3] Add support for PHP 8 --- .github/workflows/continuous-integration.yml | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e203b710..25d92862 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -112,6 +112,7 @@ jobs: php-version: - 7.3 - 7.4 + - 8.0 dependencies: - lowest diff --git a/composer.json b/composer.json index 8d1462dd..0b584094 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": "^7.3", + "php": "^7.3 || ^8.0", "ext-json": "*", "ext-mbstring": "*", "doctrine/collections": "^1.6", From 193c1ae4884b2603d4459fef3cb459984b18947c Mon Sep 17 00:00:00 2001 From: core23 Date: Sun, 27 Dec 2020 12:39:39 +0100 Subject: [PATCH 2/3] Bump twig --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0b584094..20cb692e 100644 --- a/composer.json +++ b/composer.json @@ -47,7 +47,7 @@ "symfony/twig-bridge": "^4.4 || ^5.0", "symfony/twig-bundle": "^4.4 || ^5.0", "symfony/validator": "^4.4 || ^5.0", - "twig/twig": "^2.4 || ^3.0" + "twig/twig": "^2.14 || ^3.1" }, "conflict": { "doctrine/doctrine-bundle": "<1.12", From 3da8c4d91356d4f58769c1013778440362b88e4c Mon Sep 17 00:00:00 2001 From: core23 Date: Sun, 27 Dec 2020 12:53:40 +0100 Subject: [PATCH 3/3] Add composer workaround for PHP8 testing --- .github/workflows/continuous-integration.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 25d92862..47f31afd 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -133,6 +133,10 @@ jobs: extensions: "mbstring, json, mongo" php-version: ${{ matrix.php-version }} + - name: "Configuration required for PHP 8.0" + if: matrix.php-version == '8.0' + run: composer config platform.php 7.4.99 + - name: 'Install Symfony Flex' run: composer global require --prefer-dist --no-progress --no-suggest --ansi symfony/flex