Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Compare against DateTimeInterface in DateTime::getValue #178

Closed
wants to merge 1 commit into from
Closed

Compare against DateTimeInterface in DateTime::getValue #178

wants to merge 1 commit into from

Conversation

gszy
Copy link
Contributor

@gszy gszy commented Sep 11, 2017

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.

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 added a commit that referenced this pull request Dec 6, 2017
…e-element

Compare against DateTimeInterface in DateTime::getValue
weierophinney added a commit that referenced this pull request Dec 6, 2017
weierophinney added a commit that referenced this pull request Dec 6, 2017
@weierophinney
Copy link
Member

Thnaks, @gscscnd

@gszy gszy deleted the use-datetimeinterface-in-datetime-element branch December 14, 2017 20:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants