Skip to content

Commit 1dc63f4

Browse files
committed
minor symfony#25260 [Intl] Correct Typehint (votemike)
This PR was merged into the 4.0 branch. Discussion ---------- [Intl] Correct Typehint | Q | A | ------------- | --- | Branch? | 4.0 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. - Replace this comment by a description of what your PR is solving. --> Commits ------- 5377e28 [Intl] Correct Typehint
2 parents 9857419 + 5377e28 commit 1dc63f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class NumberFormatter
257257
* @throws MethodArgumentValueNotImplementedException When the $style is not supported
258258
* @throws MethodArgumentNotImplementedException When the pattern value is different than null
259259
*/
260-
public function __construct(?string $locale = 'en', string $style = null, $pattern = null)
260+
public function __construct(?string $locale = 'en', int $style = null, $pattern = null)
261261
{
262262
if ('en' !== $locale && null !== $locale) {
263263
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'locale', $locale, 'Only the locale "en" is supported');

0 commit comments

Comments
 (0)