zendframework / zend-form

Form component from Zend Framework
BSD 3-Clause "New" or "Revised" License
69 stars 87 forks source link

Compare against DateTimeInterface in DateTime::getValue #178

Closed gszy closed 6 years ago

gszy commented 7 years ago

When checking whether Element\DateTime’s value is an actual PHP DateTime, it’s more useful to check if it’s an instance of DateTimeInterface, since such approach allows to use either DateTime or DateTimeImmutable object as element value.

weierophinney commented 6 years ago

Thnaks, @gscscnd