Closed othercorey closed 9 months ago
Ohh Chronos itself is missing here it seems
Chrnis is already DateTimeImmutable
But it could be a BC break although its a weird conversation
But it still isnt the actual native object, so it does make sense to keep toNative() everywhere if someone really needs the native class type. Especially for BC reasons, though, this method for sure can only be deprecated now, not removed.
refs https://github.com/cakephp/chronos/pull/424
We want to keep BC with 3.0 as users have changed code to call
toNative()
. Users can decide which makes their code clearer or cleaner.