diff --git a/lib/Controller/PushController.php b/lib/Controller/PushController.php index ce434ac2c..eb2c58a16 100644 --- a/lib/Controller/PushController.php +++ b/lib/Controller/PushController.php @@ -154,7 +154,7 @@ public function removeDevice(): DataResponse { return new DataResponse([], Http::STATUS_UNAUTHORIZED); } - $tokenId = $this->session->get('token-id'); + $tokenId = (int)$this->session->get('token-id'); try { $token = $this->tokenProvider->getTokenById($tokenId); } catch (InvalidTokenException $e) {