Chronos 3.0.0-beta1
Pre-release
Pre-release
Chronos 3.0 will be a major release that contains breaking changes. This beta release provides a preview release of what will be coming in the future and unblocks CakePHP 5.0 beta releases.
Summary of Breaking changes
- Removed Mutable datetime and date classes.
ChronosDate
no longer implementsDateTimeInterface
and doesn't share types withChronos
either. This resolves a long standing interface compatibility issue whereDate
andDateTime
objects appeared to be more type compatible than they should be.Chronos
no longer implementsDateTimeInterface
or extendsDateTimeImmutable
. InsteadChronos
is a wrapper around PHP's datetime, and continues to offer a similar interface to the PHP objects.- Removed Carbon compatibility shims. While chronos started out as a fork of Carbon due to lack of maintainship, the Carbon project has new maintainers and we no longer need to encroach on that namespace.
Upgrading
In the future 2.4 will be released with deprecations to help with upgrading to chronos 3.x