Skip to content

Commit 03afc37

Browse files
Merge branch '4.4' into 5.2
* 4.4: [Console] Escape synopsis output Document null support in NumberToLocalizedStringTransformer
2 parents 51f75b4 + 6ccfc9e commit 03afc37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(?int $scale = 2, ?bool $grouping = true, ?int $round
4545
/**
4646
* Transforms a normalized format into a localized money string.
4747
*
48-
* @param int|float $value Normalized number
48+
* @param int|float|null $value Normalized number
4949
*
5050
* @return string Localized money string
5151
*
@@ -69,7 +69,7 @@ public function transform($value)
6969
*
7070
* @param string $value Localized money string
7171
*
72-
* @return int|float Normalized number
72+
* @return int|float|null Normalized number
7373
*
7474
* @throws TransformationFailedException if the given value is not a string
7575
* or if the value can not be transformed

Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct(int $scale = null, ?bool $grouping = false, ?int $ro
8484
/**
8585
* Transforms a number type into localized number.
8686
*
87-
* @param int|float $value Number value
87+
* @param int|float|null $value Number value
8888
*
8989
* @return string Localized value
9090
*
@@ -119,7 +119,7 @@ public function transform($value)
119119
*
120120
* @param string $value The localized value
121121
*
122-
* @return int|float The numeric value
122+
* @return int|float|null The numeric value
123123
*
124124
* @throws TransformationFailedException if the given value is not a string
125125
* or if the value can not be transformed

0 commit comments

Comments
 (0)