Skip to content

Commit 16e8708

Browse files
authored
Merge pull request #7894 from LordSimal/5.x
clarify Date/Time object doesn't extend DateTimeInterface anymore
2 parents bedba05 + 65feded commit 16e8708

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

en/appendices/5-0-migration-guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ I18n
182182

183183
- ``FrozenDate`` was renamed to `Date` and ``FrozenTime`` was renamed to `DateTime`.
184184
- ``Time`` now extends ``Cake\Chronos\ChronosTime`` and is therefore immutable.
185+
- ``Date`` and ``Time`` objects do not extend ``DateTimeInterface`` anymore - therefore you can't compare them with ``DateTime`` objects.
186+
See the `cakephp/chronos release documentation <https://github.com/cakephp/chronos/releases/tag/3.0.2>`__ for more information.
185187
- ``Date::parseDateTime()`` was removed.
186188
- ``Date::parseTime()`` was removed.
187189
- ``Date::setToStringFormat()`` and ``Date::setJsonEncodeFormat()`` no longer accept an array.

0 commit comments

Comments
 (0)