Skip to content

Commit 8f714f3

Browse files
Backport type fixes
1 parent fca65f5 commit 8f714f3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Countries.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function getAlpha3Name(string $alpha3Code, string $displayLocale =
109109
*
110110
* @return string[]
111111
*/
112-
public static function getNames($displayLocale = null): array
112+
public static function getNames(?string $displayLocale = null): array
113113
{
114114
return self::asort(self::readEntry(['Names'], $displayLocale), $displayLocale);
115115
}
@@ -121,7 +121,7 @@ public static function getNames($displayLocale = null): array
121121
*
122122
* @return string[]
123123
*/
124-
public static function getAlpha3Names($displayLocale = null): array
124+
public static function getAlpha3Names(?string $displayLocale = null): array
125125
{
126126
$alpha2Names = self::getNames($displayLocale);
127127
$alpha3Names = [];

Languages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static function getAlpha3Name(string $language, string $displayLocale = n
159159
*
160160
* @return string[]
161161
*/
162-
public static function getAlpha3Names($displayLocale = null): array
162+
public static function getAlpha3Names(string $displayLocale = null): array
163163
{
164164
$alpha2Names = self::getNames($displayLocale);
165165
$alpha3Names = [];

Locales.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static function getName(string $locale, string $displayLocale = null): st
6767
/**
6868
* @return string[]
6969
*/
70-
public static function getNames($displayLocale = null): array
70+
public static function getNames(string $displayLocale = null): array
7171
{
7272
return self::asort(self::readEntry(['Names'], $displayLocale), $displayLocale);
7373
}

Scripts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function getName(string $script, string $displayLocale = null): st
5151
/**
5252
* @return string[]
5353
*/
54-
public static function getNames($displayLocale = null): array
54+
public static function getNames(string $displayLocale = null): array
5555
{
5656
return self::asort(self::readEntry(['Names'], $displayLocale), $displayLocale);
5757
}

Util/IntlTestHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class IntlTestHelper
3030
/**
3131
* Should be called before tests that work fine with the stub implementation.
3232
*/
33-
public static function requireIntl(TestCase $testCase, $minimumIcuVersion = null)
33+
public static function requireIntl(TestCase $testCase, string $minimumIcuVersion = null)
3434
{
3535
if (null === $minimumIcuVersion) {
3636
$minimumIcuVersion = Intl::getIcuStubVersion();
@@ -64,7 +64,7 @@ public static function requireIntl(TestCase $testCase, $minimumIcuVersion = null
6464
* Should be called before tests that require a feature-complete intl
6565
* implementation.
6666
*/
67-
public static function requireFullIntl(TestCase $testCase, $minimumIcuVersion = null)
67+
public static function requireFullIntl(TestCase $testCase, string $minimumIcuVersion = null)
6868
{
6969
// We only run tests if the intl extension is loaded...
7070
if (!Intl::isExtensionLoaded()) {

0 commit comments

Comments
 (0)