summaryrefslogtreecommitdiffstats
path: root/lib/Controller/ApiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ApiController.php')
-rw-r--r--lib/Controller/ApiController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php
index 1ffa1272d..a434f8de7 100644
--- a/lib/Controller/ApiController.php
+++ b/lib/Controller/ApiController.php
@@ -49,9 +49,9 @@ class ApiController extends BaseApiController
}
/**
- * @return IUser
+ * @return IUser|null
*/
- protected function getUser()
+ protected function getUser(): ?IUser
{
if ($this->userSession === null) {
throw new NotLoggedInException();