Skip to content

Commit 7ab070d

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Validator] Update MIR card scheme [Notifier][FakeSms] Do not use switch [Mailer][Sendgrid] Add previous exception Remove internal from ConstraintViolationAssertion Improve phpdoc
2 parents 7a9eb00 + 24c3162 commit 7ab070d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Countries.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ public static function getAlpha3Name(string $alpha3Code, string $displayLocale =
107107
/**
108108
* Gets the list of country names indexed with alpha2 codes as keys.
109109
*
110-
* @return string[]
110+
* @return array<string, string>
111111
*/
112-
public static function getNames(?string $displayLocale = null): array
112+
public static function getNames(string $displayLocale = null): array
113113
{
114114
return self::asort(self::readEntry(['Names'], $displayLocale), $displayLocale);
115115
}
@@ -119,9 +119,9 @@ public static function getNames(?string $displayLocale = null): array
119119
*
120120
* Same as method getNames, but with alpha3 codes instead of alpha2 codes as keys.
121121
*
122-
* @return string[]
122+
* @return array<string, string>
123123
*/
124-
public static function getAlpha3Names(?string $displayLocale = null): array
124+
public static function getAlpha3Names(string $displayLocale = null): array
125125
{
126126
$alpha2Names = self::getNames($displayLocale);
127127
$alpha3Names = [];

Languages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function getName(string $language, string $displayLocale = null):
7676
/**
7777
* Gets the list of language names indexed with alpha2 codes as keys.
7878
*
79-
* @return string[]
79+
* @return array<string, string>
8080
*/
8181
public static function getNames(string $displayLocale = null): array
8282
{
@@ -157,7 +157,7 @@ public static function getAlpha3Name(string $language, string $displayLocale = n
157157
*
158158
* Same as method getNames, but with ISO 639-2 three-letter codes instead of ISO 639-1 codes as keys.
159159
*
160-
* @return string[]
160+
* @return array<string, string>
161161
*/
162162
public static function getAlpha3Names(string $displayLocale = null): array
163163
{

0 commit comments

Comments
 (0)