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 PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
[lhc/web/wiklou.git]
/
includes
/
libs
/
objectcache
/
RedisBagOStuff.php
diff --git
a/includes/libs/objectcache/RedisBagOStuff.php
b/includes/libs/objectcache/RedisBagOStuff.php
index
f720010
..
432e6d6
100644
(file)
--- a/
includes/libs/objectcache/RedisBagOStuff.php
+++ b/
includes/libs/objectcache/RedisBagOStuff.php
@@
-396,9
+396,7
@@
class RedisBagOStuff extends BagOStuff {
*/
protected function getMasterLinkStatus( RedisConnRef $conn ) {
$info = $conn->info();
- return isset( $info['master_link_status'] )
- ? $info['master_link_status']
- : null;
+ return $info['master_link_status'] ?? null;
}
/**