Commit 7a0d207
committed
minor #50297 Remove unnecessary usages of DateTime (nicolas-grekas)
This PR was merged into the 6.4 branch.
Discussion
----------
Remove unnecessary usages of DateTime
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | Part of #47580
| License | MIT
| Doc PR | -
Together with #50290, this PR removes `DateTime` everywhere possible.
What remains is:
- test cases that test both DateTime and DateTimeImmutable - legit to keep
- date/time form-types and transformers in the Form component - we'd need a separate effort for them, related to #50295
- `PersistentTokenInterface::getLastUsed(): \DateTime` - separate effort also
Commits
-------
8b08294b63 Remove unnecessary usages of DateTime1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| |||
0 commit comments