diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-21 14:32:04 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-21 14:32:04 +0100 |
commit | 541056f6c284953a0435d180b8620b55e344a5f4 (patch) | |
tree | 1102fa1fe3b852bd308f9def32cd4db6eea6e4d2 /lib/public/IL10N.php | |
parent | 4b50fe7560444f4c42ba04ea4a034119af907db1 (diff) | |
download | nextcloud-server-541056f6c284953a0435d180b8620b55e344a5f4.tar.gz nextcloud-server-541056f6c284953a0435d180b8620b55e344a5f4.zip |
Make OCP\IL10N strict
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/IL10N.php')
-rw-r--r-- | lib/public/IL10N.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/public/IL10N.php b/lib/public/IL10N.php index 7af5008b814..158e0cb156c 100644 --- a/lib/public/IL10N.php +++ b/lib/public/IL10N.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -51,7 +52,7 @@ interface IL10N { * returned. * @since 6.0.0 */ - public function t($text, $parameters = array()); + public function t(string $text, array $parameters = []): string; /** * Translating @@ -69,7 +70,7 @@ interface IL10N { * @since 6.0.0 * */ - public function n($text_singular, $text_plural, $count, $parameters = array()); + public function n(string $text_singular, string $text_plural, int $count, array $parameters = []): string; /** * Localization @@ -96,7 +97,7 @@ interface IL10N { * - params: timestamp (int/string) * @since 6.0.0 - parameter $options was added in 8.0.0 */ - public function l($type, $data, $options = array()); + public function l(string $type, $data, array $options = []); /** @@ -105,5 +106,5 @@ interface IL10N { * @return string language * @since 7.0.0 */ - public function getLanguageCode(); + public function getLanguageCode(): string ; } |