We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2eb4f45 + 32d1074 commit 6616ed4Copy full SHA for 6616ed4
1 file changed
docs/en/appendices/5-4-migration-guide.md
@@ -16,6 +16,17 @@ bin/cake upgrade rector --rules cakephp54 <path/to/app/src>
16
17
## Behavior Changes
18
19
+### 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
### ORM
31
32
The default eager loading strategy for `HasMany` and `BelongsToMany` associations
0 commit comments