Browse Source

Typehint

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
tags/v15.0.0beta1
John Molakvoæ (skjnldsv) 5 years ago
parent
commit
7d158c62ce
No account linked to committer's email address
2 changed files with 2 additions and 3 deletions
  1. 1
    2
      lib/private/L10N/Factory.php
  2. 1
    1
      lib/public/L10N/IFactory.php

+ 1
- 2
lib/private/L10N/Factory.php View File

@@ -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;
}

}

/**

+ 1
- 1
lib/public/L10N/IFactory.php View File

@@ -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

Loading…
Cancel
Save