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+ #853

Merged
merged 1 commit into from Oct 19, 2018

Conversation

stof
Copy link
Member

@stof stof commented Sep 25, 2018

Closes #851

@@ -33,8 +33,14 @@ public function __construct($debug)
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('doctrine');
$treeBuilder = new TreeBuilder('doctrine');
Copy link
Contributor

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 \.

Copy link
Member Author

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

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.

Copy link
Contributor

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

@kimhemsoe kimhemsoe closed this Oct 19, 2018
@kimhemsoe kimhemsoe reopened this Oct 19, 2018
@kimhemsoe kimhemsoe merged commit 3ed47e7 into doctrine:master Oct 19, 2018
@kimhemsoe
Copy link
Member

Thanks @stof and sorry for the spam :)

@stof stof deleted the fix_deprecation branch October 25, 2018 10:50
@kimhemsoe kimhemsoe added this to the 1.9.2 milestone Oct 30, 2018
mhujer added a commit to mhujer/SensioFrameworkExtraBundle that referenced this pull request Nov 30, 2018
mhujer added a commit to mhujer/SensioFrameworkExtraBundle that referenced this pull request Nov 30, 2018
mhujer added a commit to mhujer/JavaScriptErrorHandlerBundle that referenced this pull request Nov 30, 2018
fabpot added a commit to sensiolabs/SensioFrameworkExtraBundle that referenced this pull request Nov 30, 2018
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
weaverryan added a commit to symfony/maker-bundle that referenced this pull request Dec 13, 2018
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+
Doqnach added a commit to Doqnach/woohoolabs-yin-bundle that referenced this pull request Dec 17, 2019
qpautrat pushed a commit to qpautrat/woohoolabs-yin-bundle that referenced this pull request Dec 17, 2019
* 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.
artem0723 pushed a commit to artem0723/React-Clothing-Shop that referenced this pull request Aug 27, 2021
artem0723 added a commit to artem0723/React-Clothing-Shop that referenced this pull request Aug 27, 2021
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
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

4 participants