10000 minor #29782 [Intl] make type-hinted arguments nullable (xabbuh) · symfony/symfony@3299f27 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3299f27

Browse files
committed
minor #29782 [Intl] make type-hinted arguments nullable (xabbuh)
This PR was merged into the 4.1 branch. Discussion ---------- [Intl] make type-hinted arguments nullable | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 16ebeb3 [Intl] make type-hinted arguments nullable
2 parents 9093e86 + 16ebeb3 commit 3299f27

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