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

Remove TreeBuilder deprecation #106

Merged
merged 3 commits into from Mar 16, 2022

Conversation

atomiix
Copy link
Contributor

@atomiix atomiix commented Mar 14, 2022

Questions Answers
Description? Since Symfony 4, TreeBuilder's constructor should be called with the root node name as first argument instead of calling the root() method later on. To keep backward compatibility, this PR checks that the TreeBuilder class has a method called getRootNode which appeared when the root() method was deprecated, to know how to call TreeBuilder's constructor. This is inspired from #95 (comment) but without using reflection.
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket?
How to test? CI should be green
Possible impacts?

@matks
Copy link
Contributor

matks commented Mar 14, 2022

CI is read because code coverage decreased by 0.3%

Copy link
Contributor

@Progi1984 Progi1984 left a comment

Choose a reason for hiding this comment

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

@atomiix Could you add an unit test ?

Copy link
Contributor

@Progi1984 Progi1984 left a comment

Choose a reason for hiding this comment

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

Two feedbacks and it's an approval

Co-authored-by: Progi1984 <progi1984@gmail.com>
@Progi1984 Progi1984 merged commit d7ad810 into PrestaShop:master Mar 16, 2022
@Progi1984
Copy link
Contributor

Thanks @atomiix

@Progi1984 Progi1984 added this to the 4.1.0 milestone Mar 16, 2022
@atomiix atomiix deleted the treebuilder-deprecation branch April 14, 2022 08:44
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

5 participants