aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federation/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-01 14:28:16 +0200
committerGitHub <noreply@github.com>2017-08-01 14:28:16 +0200
commit6010c4f267f6b59e0dfd620dc928227f75dae9d1 (patch)
treee6ee00826da6450dcc12f6346ed2b158f7b8f240 /apps/federation/lib
parent050fa633800ed6fd922732b8461cf12b380818a1 (diff)
parentf71dc7523f7625da4c47ec9d5b116d20f71dba33 (diff)
downloadnextcloud-server-6010c4f267f6b59e0dfd620dc928227f75dae9d1.tar.gz
nextcloud-server-6010c4f267f6b59e0dfd620dc928227f75dae9d1.zip
Merge pull request #5877 from nextcloud/typehint_middleware
Prop argument type for Middleware
Diffstat (limited to 'apps/federation/lib')
-rw-r--r--apps/federation/lib/Middleware/AddServerMiddleware.php6
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;
}