Skip to content

Commit 6bf2702

Browse files
committed
[Intl] Correct Typehint
1 parent 2d6908f commit 6bf2702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)