dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
15474ac
)
Merge "Ensure that User::getId() returns int"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 23 Mar 2016 14:58:51 +0000
(14:58 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 23 Mar 2016 14:58:51 +0000
(14:58 +0000)
includes/user/User.php
patch
|
blob
|
history
diff --git
a/includes/user/User.php
b/includes/user/User.php
index
e553ddc
..
027edf9
100644
(file)
--- a/
includes/user/User.php
+++ b/
includes/user/User.php
@@
-200,6
+200,7
@@
class User implements IDBAccessObject {
/** Cache variables */
// @{
+ /** @var int */
public $mId;
/** @var string */
public $mName;
@@
-2052,7
+2053,8
@@
class User implements IDBAccessObject {
// Don't load if this was initialized from an ID
$this->load();
}
- return $this->mId;
+
+ return (int)$this->mId;
}
/**