Skip to content

Commit 1fa4465

Browse files
FIX dingo#1220 If Middleware instanceof Closure then it has no name/parameters, so skip it.
1 parent 242411e commit 1fa4465

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Http/Middleware/Request.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ public function terminate($request, $response)
150150
}
151151

152152
foreach ($middlewares as $middleware) {
153+
if ($middleware instanceof Closure) {
154+
continue;
155+
}
156+
153157
list($name, $parameters) = $this->parseMiddleware($middleware);
154158

155159
$instance = $this->app->make($name);

0 commit comments

Comments
 (0)