8000 [Intl] make type-hinted arguments nullable · symfony/symfony@16ebeb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 16ebeb3

Browse files
committed
[Intl] make type-hinted arguments nullable
1 parent 34c8a8b commit 16ebeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class IntlDateFormatter
132132
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" or null is passed
133133
* @throws MethodArgumentValueNotImplementedException When $calendar different than GREGORIAN is passed
134134
*/
135-
public function __construct(?string $locale, int $datetype, int $timetype, $timezone = null, ?int $calendar = self::GREGORIAN, string $pattern = null)
135+
public function __construct(?string $locale, ?int $datetype, ?int $timetype, $timezone = null, ?int $calendar = self::GREGORIAN, string $pattern = null)
136136
{
137137
if ('en' !== $locale && null !== $locale) {
138138
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'locale', $locale, 'Only the locale "en" is supported');

0 commit comments

Comments
 (0)
0