Skip to content

Commit acd8429

Browse files
committed
Allow Symfony 8
1 parent 45862f9 commit acd8429

File tree

6 files changed

+31
-16
lines changed

6 files changed

+31
-16
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
phpunit:
1111
name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }})
1212
runs-on: ubuntu-24.04
13+
continue-on-error: ${{ matrix.continue-on-error || false }}
1314
env:
1415
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
1516

@@ -22,7 +23,15 @@ jobs:
2223
- '8.5'
2324
symfony-version:
2425
- '6.4.*'
25-
- '7.2.*'
26+
- '7.3.*'
27+
- '7.4.*@dev'
28+
include:
29+
- php-version: '8.4'
30+
symfony-version: '8.0.*@dev'
31+
continue-on-error: true
32+
- php-version: '8.5'
33+
symfony-version: '8.0.*@dev'
34+
continue-on-error: true
2635

2736
steps:
2837
- name: Checkout code
@@ -35,14 +44,14 @@ jobs:
3544
with:
3645
coverage: pcov
3746
php-version: ${{ matrix.php-version }}
47+
tools: flex
3848

3949
- name: Install Imagemagick
4050
run: sudo apt-get update && sudo apt-get install -y imagemagick
4151

42-
- name: Install Symfony Flex
43-
run: |
44-
composer config --global --no-plugins allow-plugins.symfony/flex true
45-
composer global require --no-progress --no-scripts --no-plugins symfony/flex
52+
- name: Configure Composer minimum-stability for dev versions
53+
if: contains(matrix.symfony-version, 'dev')
54+
run: composer config minimum-stability dev
4655

4756
- name: Install Composer dependencies
4857
uses: ramsey/composer-install@v3

CHANGELOG-5.x.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-----
33

44
* Test against PHP 8.5
5+
* Allow Symfony 8
56

67
5.1.1
78
-----

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ See the [Documentation and examples](https://im-bundle.leapt.dev/)
2424
Versions & dependencies
2525
-----------------------
2626

27-
The current version (5.x) of the bundle works with Symfony 6.4 & Symfony 7.0+.
27+
The current version (5.x) of the bundle works with Symfony 6.4, 7.0+ & 8.0+.
2828
The project follows SemVer.
29+
Only the last major version is maintained.
2930

3031
You can check the [changelog](CHANGELOG-5.x.md) for version 5 and the [upgrade document](UPGRADE-5.x.md) when upgrading
3132
from 4.x bundle version.

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
"ext-curl": "*",
3030
"doctrine/orm": "^2.5 || ^3.0",
3131
"leapt/core-bundle": "^5.0",
32-
"symfony/css-selector": "^6.4 || ^7.0",
33-
"symfony/console": "^6.4 || ^7.0",
34-
"symfony/dom-crawler": "^6.4 || ^7.0",
35-
"symfony/filesystem": "^6.4 || ^7.0",
36-
"symfony/finder": "^6.4 || ^7.0",
37-
"symfony/form": "^6.4 || ^7.0",
38-
"symfony/framework-bundle": "^6.4 || ^7.0",
39-
"symfony/process": "^6.4 || ^7.0",
32+
"symfony/css-selector": "^6.4 || ^7.0 || ^8.0",
33+
"symfony/console": "^6.4 || ^7.0 || ^8.0",
34+
"symfony/dom-crawler": "^6.4 || ^7.0 || ^8.0",
35+
"symfony/filesystem": "^6.4 || ^7.0 || ^8.0",
36+
"symfony/finder": "^6.4 || ^7.0 || ^8.0",
37+
"symfony/form": "^6.4 || ^7.0 || ^8.0",
38+
"symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0",
39+
"symfony/process": "^6.4 || ^7.0 || ^8.0",
4040
"twig/twig": "^3.0"
4141
},
4242
"require-dev": {
4343
"mikey179/vfsstream": "^1.6.11",
4444
"phpstan/phpstan": "^2.1.22",
4545
"phpstan/phpstan-deprecation-rules": "^2.0.3",
4646
"phpunit/phpunit": "^11.5.35",
47-
"symfony/browser-kit": "^6.4 || ^7.0",
47+
"symfony/browser-kit": "^6.4 || ^7.0 || ^8.0",
4848
"symplify/easy-coding-standard": "^12.5.24"
4949
},
5050
"scripts": {

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
* You need to have the ImageMagick binaries available (convert & mogrify)
66
* You need to have a cache folder in your web dir, writeable by the webserver
7-
* Symfony 6.4/7.0+
7+
* Symfony 6.4/7.0+/8.0+
88
* PHP 8.2+
99

1010
## Install steps

tests/Listener/MogrifySubscriberTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ private function buildEntityManager(): EntityManagerInterface
5656
$config->setMetadataDriverImpl(new AttributeDriver([__DIR__ . '/Fixtures']));
5757
$config->setAutoGenerateProxyClasses(true);
5858

59+
if (\PHP_VERSION_ID >= 80400) {
60+
$config->enableNativeLazyObjects(true);
61+
}
62+
5963
$params = [
6064
'driver' => 'pdo_sqlite',
6165
'memory' => true,

0 commit comments

Comments
 (0)