Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit abfef54

Browse filesBrowse files
committed
[Intl] make type-hinted arguments nullable
1 parent 34c8a8b commit abfef54
Copy full SHA for abfef54

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php
+1-1Lines 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 = null, int $timetype = null, $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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.