dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
API: Add missing `@ingroup API` to a few Api-related classes
[lhc/web/wiklou.git]
/
languages
/
Language.php
diff --git
a/languages/Language.php
b/languages/Language.php
index
4e663c2
..
51ff8d5
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-55,13
+55,15
@@
class Language {
const SUPPORTED = 'mwfile';
/**
const SUPPORTED = 'mwfile';
/**
- * @var LanguageConverter
+ * @var LanguageConverter
|FakeConverter
*/
public $mConverter;
public $mVariants, $mCode, $mLoaded = false;
public $mMagicExtensions = [];
*/
public $mConverter;
public $mVariants, $mCode, $mLoaded = false;
public $mMagicExtensions = [];
- private $mHtmlCode = null, $mParentLanguage = false;
+ private $mHtmlCode = null;
+ /** @var Language|false */
+ private $mParentLanguage = false;
public $dateFormatStrings = [];
public $mExtendedSpecialPageAliases;
public $dateFormatStrings = [];
public $mExtendedSpecialPageAliases;
@@
-467,6
+469,7
@@
class Language {
/**
* Reduce memory usage
/**
* Reduce memory usage
+ * @suppress PhanTypeSuspiciousNonTraversableForeach
*/
function __destruct() {
foreach ( $this as $name => $value ) {
*/
function __destruct() {
foreach ( $this as $name => $value ) {
@@
-2967,8
+2970,8
@@
class Language {
}
/**
}
/**
- * @param
array
$termsArray
- * @return
array
+ * @param
string[]
$termsArray
+ * @return
string[]
*/
function convertForSearchResult( $termsArray ) {
# some languages, e.g. Chinese, need to do a conversion
*/
function convertForSearchResult( $termsArray ) {
# some languages, e.g. Chinese, need to do a conversion
@@
-4537,7
+4540,7
@@
class Language {
*
* @since 1.22
* @param string $code Language code
*
* @since 1.22
* @param string $code Language code
- * @return array
Array( fallbacks, site fallbacks )
+ * @return array
[ fallbacks, site fallbacks ]
*/
public static function getFallbacksIncludingSiteLanguage( $code ) {
global $wgLanguageCode;
*/
public static function getFallbacksIncludingSiteLanguage( $code ) {
global $wgLanguageCode;
@@
-4863,6
+4866,7
@@
class Language {
public function viewPrevNext( Title $title, $offset, $limit,
array $query = [], $atend = false
) {
public function viewPrevNext( Title $title, $offset, $limit,
array $query = [], $atend = false
) {
+ wfDeprecated( __METHOD__, '1.34' );
// @todo FIXME: Why on earth this needs one message for the text and another one for tooltip?
# Make 'previous' link
// @todo FIXME: Why on earth this needs one message for the text and another one for tooltip?
# Make 'previous' link