diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-21 10:54:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-21 10:55:52 +0100 |
commit | ca9f364fd4746093a38cdcaf2456f5f86aebb89f (patch) | |
tree | c5766ca8f760833381af5bc30ac16a0782080d5d /lib | |
parent | a773b055fc8ee3ae41a50e74542efa8b331b0602 (diff) | |
download | nextcloud-server-ca9f364fd4746093a38cdcaf2456f5f86aebb89f.tar.gz nextcloud-server-ca9f364fd4746093a38cdcaf2456f5f86aebb89f.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Http/Dispatcher.php | 3 | ||||
-rw-r--r-- | lib/private/AppFramework/Middleware/MiddlewareDispatcher.php | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php index 6219ba47a41..7b9ad015de6 100644 --- a/lib/private/AppFramework/Http/Dispatcher.php +++ b/lib/private/AppFramework/Http/Dispatcher.php @@ -105,9 +105,6 @@ class Dispatcher { } catch(\Exception $exception){ $response = $this->middlewareDispatcher->afterException( $controller, $methodName, $exception); - if ($response === null) { - throw $exception; - } } $response = $this->middlewareDispatcher->afterController( diff --git a/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php b/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php index 30efe815888..e1262b6c712 100644 --- a/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php +++ b/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php @@ -85,7 +85,7 @@ class MiddlewareDispatcher { * @param string $methodName the name of the method that will be called on * the controller */ - public function beforeController(Controller $controller, $methodName){ + public function beforeController(Controller $controller, string $methodName){ // we need to count so that we know which middlewares we have to ask in // case there is an exception $middlewareCount = \count($this->middlewares); |