From 3738ba2e4a6e902d651ac39c262669db56b2f23a Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Sat, 7 Aug 2021 02:28:05 +0200
Subject: [PATCH] Build/Tests: enable testing against PHP 8.1

PHP 8.1 is expected to be released end of November. Enabling the tests to run in CI on PHP 8.1 will allow us to get ready in time.

These builds are, for now, still allowed to fail.
---
 .github/workflows/phpunit-tests.yml | 7 +++++--
 tools/local-env/php-config.ini      | 1 +
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml
index b368524ca5..01581431ae 100644
--- a/.github/workflows/phpunit-tests.yml
+++ b/.github/workflows/phpunit-tests.yml
@@ -63,7 +63,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        php: [ '5.6.20', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
+        php: [ '5.6.20', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
         os: [ ubuntu-latest ]
         memcached: [ false ]
         split_slow: [ false ]
@@ -95,6 +95,9 @@ jobs:
             memcached: false
             multisite: false
             report: true
+
+    continue-on-error: ${{ matrix.php == '8.1' }}
+
     env:
       LOCAL_PHP: ${{ matrix.php }}-fpm
       LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }}
@@ -142,7 +145,7 @@ jobs:
           docker-compose run --rm php composer --version
 
           # Install using `composer update` as there is no `composer.lock` file.
-          if [ ${{ env.LOCAL_PHP }} == '8.0-fpm' ]; then
+          if [ ${{ env.LOCAL_PHP }} == '8.1-fpm' ]; then
             docker-compose run --rm php composer update --ignore-platform-reqs
           else
             docker-compose run --rm php composer update
diff --git a/tools/local-env/php-config.ini b/tools/local-env/php-config.ini
index 1f385e924c..4e5efb30d6 100644
--- a/tools/local-env/php-config.ini
+++ b/tools/local-env/php-config.ini
@@ -1,2 +1,3 @@
+error_reporting = -1
 upload_max_filesize = 1G
 post_max_size = 1G
-- 
2.32.0.windows.2

