Check for an instance of the DateTimeInterface
instead of DateTime
in DateTimeFormatter
#96
Labels
Bug
Something isn't working
Bug Report
Summary
Why are you checking for an instance of the
DateTime
and not aDateTimeInterface
?laminas-filter/src/DateTimeFormatter.php
Line 89 in 97e3ce0
Is there some secret meaning in this?
Current behavior
In my application, there may be a situation when I create a
DateTimeImmutable
and pass it in aDateTimeFormatter
,expected a formatted string od date/time in return, but get my object back
How to reproduce
The text was updated successfully, but these errors were encountered: