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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation for symfony/config 4.2+ #871

Merged
merged 1 commit into from Dec 17, 2018
Merged

Fix deprecation for symfony/config 4.2+ #871

merged 1 commit into from Dec 17, 2018

Conversation

franmomu
Copy link
Member

@franmomu franmomu commented Dec 16, 2018

Subject

This is to fix deprecation for symfony/config 4.2+

I am targeting this branch, because is the one with this warning.

Changelog

### Fixed
Fix deprecation for symfony/config 4.2+

I added the ConfigurationTest class, but I wasn't sure what to test 馃槵so I used https://github.com/sonata-project/SonataAdminBundle/blob/3.x/tests/DependencyInjection/ConfigurationTest.php as an example.

The fix is like doctrine/DoctrineBundle#853

@greg0ire
Copy link
Contributor

Can you tell us what deprecation there is, and how your changes fixes it?

OskarStark
OskarStark previously approved these changes Dec 16, 2018
@OskarStark
Copy link
Member

Using TreeBuilder without root node as constructor argument is deprecated since 4.2 @greg0ire

@franmomu
Copy link
Member Author

Sorry I didn't include it: https://symfony.com/blog/new-in-symfony-4-2-important-deprecations#deprecated-tree-builders-without-root-nodes

@franmomu
Copy link
Member Author

If that's ok I can make other PR to other bundles of Sonata

@greg0ire
Copy link
Contributor

That would be awesome!

@franmomu
Copy link
Member Author

I have to leave now, I'll continue later!

@OskarStark OskarStark merged commit 6128344 into sonata-project:3.x Dec 17, 2018
@franmomu franmomu deleted the fix_deprecation branch December 17, 2018 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants