From bd1c2f9424165ec0288967312854cc43e08abdb2 Mon Sep 17 00:00:00 2001 From: Stephan Vock Date: Fri, 24 Jun 2022 21:18:56 +0100 Subject: [PATCH] CI: enable PHP 8.1 --- .github/workflows/php.yml | 4 +++- phpstan-dba-bootstrap.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 02aa7be7a..a3e4f0016 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -15,6 +15,7 @@ jobs: matrix: php-version: - "8.0" + - "8.1" services: mysql: @@ -75,7 +76,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "8.1" name: PHP-CS-Fixer runs-on: ubuntu-latest @@ -111,6 +112,7 @@ jobs: matrix: php-version: - "8.0" + - "8.1" services: mysql: diff --git a/phpstan-dba-bootstrap.php b/phpstan-dba-bootstrap.php index 770e49485..b8377aaf3 100644 --- a/phpstan-dba-bootstrap.php +++ b/phpstan-dba-bootstrap.php @@ -15,7 +15,7 @@ $config = new RuntimeConfiguration(); $config->debugMode(true); -$config->stringifyTypes(true); // TODO remove when upgrading to PHP 8.1 +$config->stringifyTypes(PHP_VERSION_ID <= 80000); // TODO remove when upgrading to PHP 8.1 $dsn = parse_url($_SERVER['DATABASE_URL']);