diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-26 10:50:39 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-31 16:54:19 +0200 |
commit | f71dc7523f7625da4c47ec9d5b116d20f71dba33 (patch) | |
tree | d8992481a5f8b043ac010986fed8eb7eaf3ce3db /apps/federation | |
parent | 3548603a88360f9577a386c3b9c2032230c48632 (diff) | |
download | nextcloud-server-f71dc7523f7625da4c47ec9d5b116d20f71dba33.tar.gz nextcloud-server-f71dc7523f7625da4c47ec9d5b116d20f71dba33.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federation')
-rw-r--r-- | apps/federation/lib/Middleware/AddServerMiddleware.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/federation/lib/Middleware/AddServerMiddleware.php b/apps/federation/lib/Middleware/AddServerMiddleware.php index 71e517f6b87..5f67ad6b7a5 100644 --- a/apps/federation/lib/Middleware/AddServerMiddleware.php +++ b/apps/federation/lib/Middleware/AddServerMiddleware.php @@ -26,6 +26,7 @@ namespace OCA\Federation\Middleware; use OC\HintException; use OCA\Federation\Controller\SettingsController; +use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Middleware; @@ -52,12 +53,13 @@ class AddServerMiddleware extends Middleware { /** * Log error message and return a response which can be displayed to the user * - * @param \OCP\AppFramework\Controller $controller + * @param Controller $controller * @param string $methodName * @param \Exception $exception * @return JSONResponse + * @throws \Exception */ - public function afterException($controller, $methodName, \Exception $exception) { + public function afterException(Controller $controller, $methodName, \Exception $exception) { if (($controller instanceof SettingsController) === false) { throw $exception; } |