Skip to content

Commit 22379c7

Browse files
authored
Fix signature of Locale::canonicalize.
The method can return null, https://www.php.net/manual/en/locale.canonicalize.php.
1 parent d77790b commit 22379c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dictionaries/CallMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6446,7 +6446,7 @@
64466446
'litespeed_request_headers' => ['array'],
64476447
'litespeed_response_headers' => ['array'],
64486448
'Locale::acceptFromHttp' => ['string|false', 'header'=>'string'],
6449-
'Locale::canonicalize' => ['string', 'locale'=>'string'],
6449+
'Locale::canonicalize' => ['?string', 'locale'=>'string'],
64506450
'Locale::composeLocale' => ['string', 'subtags'=>'array'],
64516451
'Locale::filterMatches' => ['?bool', 'languageTag'=>'string', 'locale'=>'string', 'canonicalize='=>'bool'],
64526452
'Locale::getAllVariants' => ['array', 'locale'=>'string'],

0 commit comments

Comments
 (0)