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

Add dateTimeImmutable functions #1808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcfedr
Copy link

@mcfedr mcfedr commented Oct 9, 2019

Basically for every dateTime function there is a dateTimeImmutable equivalent.

  • Also everywhere an argument accepted DateTime it now accepts DateTimeInterface so that either DateTime or DateTimeImmutable work. (in the code I check $x instanceof \DateTime || $x instanceof \DateTimeInterface so its backwards compatible with 5.3)

@pimjansen
Copy link
Contributor

Please see #1851

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

Successfully merging this pull request may close these issues.

2 participants