Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Symfony 7 #50

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Add support for Symfony 7 #50

merged 1 commit into from
Dec 14, 2023

Conversation

stof
Copy link
Contributor

@stof stof commented Dec 14, 2023

This bumps the min PHP version to 7.2 because Symfony 7 requires adding a return type and this requires support for variance rules to stay compatible with older Symfony versions, which are available only in PHP 7.2+.

This bumps the min PHP version to 7.2 because Symfony 7 requires adding
a return type and this requires support for variance rules to stay
compatible with older Symfony versions, which are available only in PHP
7.2+.
if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cleaned this because the min version in the composer.json is symfony/config 4.4

@Seldaek Seldaek merged commit 41b585f into nelmio:master Dec 14, 2023
@Seldaek
Copy link
Member

Seldaek commented Dec 14, 2023

Thanks

@stof stof deleted the symfony_7 branch December 15, 2023 09:49
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.

None yet

2 participants