Skip to content

Commit aff2855

Browse files
Add more return types after fixing a typo in my script
1 parent f968577 commit aff2855

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
@@ -842,10 +842,7 @@ abstract protected function getNumberFormatter(string $locale = 'en', string $st
842842

843843
abstract protected function getIntlErrorMessage(): string;
844844

845-
/**
846-
* @return int
847-
*/
848-
abstract protected function getIntlErrorCode();
845+
abstract protected function getIntlErrorCode(): int;
849846

850847
/**
851848
* @param int $errorCode

Tests/NumberFormatter/NumberFormatterTest.php

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

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

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)