zend-hydrator
zend-hydrator copied to clipboard
DateTimeImmutableFormatterStrategy
It is not possible hydrate DateTimeImmutable dates. I was thinking about implementation and I created gist.
Your opinions about wrapper solution?
I think this could be very useful, as it ensures the object passed to the hydrator can be re-used over and over for that purpose.
Feel free to submit a pull request - make sure it includes unit tests and documentation. We can either include it in 3.0 if not yet released, or in 3.1.0 (which we can cut anytime following).
Let's target 3.1.0
for this: 3.0.0 is ready for release, since the PR queue is empty.
This repository has been closed and moved to laminas/laminas-hydrator; a new issue has been opened at https://github.com/laminas/laminas-hydrator/issues/3.