diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index c71039d..c5822a4 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 }} @@ -22,7 +23,15 @@ jobs: - '8.5' symfony-version: - '6.4.*' - - '7.2.*' + - '7.3.*' + - '7.4.*@dev' + 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 @@ -35,14 +44,14 @@ jobs: with: coverage: pcov php-version: ${{ matrix.php-version }} + tools: flex - name: Install Imagemagick run: sudo apt-get update && sudo apt-get install -y imagemagick - - 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 831d98c..b2ef51f 100644 --- a/CHANGELOG-5.x.md +++ b/CHANGELOG-5.x.md @@ -2,6 +2,7 @@ ----- * Test against PHP 8.5 +* Allow Symfony 8 5.1.1 ----- diff --git a/README.md b/README.md index a44b20e..8cad50b 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,9 @@ See the [Documentation and examples](https://im-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 de6a478..6a7a440 100644 --- a/composer.json +++ b/composer.json @@ -29,14 +29,14 @@ "ext-curl": "*", "doctrine/orm": "^2.5 || ^3.0", "leapt/core-bundle": "^5.0", - "symfony/css-selector": "^6.4 || ^7.0", - "symfony/console": "^6.4 || ^7.0", - "symfony/dom-crawler": "^6.4 || ^7.0", - "symfony/filesystem": "^6.4 || ^7.0", - "symfony/finder": "^6.4 || ^7.0", - "symfony/form": "^6.4 || ^7.0", - "symfony/framework-bundle": "^6.4 || ^7.0", - "symfony/process": "^6.4 || ^7.0", + "symfony/css-selector": "^6.4 || ^7.0 || ^8.0", + "symfony/console": "^6.4 || ^7.0 || ^8.0", + "symfony/dom-crawler": "^6.4 || ^7.0 || ^8.0", + "symfony/filesystem": "^6.4 || ^7.0 || ^8.0", + "symfony/finder": "^6.4 || ^7.0 || ^8.0", + "symfony/form": "^6.4 || ^7.0 || ^8.0", + "symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0", + "symfony/process": "^6.4 || ^7.0 || ^8.0", "twig/twig": "^3.0" }, "require-dev": { @@ -44,7 +44,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" }, "scripts": { diff --git a/docs/installation.md b/docs/installation.md index a6a8281..0764a55 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -4,7 +4,7 @@ * You need to have the ImageMagick binaries available (convert & mogrify) * You need to have a cache folder in your web dir, writeable by the webserver -* Symfony 6.4/7.0+ +* Symfony 6.4/7.0+/8.0+ * PHP 8.2+ ## Install steps diff --git a/tests/Listener/MogrifySubscriberTest.php b/tests/Listener/MogrifySubscriberTest.php index 36fb6c6..05021f8 100644 --- a/tests/Listener/MogrifySubscriberTest.php +++ b/tests/Listener/MogrifySubscriberTest.php @@ -56,6 +56,10 @@ private function buildEntityManager(): EntityManagerInterface $config->setMetadataDriverImpl(new AttributeDriver([__DIR__ . '/Fixtures'])); $config->setAutoGenerateProxyClasses(true); + if (\PHP_VERSION_ID >= 80400) { + $config->enableNativeLazyObjects(true); + } + $params = [ 'driver' => 'pdo_sqlite', 'memory' => true,