summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-10 11:17:03 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-10 11:17:03 +0200
commit7d158c62ce13bfe126aa96bf157fc890c2813fac (patch)
treebfb7628c4cc7e268b3c4161c7f30fa29b707f9ab /lib
parent01f2fef1f56020ff561eb938b1f511cb94590f08 (diff)
downloadnextcloud-server-7d158c62ce13bfe126aa96bf157fc890c2813fac.tar.gz
nextcloud-server-7d158c62ce13bfe126aa96bf157fc890c2813fac.zip
Typehint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/L10N/Factory.php3
-rw-r--r--lib/public/L10N/IFactory.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php
index 1a7fff43229..1c56949c40d 100644
--- a/lib/private/L10N/Factory.php
+++ b/lib/private/L10N/Factory.php
@@ -251,7 +251,7 @@ class Factory implements IFactory {
* @param string $locale
* @return null|string
*/
- public function findLanguageFromLocale($app = 'core', $locale = null) {
+ public function findLanguageFromLocale(string $app = 'core', string $locale = null) {
if ($this->languageExists($app, $locale)) {
return $locale;
}
@@ -261,7 +261,6 @@ class Factory implements IFactory {
if ($this->languageExists($app, $locale)) {
return $locale;
}
-
}
/**
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php
index 49dab869476..810e916ef6b 100644
--- a/lib/public/L10N/IFactory.php
+++ b/lib/public/L10N/IFactory.php
@@ -61,7 +61,7 @@ interface IFactory {
* @return null|string
* @since 15.0.0
*/
- public function findLanguageFromLocale($app = 'core', $locale = null);
+ public function findLanguageFromLocale(string $app = 'core', string $locale = null);
/**
* Find all available languages for an app