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

Fix deprecation for symfony/config 4.2+ #5360

Merged
merged 1 commit into from Dec 17, 2018
Merged

Fix deprecation for symfony/config 4.2+ #5360

merged 1 commit into from Dec 17, 2018

Conversation

franmomu
Copy link
Member

Subject

This is to fix deprecation for symfony/config 4.2+ as in sonata-project/SonataDoctrineORMAdminBundle#871

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

Changelog

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

@@ -29,8 +29,14 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('sonata_admin', 'array');
$treeBuilder = new TreeBuilder('sonata_admin');
Copy link
Member

Choose a reason for hiding this comment

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

What does the „array“ mean? No need to keep it somehow?

Copy link
Member Author

@franmomu franmomu Dec 16, 2018

Choose a reason for hiding this comment

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

It has been the default value of the TreeBuilder::root method and also of the new the constructor.

Copy link
Contributor

@kunicmarko20 kunicmarko20 left a comment

Choose a reason for hiding this comment

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

@franmomu is on 🔥

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