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

Question: Twig version. #36

Open
Tapchou opened this issue Jun 3, 2020 · 1 comment
Open

Question: Twig version. #36

Tapchou opened this issue Jun 3, 2020 · 1 comment
Labels

Comments

@Tapchou
Copy link

Tapchou commented Jun 3, 2020

Can Twig be safely updated without breaking any features?

Some Filters were added in later versions, even in the 1.x branch.

@ocram ocram added the question label Jun 4, 2020
@ocram
Copy link
Contributor

ocram commented Jun 4, 2020

Good question, thank you!

Generally, you should be able to update any dependency via composer update without breaking anything. That’s because most version constraints in the default composer.json exclude new major versions (which usually include breaking changes).

But, of course, there’s always something that could go wrong. So please be prepared, and do some testing after any update.

We try to update the default versions here in the repositories for the framework to assist with updating, so that you know which updates are most definitely safe.

As for Twig, we have tested all versions through version 1.42.5. So that’s the version you should be able to safely update to. With anything newer (or with new major versions), you have to test this yourself and may very well encounter things that stop working.

Does that help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants