From 794fb43b96c4835ee6d16fa6c4c0f6202264dba3 Mon Sep 17 00:00:00 2001 From: Dragos Protung Date: Mon, 16 Nov 2026 14:22:59 +0100 Subject: [PATCH] Support PHP 8.6 --- .github/workflows/build.yml | 9 +++++++-- README.md | 2 +- composer.json | 20 ++++++++++---------- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00d5a21..7c02dc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,12 +23,16 @@ jobs: php-version: - 8.4 - 8.5 + - 8.6 symfony-version: - 6.4.* - 7.4.* - - 8.0.* - 8.1.* dependencies: [lowest, highest] + include: + # moneyphp/money doesn't allow PHP 8.6 yet + - php-version: 8.6 + composer-options: --ignore-platform-req=php+ name: 'PHP ${{ matrix.php-version }} + Symfony ${{ matrix.symfony-version }} + ${{ matrix.dependencies }} dependencies' steps: @@ -39,6 +43,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} + extensions: imagick coverage: none - name: "symfony/flex is required to install the correct symfony version" @@ -50,7 +55,7 @@ jobs: uses: ramsey/composer-install@v4 with: dependency-versions: "${{ matrix.dependencies }}" - composer-options: --prefer-dist + composer-options: --prefer-dist ${{ matrix.composer-options }} - name: Setup just uses: extractions/setup-just@v4 diff --git a/README.md b/README.md index c4cf3bc..79a9620 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A Symfony bundle with base test cases and helpers for functional testing, focuse ## Requirements -- PHP 8.4 or 8.5 +- PHP 8.4, 8.5 or 8.6 - Symfony 6.4, 7.4 or 8.x - PHPUnit 12.5.8+ or 13 - Doctrine ORM 2.20+ or 3, DBAL 3 or 4 diff --git a/composer.json b/composer.json index d3e9f0b..ebd8ad1 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "php": "~8.4.0 || ~8.5.0", + "php": "~8.4.0 || ~8.5.0 || ~8.6.0", "ext-dom": "*", "ext-json": "*", "coduo/php-matcher": "^6.0.18", @@ -34,23 +34,23 @@ "ext-imagick": "*", "ext-intl": "*", "doctrine/coding-standard": "^14.0.0", - "ergebnis/composer-normalize": "^2.54.0", + "ergebnis/composer-normalize": "^2.57.0", "mikey179/vfsstream": "^1.6.12", "moneyphp/money": "^4.9.0", - "nesbot/carbon": "^3.11.4", + "nesbot/carbon": "^3.15.1", "php-standard-library/phpstan-extension": "^2.1.0", - "phpstan/phpstan": "^2.2.16", - "phpstan/phpstan-phpunit": "^2.0.19", - "phpstan/phpstan-strict-rules": "^2.0.12", - "phpstan/phpstan-symfony": "^2.0.20", - "spatie/pdf-to-image": "^3.2.0", - "spatie/pdf-to-text": "^1.54.0", + "phpstan/phpstan": "^2.3.6", + "phpstan/phpstan-phpunit": "^2.1.2", + "phpstan/phpstan-strict-rules": "^2.1.1", + "phpstan/phpstan-symfony": "^2.1.1", + "spatie/pdf-to-image": "^3.5.0", + "spatie/pdf-to-text": "^1.54.1", "symfony/clock": "^6.4 || ^7.4 || ^8.0", "symfony/console": "^6.4 || ^7.4 || ^8.0", "symfony/form": "^6.4 || ^7.4 || ^8.0", "symfony/security-core": "^6.4 || ^7.4 || ^8.0", "symfony/validator": "^6.4 || ^7.4 || ^8.0", - "twig/twig": "^3.23.0" + "twig/twig": "^3.30.0" }, "conflict": { "spatie/pdf-to-image": "<3.0.0",