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

throwing syntax error when the matches regexp is not valid #3687

Merged
merged 2 commits into from Dec 27, 2022

Conversation

WebMamba
Copy link
Contributor

During the symfony live, Fabien talk about a PR he did on the Expression Language component (https://github.com/symfony/symfony/pull/45875/files). The goal was to throw a more readable error when using the matchs operator. This think need to be fix in twig to. So as promises, here is my PR !
This is my first contrib to symfony so any advice is welcome ! 😁

@WebMamba WebMamba changed the title throwing syntaxt error when the matches regexp is not valid throwing syntax error when the matches regexp is not valid Apr 18, 2022
@fabpot fabpot force-pushed the twig-matches-fix-throwing-error branch from 88befbd to e3422e5 Compare December 27, 2022 11:30
@fabpot fabpot force-pushed the twig-matches-fix-throwing-error branch from e3422e5 to a82e94d Compare December 27, 2022 11:32
@fabpot
Copy link
Contributor

fabpot commented Dec 27, 2022

Thank you @WebMamba.

@fabpot fabpot merged commit 4a7c8b3 into twigphp:3.x Dec 27, 2022
la5942 added a commit to la5942/Twig that referenced this pull request Feb 7, 2023
… subject to result in a non-match.

Resolves BC break introduced in PR twigphp#3687

As per pattern in twigphp#3617
fabpot added a commit that referenced this pull request Feb 8, 2023
…942)

This PR was merged into the 3.x branch.

Discussion
----------

Restores the leniency of the `matches` twig comparison

Restores the leniency of the `matches` twig comparison, allowing null subject to result in a non-match.

Resolves BC break introduced in PR #3687 ref in #3801 (comment)

As per pattern in #3617

Commits
-------

f136668 Restores the leniency of the `matches` twig comparison, allowing null subject to result in a non-match.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants