Skip to content

Commit

Permalink
Merge pull request #29 from danizord/hotfix/remove-third-param
Browse files Browse the repository at this point in the history
Do not pass third param to $next
  • Loading branch information
bakura10 authored Jun 27, 2016
2 parents e1b30b7 + f9c83b0 commit 26c053e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Middleware/LocalhostCheckerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ public function __invoke(
));
}

return $out($request, $response, $out);
return $out($request, $response);
}
}
6 changes: 3 additions & 3 deletions test/Middleware/LocalhostCheckerMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testDelegatesIfFromDockerLocal(string $ipAddress)

$middleware = new LocalhostCheckerMiddleware();

$returnedResponse = $middleware->__invoke($request->reveal(), $response, function($request, $response, $out) {
$returnedResponse = $middleware->__invoke($request->reveal(), $response, function($request, $response) {
return $response;
});

Expand All @@ -61,7 +61,7 @@ public function testDelegateIfFromIPv4Localhost()

$middleware = new LocalhostCheckerMiddleware();

$returnedResponse = $middleware->__invoke($request->reveal(), $response, function($request, $response, $out) {
$returnedResponse = $middleware->__invoke($request->reveal(), $response, function($request, $response) {
return $response;
});

Expand All @@ -77,7 +77,7 @@ public function testDelegateIfFromIPv6Localhost()

$middleware = new LocalhostCheckerMiddleware();

$returnedResponse = $middleware->__invoke($request->reveal(), $response, function($request, $response, $out) {
$returnedResponse = $middleware->__invoke($request->reveal(), $response, function($request, $response) {
return $response;
});

Expand Down

0 comments on commit 26c053e

Please sign in to comment.