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
Ensure that User::getId() returns int
[lhc/web/wiklou.git]
/
includes
/
user
/
User.php
diff --git
a/includes/user/User.php
b/includes/user/User.php
index
09124bf
..
3a891f6
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;
}
/**