News for hackers. Stuff that matters.
Re:PHP DateTimeImmutable::modify() by Sharlin on Friday July 04, 2014 @11:25AM (#7989130)
> 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.

Re:PHP DateTimeImmutable::modify() by riffraff on Friday July 04, 2014 @11:59AM (#7989265)
but then why keep a confusing name and documentation instead of just using something like `withModification` ?