summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/DefaultTokenProvider.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-15 10:56:40 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-15 10:56:40 +0200
commit466297829e978f03421f5e34a4b2c7213332163c (patch)
tree5bf5725cc2053d525c0adfd25827674465c35db1 /lib/private/Authentication/Token/DefaultTokenProvider.php
parent47388e1cfe049265050614f55744adcd77ee8052 (diff)
downloadnextcloud-server-466297829e978f03421f5e34a4b2c7213332163c.tar.gz
nextcloud-server-466297829e978f03421f5e34a4b2c7213332163c.zip
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Authentication/Token/DefaultTokenProvider.php')
-rw-r--r--lib/private/Authentication/Token/DefaultTokenProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/DefaultTokenProvider.php b/lib/private/Authentication/Token/DefaultTokenProvider.php
index b1d3d227aef..747fb8ef6ea 100644
--- a/lib/private/Authentication/Token/DefaultTokenProvider.php
+++ b/lib/private/Authentication/Token/DefaultTokenProvider.php
@@ -174,11 +174,11 @@ class DefaultTokenProvider implements IProvider {
/**
* Get a token by token id
*
- * @param string $tokenId
+ * @param int $tokenId
* @throws InvalidTokenException
* @return IToken
*/
- public function getTokenById(string $tokenId): IToken {
+ public function getTokenById(int $tokenId): IToken {
try {
return $this->mapper->getTokenById($tokenId);
} catch (DoesNotExistException $ex) {