Skip to content

Add Symfony 8 support - #277

Merged
XWB merged 6 commits into
FriendsOfSymfony:2.xfrom
beesofts:2.x
Dec 19, 2025
Merged

XWB merged 6 commits into
FriendsOfSymfony:2.xfrom
beesofts:2.x

Conversation

@beesofts

@beesofts beesofts commented Dec 5, 2025

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
License MIT

@Chris53897

Copy link
Copy Markdown
Contributor

This was a blocker for a long time. Now Version 6.2 is available to support Symfony 8

"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0 || ^6.0"",

Please change this versions as well.

        "symfony/console": "^5.4 || ^6.0 || ^7.0 || ^8.0",
        "symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0 || ^8.0",
        "symfony/yaml": "^5.4 || ^6.0 || ^7.0 || ^8.0"

@Chris53897 Chris53897 mentioned this pull request Dec 5, 2025
Comment thread composer.json Outdated
"friendsofphp/php-cs-fixer": "^3.41",
"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0",
"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0 || ^6.0",
"phpunit/phpunit": "^9.6",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add support for version 10 as well. Otherwise symfony/dependency-injection 8 is not installed.
"phpunit/phpunit": "^9.6 || ^10.0",

symfony/dependency-injection (v7.4.0)
https://packagist.org/packages/matthiasnoback/symfony-dependency-injection-test

@beesofts

beesofts commented Dec 6, 2025

Copy link
Copy Markdown
Contributor Author

simple-phpunit fails for some reason. would it be possible to migrate to phpunit ?

@Chris53897

Copy link
Copy Markdown
Contributor

I tried to find a way get it work. But could not find one yet.

Just changeing the test to run it with vendor/bin/phpunit makes the ci green.
https://github.com/Chris53897/FOSCKEditorBundle/actions/runs/19992315926

I think getting rid of symfony/phpunit-bridge for this bundle is fine, as it does probably not have a active future.
But i am not an maintainer.
@XWB WDYT?

@Chris53897

Chris53897 commented Dec 6, 2025 •

Copy link
Copy Markdown
Contributor

symfony/demo removed symfony/phpunit-bridge
https://github.com/symfony/demo/pull/1549/files

symfony/symfony#59253 (comment)

@vdeville

vdeville commented Dec 9, 2025

Copy link
Copy Markdown

Hello @Chris53897 do you work on this PR ? Thanks

@Chris53897

Copy link
Copy Markdown
Contributor

I am afraid there is nothing i can do here.
it would be great if @beesofts can change this line as he suggested.
https://github.com/FriendsOfSymfony/FOSCKEditorBundle/blob/2.x/.github/workflows/test.yaml#L41

After this a maintainer needs to have a look and merge/release it.

@beesofts

beesofts commented Dec 9, 2025

Copy link
Copy Markdown
Contributor Author

nice the test has fail while downloading an external file... can a maintainer run again the job ?

@vdeville

vdeville commented Dec 9, 2025

Copy link
Copy Markdown

Thanks @beesofts all test passed !

@Chris53897

Copy link
Copy Markdown
Contributor

One minor change could be to add .phpunit.cache to .gitignore or change the phpunit.xml.dist

@VincentLanglet

Copy link
Copy Markdown
Contributor

Hi @XWB do you have time to take a look at this PR ? :)

@XWB

XWB commented Dec 19, 2025

Copy link
Copy Markdown
Member

Are there BC breaks or can we merge it into the 2.x branch?

@VincentLanglet

Copy link
Copy Markdown
Contributor

Are there BC breaks or can we merge it into the 2.x branch?

src folder is not even modified ; so there is no BC break and can be merged on 2.x

@XWB

XWB commented Dec 19, 2025

Copy link
Copy Markdown
Member

Thanks, just wanted to be sure :)

@XWB
XWB merged commit e9ed2a4 into FriendsOfSymfony:2.x Dec 19, 2025
7 checks passed
@XWB

XWB commented Dec 19, 2025

Copy link
Copy Markdown
Member

Merged

@Chris53897

Copy link
Copy Markdown
Contributor

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants