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

DateTimeFormatterStrategy could extract DateTimeImmutable aswell #70

Closed
wants to merge 3 commits into from
Closed

DateTimeFormatterStrategy could extract DateTimeImmutable aswell #70

wants to merge 3 commits into from

Conversation

boesing
Copy link
Member

@boesing boesing commented Feb 6, 2018

To ensure we can extract any DateTimeInterface related object (and therefore future objects), I changed the check to DateTimeInterface instead of DateTime.

Now we can also extract DateTimeImmutable objects.

Im not quite sure if we want to mix input and output of StrategyInterface::extract and StrategyInterface::hydrate.

Another way would be to provide a DateTimeImmutableFormatterStrategy.
I'm open for better ideas.

weierophinney added a commit that referenced this pull request Apr 30, 2018
DateTimeFormatterStrategy could extract DateTimeImmutable aswell
weierophinney added a commit that referenced this pull request Apr 30, 2018
weierophinney added a commit that referenced this pull request Apr 30, 2018
@weierophinney
Copy link
Member

Thanks, @boesing; merged to develop for release with 2.4.0.

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