aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/restapi/Router.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-11 13:02:01 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-07-11 13:02:01 +0000
commitb159096036c85fedf7b9c8d5dd064ab33cbba002 (patch)
tree13053238b77dcf6fa82d205080a1753d13f806bb /lib/classes/restapi/Router.php
parenteff664883c295ba74e686f1ab564140ddd04c9a8 (diff)
fix property access, fixes #1297
Closes #1297 Merge request studip/studip!794
Diffstat (limited to 'lib/classes/restapi/Router.php')
-rw-r--r--lib/classes/restapi/Router.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/classes/restapi/Router.php b/lib/classes/restapi/Router.php
index ed00fd9..3d375cb 100644
--- a/lib/classes/restapi/Router.php
+++ b/lib/classes/restapi/Router.php
@@ -458,10 +458,10 @@ class Router
* Takes a route and the parameters out of the requested path and
* executes the handler of the route.
*
- * @param Array $route the matched route out of
+ * @param array $route the matched route out of
* Router::matchRoute; an array with keys
* 'handler', 'conditions' and 'source'
- * @param Array $parameters the matched parameters out of
+ * @param array $parameters the matched parameters out of
* Router::matchRoute; something like:
* `array('user_id' => '23a21d...e78f')`
* @return Response the resulting Response object which is then
@@ -496,7 +496,7 @@ class Router
$handler[0]->after($this, $parameters);
}
- return $handler[0]->response;
+ return $handler[0]->getResponse();
}
/**