diff --git a/src/Middleware/LocalhostCheckerMiddleware.php b/src/Middleware/LocalhostCheckerMiddleware.php index 6b28633..418a510 100644 --- a/src/Middleware/LocalhostCheckerMiddleware.php +++ b/src/Middleware/LocalhostCheckerMiddleware.php @@ -40,6 +40,6 @@ public function __invoke( )); } - return $out($request, $response, $out); + return $out($request, $response); } } diff --git a/test/Middleware/LocalhostCheckerMiddlewareTest.php b/test/Middleware/LocalhostCheckerMiddlewareTest.php index 9eb7a63..e28cf89 100644 --- a/test/Middleware/LocalhostCheckerMiddlewareTest.php +++ b/test/Middleware/LocalhostCheckerMiddlewareTest.php @@ -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; }); @@ -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; }); @@ -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; });