From edab86ca241865c493e3d32b560a56634c4a86a2 Mon Sep 17 00:00:00 2001 From: Romain MILLAN Date: Wed, 25 Nov 2026 09:23:54 +0100 Subject: [PATCH 1/3] chore: Drop Symfony 6.4 support and require PHP 8.2 --- .github/workflows/ci.yml | 4 ++-- README.md | 4 ++-- UPGRADE-2.0.md | 6 +++--- composer.json | 24 ++++++++++++------------ 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f52c735..c4d94d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: fail-fast: false matrix: include: - - { os: ubuntu-latest, php: 8.1, symfony: "6.4.*", composer-flags: "--prefer-stable --prefer-lowest" } - - { os: ubuntu-latest, php: 8.2, symfony: "7.4.*", composer-flags: "--prefer-stable" } + - { os: ubuntu-latest, php: 8.2, symfony: "7.4.*", composer-flags: "--prefer-stable --prefer-lowest" } + - { os: ubuntu-latest, php: 8.3, symfony: "7.4.*", composer-flags: "--prefer-stable" } - { os: ubuntu-latest, php: 8.4, symfony: "8.1.*", composer-flags: "--prefer-stable" } steps: diff --git a/README.md b/README.md index b25b8b6..e6ddef5 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ This symfony bundle provides cron file generation utilities. Requirements ============ -* PHP 8.1 or higher -* Symfony 6.4, 7.4 or 8.1+ (Symfony 8.0 is end-of-life and not supported) +* PHP 8.2 or higher +* Symfony 7.4 or 8.1+ (Symfony 8.0 is end-of-life and not supported) * Twig 3 Using an older PHP or Symfony version? Stick to the `1.x` releases (latest: `1.4.0`). diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index 79d3f8a..61063af 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -4,9 +4,9 @@ UPGRADE FROM 1.x to 2.0 Requirements ------------ -* PHP 8.1 or higher is required. -* Symfony 6.4, 7.4 or 8.1+ is required (support for Symfony 4.4, 5.4, 6.0 to 6.3 - and 8.0 is dropped; Symfony 8.0 is end-of-life). +* PHP 8.2 or higher is required. +* Symfony 7.4 or 8.1+ is required (support for Symfony 4.4, 5.4, 6.x and 8.0 is + dropped; Symfony 8.0 is end-of-life). * Twig 3 is required (support for Twig 2 is dropped), with a lower bound raised to a version without known security advisories. * Services are now loaded from PHP configuration files instead of XML ones. Service IDs diff --git a/composer.json b/composer.json index dc2e4f1..e3b9d48 100644 --- a/composer.json +++ b/composer.json @@ -11,24 +11,24 @@ } ], "require": { - "php": ">=8.1", - "symfony/console": "^6.4|^7.4|^8.1", - "symfony/framework-bundle": "^6.4|^7.4|^8.1", - "symfony/twig-bundle": "^6.4|^7.4|^8.1", + "php": ">=8.2", + "symfony/console": "^7.4|^8.1", + "symfony/framework-bundle": "^7.4|^8.1", + "symfony/twig-bundle": "^7.4|^8.1", "twig/twig": "^3.27" }, "require-dev": { "symfony/phpunit-bridge": "^7.4|^8.1", - "symfony/var-dumper": "^6.4|^7.4|^8.1" + "symfony/var-dumper": "^7.4|^8.1" }, "conflict": { - "symfony/cache": "<6.4.40|>=7.0,<7.4.12", - "symfony/config": "<6.4.50|>=7.0,<7.4.23|>=8.0,<8.1.11", - "symfony/filesystem": "<6.4.50|>=7.0,<7.4.23|>=8.0,<8.1.11", - "symfony/framework-bundle": ">=7.4,<7.4.23|>=8.0,<8.1.11", - "symfony/http-foundation": "<6.4.50|>=7.0,<7.4.23|>=8.0,<8.1.11", - "symfony/http-kernel": "<6.4.50|>=7.0,<7.4.23|>=8.0,<8.1.11", - "symfony/routing": "<6.4.50|>=7.0,<7.4.23|>=8.0,<8.1.11" + "symfony/cache": "<7.4.12", + "symfony/config": "<7.4.23|>=8.0,<8.1.11", + "symfony/filesystem": "<7.4.23|>=8.0,<8.1.11", + "symfony/framework-bundle": "<7.4.23|>=8.0,<8.1.11", + "symfony/http-foundation": "<7.4.23|>=8.0,<8.1.11", + "symfony/http-kernel": "<7.4.23|>=8.0,<8.1.11", + "symfony/routing": "<7.4.23|>=8.0,<8.1.11" }, "autoload": { "psr-4": { "Lexik\\Bundle\\CronFileGeneratorBundle\\": "" }, From 7ef8337c25c37f9d7e4a5b21da21cb2c029286cd Mon Sep 17 00:00:00 2001 From: Romain MILLAN Date: Wed, 25 Nov 2026 09:25:33 +0100 Subject: [PATCH 2/3] ci: Add PHP 8.5 and 8.6 to the test matrix --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4d94d0..4555efa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,13 +11,17 @@ jobs: test: runs-on: ${{ matrix.os }} name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}" + # PHP versions still in development must not block the build + continue-on-error: ${{ matrix.experimental == true }} strategy: fail-fast: false matrix: include: - - { os: ubuntu-latest, php: 8.2, symfony: "7.4.*", composer-flags: "--prefer-stable --prefer-lowest" } - - { os: ubuntu-latest, php: 8.3, symfony: "7.4.*", composer-flags: "--prefer-stable" } - - { os: ubuntu-latest, php: 8.4, symfony: "8.1.*", composer-flags: "--prefer-stable" } + - { os: ubuntu-latest, php: "8.2", symfony: "7.4.*", composer-flags: "--prefer-stable --prefer-lowest" } + - { os: ubuntu-latest, php: "8.3", symfony: "7.4.*", composer-flags: "--prefer-stable" } + - { os: ubuntu-latest, php: "8.4", symfony: "8.1.*", composer-flags: "--prefer-stable" } + - { os: ubuntu-latest, php: "8.5", symfony: "8.1.*", composer-flags: "--prefer-stable" } + - { os: ubuntu-latest, php: "8.6", symfony: "8.1.*", composer-flags: "--prefer-stable", experimental: true } steps: - name: "Checkout" From 3d854c111559a650d2c3301c318a8bb9fb9d5614 Mon Sep 17 00:00:00 2001 From: Romain MILLAN Date: Wed, 25 Nov 2026 09:25:58 +0100 Subject: [PATCH 3/3] fix: Raise twig/twig lower bound to 3.31.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e3b9d48..348c24a 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "symfony/console": "^7.4|^8.1", "symfony/framework-bundle": "^7.4|^8.1", "symfony/twig-bundle": "^7.4|^8.1", - "twig/twig": "^3.27" + "twig/twig": "^3.31.1" }, "require-dev": { "symfony/phpunit-bridge": "^7.4|^8.1",