Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/en/appendices/5-4-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ bin/cake upgrade rector --rules cakephp54 <path/to/app/src>

## Behavior Changes

- WIP
### I18n

``Number::parseFloat()`` now returns ``null`` instead of ``0.0`` when parsing
fails. Previously, when ``NumberFormatter::parse()`` failed it returned ``false``,
which was cast to ``0.0``. This silently converted invalid input like ``"abc"``
to ``0.0``, making it impossible to distinguish from valid ``"0"`` input.

This also affects ``FloatType`` and ``DecimalType`` database types which use
``Number::parseFloat()`` internally. Invalid locale-formatted form input will
now result in ``null`` entity values instead of ``0``.

## Deprecations

Expand Down
Loading