diff --git a/src/Response/LoggableResponse.php b/src/Response/LoggableResponse.php index d482b53..9be3506 100644 --- a/src/Response/LoggableResponse.php +++ b/src/Response/LoggableResponse.php @@ -73,11 +73,11 @@ public function getHeaders(bool $throw = true): array { try { return $this->response->getHeaders($throw); - } catch (ServerExceptionInterface $ex) { + } catch (ServerExceptionInterface) { throw new ServerException($this); - } catch (ClientExceptionInterface $ex) { + } catch (ClientExceptionInterface) { throw new ClientException($this); - } catch (RedirectionExceptionInterface $ex) { + } catch (RedirectionExceptionInterface) { throw new RedirectionException($this); } } @@ -99,11 +99,11 @@ public function getContent(bool $throw = true): string try { return $this->response->getContent($throw); - } catch (ServerExceptionInterface $ex) { + } catch (ServerExceptionInterface) { throw new ServerException($this); - } catch (ClientExceptionInterface $ex) { + } catch (ClientExceptionInterface) { throw new ClientException($this); - } catch (RedirectionExceptionInterface $ex) { + } catch (RedirectionExceptionInterface) { throw new RedirectionException($this); } } @@ -126,11 +126,11 @@ public function toArray(bool $throw = true): array try { return $this->response->toArray($throw); - } catch (ServerExceptionInterface $ex) { + } catch (ServerExceptionInterface) { throw new ServerException($this); - } catch (ClientExceptionInterface $ex) { + } catch (ClientExceptionInterface) { throw new ClientException($this); - } catch (RedirectionExceptionInterface $ex) { + } catch (RedirectionExceptionInterface) { throw new RedirectionException($this); } } @@ -239,7 +239,7 @@ private function logResponseContent(bool $isDestruct = false): void if ($isDestruct) { try { $this->response->getContent(false); // load content - } catch (\Throwable $ex) { + } catch (\Throwable) { } }