Skip to content

Commit 20ad562

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: [Mailer][MailJet] Fix forbidden headers case-sensitive comparison do not cast too big floats to int
2 parents 7b3eee0 + 46c4e96 commit 20ad562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected function getNumberFormatter(): \NumberFormatter
173173
*/
174174
protected function castParsedValue(int|float $value): int|float
175175
{
176-
if (\is_int($value) && $value === (int) $float = (float) $value) {
176+
if (\is_int($value) && (($float = (float) $value) < \PHP_INT_MAX) && $value === (int) $float) {
177177
return $float;
178178
}
179179

0 commit comments

Comments
 (0)