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
Use ::class to resolve class names in includes files
[lhc/web/wiklou.git]
/
includes
/
site
/
SiteList.php
diff --git
a/includes/site/SiteList.php
b/includes/site/SiteList.php
index
2d9f22d
..
b942d6e
100644
(file)
--- a/
includes/site/SiteList.php
+++ b/
includes/site/SiteList.php
@@
-34,7
+34,7
@@
class SiteList extends GenericArrayObject {
*
* @var array Array of integer
*/
*
* @var array Array of integer
*/
- protected $byInternalId =
array()
;
+ protected $byInternalId =
[]
;
/**
* Global site identifiers pointing to their sites offset value.
/**
* Global site identifiers pointing to their sites offset value.
@@
-43,7
+43,7
@@
class SiteList extends GenericArrayObject {
*
* @var array Array of string
*/
*
* @var array Array of string
*/
- protected $byGlobalId =
array()
;
+ protected $byGlobalId =
[]
;
/**
* Navigational site identifiers alias inter-language prefixes
/**
* Navigational site identifiers alias inter-language prefixes
@@
-53,7
+53,7
@@
class SiteList extends GenericArrayObject {
*
* @var array Array of string
*/
*
* @var array Array of string
*/
- protected $byNavigationId =
array()
;
+ protected $byNavigationId =
[]
;
/**
* @see GenericArrayObject::getObjectType
/**
* @see GenericArrayObject::getObjectType
@@
-63,7
+63,7
@@
class SiteList extends GenericArrayObject {
* @return string
*/
public function getObjectType() {
* @return string
*/
public function getObjectType() {
- return
'Site'
;
+ return
Site::class
;
}
/**
}
/**
@@
-175,7
+175,7
@@
class SiteList extends GenericArrayObject {
* @return bool
*/
public function isEmpty() {
* @return bool
*/
public function isEmpty() {
- return $this->byGlobalId ===
array()
;
+ return $this->byGlobalId ===
[]
;
}
/**
}
/**
@@
-319,15
+319,15
@@
class SiteList extends GenericArrayObject {
* @return array
*/
protected function getSerializationData() {
* @return array
*/
protected function getSerializationData() {
- //NOTE: When changing the structure, either implement unserialize() to handle the
+ //
NOTE: When changing the structure, either implement unserialize() to handle the
// old structure too, or update SERIAL_VERSION_ID to kill any caches.
return array_merge(
parent::getSerializationData(),
// old structure too, or update SERIAL_VERSION_ID to kill any caches.
return array_merge(
parent::getSerializationData(),
- array(
+ [
'internalIds' => $this->byInternalId,
'globalIds' => $this->byGlobalId,
'navigationIds' => $this->byNavigationId
'internalIds' => $this->byInternalId,
'globalIds' => $this->byGlobalId,
'navigationIds' => $this->byNavigationId
- )
+ ]
);
}
);
}
@@
-350,9
+350,3
@@
class SiteList extends GenericArrayObject {
return $serializationData;
}
}
return $serializationData;
}
}
-
-/**
- * @deprecated since 1.21
- */
-class SiteArray extends SiteList {
-}