diff --git a/src/SonsOfPHP/Component/HttpClient/Exception/ClientException.php b/src/SonsOfPHP/Component/HttpClient/Exception/ClientException.php index 55e5fa48..a18a3c94 100644 --- a/src/SonsOfPHP/Component/HttpClient/Exception/ClientException.php +++ b/src/SonsOfPHP/Component/HttpClient/Exception/ClientException.php @@ -11,6 +11,4 @@ * * @author Joshua Estes */ -class ClientException extends \Exception implements ClientExceptionInterface -{ -} +class ClientException extends \Exception implements ClientExceptionInterface {} diff --git a/src/SonsOfPHP/Component/HttpClient/Tests/HandlerStackTest.php b/src/SonsOfPHP/Component/HttpClient/Tests/HandlerStackTest.php index 92d3b207..ce1a4ac6 100644 --- a/src/SonsOfPHP/Component/HttpClient/Tests/HandlerStackTest.php +++ b/src/SonsOfPHP/Component/HttpClient/Tests/HandlerStackTest.php @@ -50,7 +50,7 @@ public function testHandleWorksAsExpected(): void $handler = new HandlerStack(new NullHandler()); $handler->push(new HttpErrorMiddleware()); $handler->push(new ContentLengthMiddleware()); - $handler->push(new CallbackMiddleware(function ($handler, $req, $res) { return $handler->handle($req, $res); })); + $handler->push(new CallbackMiddleware(fn ($handler, $req, $res) => $handler->handle($req, $res))); $handler->push(new NullMiddleware()); $response = $handler->handle((new Request())->withBody(new Stream()));