From 410d0b870ee08443c4ee4c3433af9d89baa4d034 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Mon, 22 Sep 2025 20:30:59 +0200 Subject: [PATCH 1/5] Add support for Symfony 8 --- .github/workflows/ci.yaml | 10 +++++++--- composer.json | 12 ++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8d868da..5e434a5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - + - name: Run the CS fixer run: php-cs-fixer fix @@ -35,7 +35,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.0', '8.1', '8.2', '8.3'] + php: ['8.0', '8.1', '8.2', '8.3', '8.4'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -47,6 +47,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Set composer stability + if: ${{ matrix.php == '8.4' }} + run: composer config minimum-stability ${{ matrix.composer-stability }} + - name: Install the dependencies run: composer install --no-interaction --no-suggest @@ -60,7 +64,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.0', '8.1', '8.2', '8.3'] + php: ['8.0', '8.1', '8.2', '8.3', '8.4'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/composer.json b/composer.json index 4e8ee46..090df9e 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,14 @@ ], "require": { "php": "^8.0", - "symfony/lock": "^6.0 || ^7.0", - "symfony/cache": "^6.0 || ^7.0", - "symfony/http-foundation": "^6.0 || ^7.0", - "symfony/http-kernel": "^6.0 || ^7.0", - "symfony/options-resolver": "^6.0 || ^7.0" + "symfony/lock": "^6.0 || ^7.0 || ^8.0", + "symfony/cache": "^6.0 || ^7.0 || ^8.0", + "symfony/http-foundation": "^6.0 || ^7.0 || ^8.0", + "symfony/http-kernel": "^6.0 || ^7.0 || ^8.0", + "symfony/options-resolver": "^6.0 || ^7.0 || ^8.0" }, "require-dev": { - "symfony/phpunit-bridge": "^6.0 || ^7.0" + "symfony/phpunit-bridge": "^6.0 || ^7.0 || ^8.0" }, "autoload": { "psr-4": { From 958ee682f45571c625c2d396b5c7b481bbaff00b Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Wed, 3 Dec 2025 10:20:56 +0100 Subject: [PATCH 2/5] Update composer.json Co-authored-by: David Buchmann --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 090df9e..0bdb512 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "symfony/options-resolver": "^6.0 || ^7.0 || ^8.0" }, "require-dev": { - "symfony/phpunit-bridge": "^6.0 || ^7.0 || ^8.0" + "symfony/phpunit-bridge": "^7.4 || ^8.0" }, "autoload": { "psr-4": { From eab7622b909aa8d511859c144fafb17ef8bcb200 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Wed, 3 Dec 2025 11:06:56 +0100 Subject: [PATCH 3/5] Update PHP versions in CI min requirement to 8.1 add 8.5 --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5e434a5..f7e1521 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,7 +35,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.0', '8.1', '8.2', '8.3', '8.4'] + php: ['8.1', '8.2', '8.3', '8.4', '8.5'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -48,7 +48,7 @@ jobs: uses: actions/checkout@v2 - name: Set composer stability - if: ${{ matrix.php == '8.4' }} + if: ${{ matrix.php == '8.5' }} run: composer config minimum-stability ${{ matrix.composer-stability }} - name: Install the dependencies @@ -64,7 +64,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.0', '8.1', '8.2', '8.3', '8.4'] + php: ['8.1', '8.2', '8.3', '8.4', '8.5'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 From e4ba01e55140c1dad15f0effca6572400f2f0afe Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Wed, 3 Dec 2025 11:07:14 +0100 Subject: [PATCH 4/5] Update PHP requirement to atleast version 8.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0bdb512..f82aed9 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "^8.0", + "php": "^8.1", "symfony/lock": "^6.0 || ^7.0 || ^8.0", "symfony/cache": "^6.0 || ^7.0 || ^8.0", "symfony/http-foundation": "^6.0 || ^7.0 || ^8.0", From 939f6611282534967963c5a02960305889403f00 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Wed, 3 Dec 2025 11:24:49 +0100 Subject: [PATCH 5/5] Test against dev dependencies on 8.6 CI --- .github/workflows/ci.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f7e1521..8d69108 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,7 +35,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1', '8.2', '8.3', '8.4', '8.5'] + php: ['8.1', '8.2', '8.3', '8.4', '8.5', '8.6'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -48,8 +48,8 @@ jobs: uses: actions/checkout@v2 - name: Set composer stability - if: ${{ matrix.php == '8.5' }} - run: composer config minimum-stability ${{ matrix.composer-stability }} + if: ${{ matrix.php == '8.6' }} + run: composer config minimum-stability dev - name: Install the dependencies run: composer install --no-interaction --no-suggest @@ -64,7 +64,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1', '8.2', '8.3', '8.4', '8.5'] + php: ['8.1', '8.2', '8.3', '8.4', '8.5', '8.6'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2