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+ #853
Conversation
3665568
to
03a9915
Compare
03a9915
to
e711bed
Compare
@@ -33,8 +33,14 @@ public function __construct($debug) | |||
*/ | |||
public function getConfigTreeBuilder() | |||
{ | |||
$treeBuilder = new TreeBuilder(); | |||
$rootNode = $treeBuilder->root('doctrine'); | |||
$treeBuilder = new TreeBuilder('doctrine'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use use function
instead of \
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not possible: "php": "^5.5.9|^7.0",
in composer.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, put the "new" statement in the "if" (with/without parms).
There is other "new TreeBuilder()" in the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stof Using \fn
directly violates our coding standard so it's invalid. If, due to PHP 5.5 compatibily, use function
cannot be used, the function should be kept in fallback mode.
This breaks build: https://travis-ci.org/doctrine/DoctrineBundle/jobs/443601176#L649
Thanks @stof and sorry for the spam :) |
Fixed the same way as in doctrine/DoctrineBundle#853
Fixed the same way as in doctrine/DoctrineBundle#853
Fixed the same way as in doctrine/DoctrineBundle#853
This PR was merged into the 5.2.x-dev branch. Discussion ---------- Fix deprecation for symfony/config 4.2 Fixed the same way as in doctrine/DoctrineBundle#853 Closes #593 Commits ------- 7db9568 Fix deprecation for symfony/config 4.2
This PR was merged into the 1.0-dev branch. Discussion ---------- Fix deprecation for symfony/config 4.2+ Fix deprecation for symfony/config 4.2 Fixed the same way as in doctrine/DoctrineBundle#853 Commits ------- 560d03c Fix deprecation for symfony/config 4.2+
* Fixed symfony 4.2 deprecation The "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" method called for the "qp_woohoolabs_yin" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead * [patch-1] Use BC layer for deprecation in symfony/config see symfony/maker-bundle#324 and doctrine/DoctrineBundle#853 Remove the BC layer when bump to next major version.
Fixed the same way as in doctrine/DoctrineBundle#853
This PR was merged into the 5.2.x-dev branch. Discussion ---------- Fix deprecation for symfony/config 4.2 Fixed the same way as in doctrine/DoctrineBundle#853 Closes #593 Commits ------- 7db9568 Fix deprecation for symfony/config 4.2
Closes #851