From e21e6c9a3da0bfd65c804db937f52f5c1e7a94bc Mon Sep 17 00:00:00 2001 From: jmsche Date: Sun, 31 Aug 2025 15:00:20 +0200 Subject: [PATCH 1/2] Allow Symfony 8 --- .github/workflows/continuous-integration.yaml | 15 ++++++++---- CHANGELOG-5.x.md | 1 + README.md | 3 ++- composer.json | 24 +++++++++---------- docs/index.md | 2 +- 5 files changed, 26 insertions(+), 19 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 053485f..57aeda1 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -23,7 +23,12 @@ jobs: symfony-version: - '6.4.*' - '7.3.*' - - '7.4.x-dev' + - '7.4.*@dev' + include: + - php-version: '8.4' + symfony-version: '8.0.*@dev' + - php-version: '8.5' + symfony-version: '8.0.*@dev' steps: - name: Checkout code @@ -37,11 +42,11 @@ jobs: coverage: pcov php-version: ${{ matrix.php-version }} extensions: pdo_sqlite + tools: flex - - name: Install Symfony Flex - run: | - composer config --global --no-plugins allow-plugins.symfony/flex true - composer global require --no-progress --no-scripts --no-plugins symfony/flex + - name: Configure Composer minimum-stability for dev versions + if: contains(matrix.symfony-version, 'dev') + run: composer config minimum-stability dev - name: Install Composer dependencies uses: ramsey/composer-install@v3 diff --git a/CHANGELOG-5.x.md b/CHANGELOG-5.x.md index 93f05e4..c3309b6 100644 --- a/CHANGELOG-5.x.md +++ b/CHANGELOG-5.x.md @@ -2,6 +2,7 @@ ----- * Test against PHP 8.5 +* Allow Symfony 8 5.5.1 ----- diff --git a/README.md b/README.md index a525cd5..ee26c51 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,9 @@ You can check docs there: https://core-bundle.leapt.dev/ Versions & dependencies ----------------------- -The current version (5.x) of the bundle works with Symfony 6.4 & Symfony 7.0+. +The current version (5.x) of the bundle works with Symfony 6.4, 7.0+ & 8.0+. The project follows SemVer. +Only the last major version is maintained. You can check the [changelog](CHANGELOG-5.x.md) for version 5 and the [upgrade document](UPGRADE-5.x.md) when upgrading from 4.x bundle version. diff --git a/composer.json b/composer.json index b115ea2..b326dc6 100644 --- a/composer.json +++ b/composer.json @@ -23,21 +23,21 @@ "homepage": "https://www.snowcap.be" } ], - "minimum-stability": "beta", + "minimum-stability": "stable", "require": { "php": "^8.2", "doctrine/orm": "^2.10 || ^3.0", "symfony/deprecation-contracts": "^3.5", - "symfony/event-dispatcher": "^6.4 || ^7.0", - "symfony/form": "^6.4 || ^7.0", - "symfony/framework-bundle": "^6.4 || ^7.0", - "symfony/http-foundation": "^6.4 || ^7.0", - "symfony/http-kernel": "^6.4 || ^7.0", - "symfony/mime": "^6.4 || ^7.0", - "symfony/routing": "^6.4 || ^7.0", - "symfony/translation": "^6.4 || ^7.0", - "symfony/twig-bundle": "^6.4 || ^7.0", - "symfony/validator": "^6.4 || ^7.0", + "symfony/event-dispatcher": "^6.4 || ^7.0 || ^8.0", + "symfony/form": "^6.4 || ^7.0 || ^8.0", + "symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0", + "symfony/http-foundation": "^6.4 || ^7.0 || ^8.0", + "symfony/http-kernel": "^6.4 || ^7.0 || ^8.0", + "symfony/mime": "^6.4 || ^7.0 || ^8.0", + "symfony/routing": "^6.4 || ^7.0 || ^8.0", + "symfony/translation": "^6.4 || ^7.0 || ^8.0", + "symfony/twig-bundle": "^6.4 || ^7.0 || ^8.0", + "symfony/validator": "^6.4 || ^7.0 || ^8.0", "twig/twig": "^3.0" }, "require-dev": { @@ -51,7 +51,7 @@ "phpstan/phpstan": "^2.1.22", "phpstan/phpstan-deprecation-rules": "^2.0.3", "phpunit/phpunit": "^11.5.35", - "symfony/browser-kit": "^6.4 || ^7.0", + "symfony/browser-kit": "^6.4 || ^7.0 || ^8.0", "symplify/easy-coding-standard": "^12.5.24" }, "config": { diff --git a/docs/index.md b/docs/index.md index 6773694..66e5d6a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,7 +31,7 @@ If you find a bug or want to add a functionality, This bundle requires PHP 8.2+. -As the bundle is compatible with Symfony 6.4/7.0+ and Symfony Flex, the only thing you have to do +As the bundle is compatible with Symfony 6.4/7.0+/8.0+ and Symfony Flex, the only thing you have to do is requiring the package with composer: ```bash From 1e6cce324821e6ccd20f4d466085a16f5d7fe868 Mon Sep 17 00:00:00 2001 From: jmsche Date: Sun, 31 Aug 2025 15:14:31 +0200 Subject: [PATCH 2/2] Allow Symfony 8 workflow to fail for now --- .github/workflows/continuous-integration.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 57aeda1..bb959ee 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -10,6 +10,7 @@ jobs: phpunit: name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }}) runs-on: ubuntu-24.04 + continue-on-error: ${{ matrix.continue-on-error || false }} env: SYMFONY_REQUIRE: ${{ matrix.symfony-version }} @@ -27,8 +28,10 @@ jobs: include: - php-version: '8.4' symfony-version: '8.0.*@dev' + continue-on-error: true - php-version: '8.5' symfony-version: '8.0.*@dev' + continue-on-error: true steps: - name: Checkout code