We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 27cfdc9 + 3a11e50 commit 32d1074Copy full SHA for 32d1074
1 file changed
docs/en/appendices/5-4-migration-guide.md
@@ -16,7 +16,16 @@ bin/cake upgrade rector --rules cakephp54 <path/to/app/src>
16
17
## Behavior Changes
18
19
-- WIP
+### I18n
20
+
21
+``Number::parseFloat()`` now returns ``null`` instead of ``0.0`` when parsing
22
+fails. Previously, when ``NumberFormatter::parse()`` failed it returned ``false``,
23
+which was cast to ``0.0``. This silently converted invalid input like ``"abc"``
24
+to ``0.0``, making it impossible to distinguish from valid ``"0"`` input.
25
26
+This also affects ``FloatType`` and ``DecimalType`` database types which use
27
+``Number::parseFloat()`` internally. Invalid locale-formatted form input will
28
+now result in ``null`` entity values instead of ``0``.
29
30
## Deprecations
31
0 commit comments