You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #51365 [Clock] Add $modifier argument to the now() helper (nicolas-grekas)
This PR was merged into the 6.4 branch.
Discussion
----------
[Clock] Add $modifier argument to the now() helper
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
With this change, one can replace all `new \DateTimeImmutable($foo)` by `now($foo)`.
Commits
-------
1a616c1 [Clock] Add $modifier argument to now() helper
0 commit comments