2 ms·
> The old datetime's method modifies the object in place[-1], if you replace the old with the new it's not going to work anymore. All the old datetime's method
by Sharlin 12y ago
> The old datetime's method modifies the object in place[-1], if you replace the old with the new it's not going to work anymore.
All the old datetime's methods modify the object in place, while none of DateTimeImmutable's methods do. It's not meant to be a drop-in replacement.
- riffraff 12y agobut then why keep a confusing name and documentation instead of just using something like `withModification` ?