Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for DateTimeImmutable in buildPropertyBag #99

Merged
merged 2 commits into from
Jun 5, 2017
Merged

Conversation

navarr
Copy link
Contributor

@navarr navarr commented Jun 5, 2017

If dtEnd were to be a DateTimeImmutable instead of a DateTime, the add method would have no effect on the outcome.

Here, we update the stored dtEnd with the result of the add method. For a DateTime object, this will be the same object - for a DateTimeImmutable object, this will be a new DateTimeImmutable one day in the future.

If `dtEnd` were to be a DateTimeImmutable instead of a DateTime, the add method would have no effect on the outcome.

Here, we update the stored dtEnd with the result of the add method.  For a DateTime object, this will be the same object - for a DateTimeImmutable object, this will be a new DateTimeImmutable one day in the future.
@markuspoerschke
Copy link
Owner

I tried to update your branch but for some reasons the Pull Request did not update. Therefore I will push to master directly. I added a test and the changes explained above.

@markuspoerschke markuspoerschke merged commit cecf7d0 into markuspoerschke:master Jun 5, 2017
@markuspoerschke
Copy link
Owner

Ok. Something went wrong either with my computer or with GitHub. I can swear my commit was missing. xD

Merged to master. @navarr Thanks for your Pull Request! 👍

@markuspoerschke
Copy link
Owner

Available in Version 0.12.1 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants