diff options
author | Robin Appelman <robin@icewind.nl> | 2016-10-31 14:26:29 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-16 15:24:29 +0100 |
commit | a4ea20a259dc2d98cda7b2e8d5ca08f3f1b48ff7 (patch) | |
tree | 88fdfcca01cfc5f86fec79a78f36ef5c6989689e /lib/private/Authentication | |
parent | bb65d3b03d247d8bdde797af4acb963fe296595d (diff) | |
download | nextcloud-server-a4ea20a259dc2d98cda7b2e8d5ca08f3f1b48ff7.tar.gz nextcloud-server-a4ea20a259dc2d98cda7b2e8d5ca08f3f1b48ff7.zip |
cast to int
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Authentication')
-rw-r--r-- | lib/private/Authentication/Token/DefaultToken.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php index 8e6774a0a22..ecfb1a44f2e 100644 --- a/lib/private/Authentication/Token/DefaultToken.php +++ b/lib/private/Authentication/Token/DefaultToken.php @@ -122,8 +122,8 @@ class DefaultToken extends Entity implements IToken { return [ 'id' => $this->id, 'name' => $this->name, - 'lastActivity' => $this->lastActivity, - 'type' => $this->type, + 'lastActivity' => (int)$this->lastActivity, + 'type' => (int)$this->type, 'scope' => $this->getScopeAsArray() ]; } |