diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-01 20:12:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 20:12:02 +0200 |
commit | 3f0f18b4c45429445678613f6d07cfbc800ceade (patch) | |
tree | c85246eadd2103200e26af6b208756dc87822e76 /lib/public | |
parent | 84c22fdeef6986f9038d8563937cc234751d5147 (diff) | |
parent | f93a82b8b09109e391b0314f92d02d285c356ad6 (diff) | |
download | nextcloud-server-3f0f18b4c45429445678613f6d07cfbc800ceade.tar.gz nextcloud-server-3f0f18b4c45429445678613f6d07cfbc800ceade.zip |
Merge pull request #5948 from nextcloud/remove-explicit-declaration
Remove explicit type hints for Controller
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/AppFramework/Middleware.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/AppFramework/Middleware.php b/lib/public/AppFramework/Middleware.php index fbd75981b59..677e5c2e7ee 100644 --- a/lib/public/AppFramework/Middleware.php +++ b/lib/public/AppFramework/Middleware.php @@ -52,7 +52,7 @@ abstract class Middleware { * the controller * @since 6.0.0 */ - public function beforeController(Controller $controller, $methodName){ + public function beforeController($controller, $methodName){ } @@ -72,7 +72,7 @@ abstract class Middleware { * @return Response a Response object in case that the exception was handled * @since 6.0.0 */ - public function afterException(Controller $controller, $methodName, \Exception $exception){ + public function afterException($controller, $methodName, \Exception $exception){ throw $exception; } @@ -88,7 +88,7 @@ abstract class Middleware { * @return Response a Response object * @since 6.0.0 */ - public function afterController(Controller $controller, $methodName, Response $response){ + public function afterController($controller, $methodName, Response $response){ return $response; } @@ -104,7 +104,7 @@ abstract class Middleware { * @return string the output that should be printed * @since 6.0.0 */ - public function beforeOutput(Controller $controller, $methodName, $output){ + public function beforeOutput($controller, $methodName, $output){ return $output; } |