Skip to content

Commit 3cae9b2

Browse files
Merge branch '4.4'
* 4.4: Add more return types after fixing a typo in my script
2 parents 4781a98 + aff2855 commit 3cae9b2

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

Tests/DateFormatter/AbstractIntlDateFormatterTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,7 @@ abstract protected function getDateFormatter($locale, $datetype, $timetype, $tim
967967

968968
abstract protected function getIntlErrorMessage(): string;
969969

970-
/**
971-
* @return int
972-
*/
973-
abstract protected function getIntlErrorCode();
970+
abstract protected function getIntlErrorCode(): int;
974971

975972
/**
976973
* @param int $errorCode

Tests/DateFormatter/IntlDateFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ protected function getIntlErrorMessage(): string
188188
return IntlGlobals::getErrorMessage();
189189
}
190190

191-
protected function getIntlErrorCode()
191+
protected function getIntlErrorCode(): int
192192
{
193193
return IntlGlobals::getErrorCode();
194194
}

Tests/DateFormatter/Verification/IntlDateFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function getIntlErrorMessage(): string
7373
return intl_get_error_message();
7474
}
7575

76-
protected function getIntlErrorCode()
76+
protected function getIntlErrorCode(): int
7777
{
7878
return intl_get_error_code();
7979
}

Tests/NumberFormatter/AbstractNumberFormatterTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,10 +840,7 @@ abstract protected function getNumberFormatter(string $locale = 'en', string $st
840840

841841
abstract protected function getIntlErrorMessage(): string;
842842

843-
/**
844-
* @return int
845-
*/
846-
abstract protected function getIntlErrorCode();
843+
abstract protected function getIntlErrorCode(): int;
847844

848845
/**
849846
* @param int $errorCode

Tests/NumberFormatter/NumberFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected function getIntlErrorMessage(): string
179179
return IntlGlobals::getErrorMessage();
180180
}
181181

182-
protected function getIntlErrorCode()
182+
protected function getIntlErrorCode(): int
183183
{
184184
return IntlGlobals::getErrorCode();
185185
}

Tests/NumberFormatter/Verification/NumberFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function getIntlErrorMessage(): string
4949
return intl_get_error_message();
5050
}
5151

52-
protected function getIntlErrorCode()
52+
protected function getIntlErrorCode(): int
5353
{
5454
return intl_get_error_code();
5555
}

0 commit comments

Comments
 (0)