Skip to content

[Finder] Fix using == as default operator in DateComparator #59318

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

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

MatTheCat
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #59314
License MIT

$matches can only contain null when passing the PREG_UNMATCHED_AS_NULL flag. Since the culprit code line predates PHP 7.2 I made it check for an empty string rather than null, as @GlucNAc suggested.

@fabpot
Copy link
Member

fabpot commented Dec 30, 2024

Thank you @MatTheCat.

@fabpot fabpot merged commit 1236323 into symfony:6.4 Dec 30, 2024
5 of 11 checks passed
@MatTheCat MatTheCat deleted the ticket_59314 branch December 30, 2024 18:52
This was referenced Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants