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
/
cache
/
UserCache.php
diff --git
a/includes/cache/UserCache.php
b/includes/cache/UserCache.php
index
cb68571
..
2828b9a
100644
(file)
--- a/
includes/cache/UserCache.php
+++ b/
includes/cache/UserCache.php
@@
-56,9
+56,7
@@
class UserCache {
$this->doQuery( [ $userId ] ); // cache miss
}
- return isset( $this->cache[$userId][$prop] )
- ? $this->cache[$userId][$prop]
- : false; // user does not exist?
+ return $this->cache[$userId][$prop] ?? false; // user does not exist?
}
/**