@@ -73,11 +73,11 @@ public function getHeaders(bool $throw = true): array
7373 {
7474 try {
7575 return $ this ->response ->getHeaders ($ throw );
76- } catch (ServerExceptionInterface $ ex ) {
76+ } catch (ServerExceptionInterface ) {
7777 throw new ServerException ($ this );
78- } catch (ClientExceptionInterface $ ex ) {
78+ } catch (ClientExceptionInterface ) {
7979 throw new ClientException ($ this );
80- } catch (RedirectionExceptionInterface $ ex ) {
80+ } catch (RedirectionExceptionInterface ) {
8181 throw new RedirectionException ($ this );
8282 }
8383 }
@@ -99,11 +99,11 @@ public function getContent(bool $throw = true): string
9999
100100 try {
101101 return $ this ->response ->getContent ($ throw );
102- } catch (ServerExceptionInterface $ ex ) {
102+ } catch (ServerExceptionInterface ) {
103103 throw new ServerException ($ this );
104- } catch (ClientExceptionInterface $ ex ) {
104+ } catch (ClientExceptionInterface ) {
105105 throw new ClientException ($ this );
106- } catch (RedirectionExceptionInterface $ ex ) {
106+ } catch (RedirectionExceptionInterface ) {
107107 throw new RedirectionException ($ this );
108108 }
109109 }
@@ -126,11 +126,11 @@ public function toArray(bool $throw = true): array
126126
127127 try {
128128 return $ this ->response ->toArray ($ throw );
129- } catch (ServerExceptionInterface $ ex ) {
129+ } catch (ServerExceptionInterface ) {
130130 throw new ServerException ($ this );
131- } catch (ClientExceptionInterface $ ex ) {
131+ } catch (ClientExceptionInterface ) {
132132 throw new ClientException ($ this );
133- } catch (RedirectionExceptionInterface $ ex ) {
133+ } catch (RedirectionExceptionInterface ) {
134134 throw new RedirectionException ($ this );
135135 }
136136 }
@@ -239,7 +239,7 @@ private function logResponseContent(bool $isDestruct = false): void
239239 if ($ isDestruct ) {
240240 try {
241241 $ this ->response ->getContent (false ); // load content
242- } catch (\Throwable $ ex ) {
242+ } catch (\Throwable ) {
243243
244244 }
245245 }
0 commit comments