-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Ignore exceptions from undefined handlers when using the guard tag #4511
Conversation
1e05a3c
to
7a473c6
Compare
7a473c6
to
b53c639
Compare
Thanks for merging this and for releasing it as part of Twig 3.18.0. Sadly, this change didn't fix the issue for me. See the failing tests: https://github.com/EasyCorp/EasyAdminBundle/actions/runs/12550268707 |
The reason for the failure Javier observes (and also the reason for #4528 (comment)) is that the following |
Maybe we should reopen this issue to not forget about it. Thanks. |
I found the root cause of the issue. Line 799 in 6513bc4
I will try to do a PR with the missing part. @javiereguiluz we cannot reopen because this is not an issue. It is the merged PR implementing the change. |
…er in guard (stof) This PR was merged into the 3.x branch. Discussion ---------- Fix support for ignoring syntax erros in an undefined handler in guard This fixes the issue discussed in #4511 (comment) so that ignoring SyntaxError from undefined handlers wanting to provide a custom message actually works in the `{% guard %}` tag. This adds an integration test covering that behavior to ensure it works. Commits ------- 3794efe Fix support for ignoring syntax erros in an undefined handler in guard
Fixes #4505