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

Deprecate null template for BlockContext #1012

Merged
merged 3 commits into from
Jan 31, 2022

Conversation

VincentLanglet
Copy link
Member

@VincentLanglet VincentLanglet commented Jan 30, 2022

Subject

I am targeting this branch, because BC.

Closes #855.

Changelog

### Deprecated
- Not passing a string value for the template setting of a BlockContext

jordisala1991
jordisala1991 previously approved these changes Jan 30, 2022
@@ -13,6 +13,7 @@

namespace Sonata\BlockBundle\Model;


Copy link
Member

Choose a reason for hiding this comment

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

We are not using uses for this. Prefer prefix with \

jordisala1991
jordisala1991 previously approved these changes Jan 30, 2022
@VincentLanglet
Copy link
Member Author

I added a NEXT_MAJOR comment for the toString method, and found some missing typehint in final class, so I added them. @jordisala1991

@VincentLanglet VincentLanglet requested a review from a team January 30, 2022 21:38
@VincentLanglet VincentLanglet requested a review from a team January 30, 2022 21:59
@VincentLanglet VincentLanglet merged commit f0bab00 into sonata-project:4.x Jan 31, 2022
@VincentLanglet VincentLanglet deleted the template branch January 31, 2022 09:10
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.

Return only string in BlockContextInterface::getTemplate
3 participants