8000
DateComparator : operator does not fall back to its default value #59314
Labels
Bug
DX
DX = Developer eXperience (anything that improves the experience of using Symfony)
Finder
Status: Needs Review
Symfony version(s) affected
6.4.0
Description
This "bug" is present since version
2.1
, so not sure if it's really a bug, but I think something must be done regarding at least the DX of the exception message thrown by the use case below.How to reproduce
Possible Solution
In
Symfony\Component\Finder\Comparator\DateComparator
constructor, we could replaceby
as in this case
And maybe we could improve the
Symfony\Component\Finder\Comparator\Comparator
constructor signature with this anotation (to help phpstan raising error):Additional Context
No response
The text was updated successfully, but these errors were encountered: