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

Restores the leniency of the matches twig comparison #3809

Merged
merged 1 commit into from Feb 8, 2023

Conversation

la5942
Copy link
Contributor

@la5942 la5942 commented Feb 7, 2023

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

… subject to result in a non-match.

Resolves BC break introduced in PR twigphp#3687

As per pattern in twigphp#3617
@la5942
Copy link
Contributor Author

la5942 commented Feb 7, 2023

This does raise the question of whether tests should be introduced to catch any other null problems like this for PHP 8.1 and above

@fabpot
Copy link
Contributor

fabpot commented Feb 8, 2023

Thank you @la5942.

@fabpot fabpot merged commit 10a7bc1 into twigphp:3.x Feb 8, 2023
@la5942 la5942 deleted the 8.1-allow-null-twig-matches branch February 8, 2023 10:20
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