@@ -226,13 +226,13 @@ public function testClientError()
226
226
try {
227
227
$ response ->getHeaders ();
228
228
$ this ->fail (ClientExceptionInterface::class.' expected ' );
229
- } catch (ClientExceptionInterface $ e ) {
229
+ } catch (ClientExceptionInterface ) {
230
230
}
231
231
232
232
try {
233
233
$ response ->getContent ();
234
234
$ this ->fail (ClientExceptionInterface::class.' expected ' );
235
- } catch (ClientExceptionInterface $ e ) {
235
+ } catch (ClientExceptionInterface ) {
236
236
}
237
237
238
238
$ this ->assertSame (404 , $ response ->getStatusCode ());
@@ -246,7 +246,7 @@ public function testClientError()
246
246
$ this ->assertTrue ($ chunk ->isFirst ());
247
247
}
248
248
$ this ->fail (ClientExceptionInterface::class.' expected ' );
249
- } catch (ClientExceptionInterface $ e ) {
249
+ } catch (ClientExceptionInterface ) {
250
250
}
251
251
}
252
252
@@ -266,14 +266,14 @@ public function testDnsError()
266
266
try {
267
267
$ response ->getStatusCode ();
268
268
$ this ->fail (TransportExceptionInterface::class.' expected ' );
269
- } catch (TransportExceptionInterface $ e ) {
269
+ } catch (TransportExceptionInterface ) {
270
270
$ this ->addToAssertionCount (1 );
271
271
}
272
272
273
273
try {
274
274
$ response ->getStatusCode ();
275
275
$ this ->fail (TransportExceptionInterface::class.' still expected ' );
276
- } catch (TransportExceptionInterface $ e ) {
276
+ } catch (TransportExceptionInterface ) {
277
277
$ this ->addToAssertionCount (1 );
278
278
}
279
279
@@ -283,7 +283,7 @@ public function testDnsError()
283
283
foreach ($ client ->stream ($ response ) as $ r => $ chunk ) {
284
284
}
285
285
$ this ->fail (TransportExceptionInterface::class.' expected ' );
286
- } catch (TransportExceptionInterface $ e ) {
286
+ } catch (TransportExceptionInterface ) {
287
287
$ this ->addToAssertionCount (1 );
288
288
}
289
289
@@ -432,7 +432,7 @@ public function testMaxRedirects()
432
432
try {
433
433
$ response ->getHeaders ();
434
434
$ this ->fail (RedirectionExceptionInterface::class.' expected ' );
435
- } catch (RedirectionExceptionInterface $ e ) {
435
+ } catch (RedirectionExceptionInterface ) {
436
436
}
437
437
438
438
$ this ->assertSame (302 , $ response ->getStatusCode ());
@@ -854,7 +854,7 @@ public function testTimeoutOnInitialize()
854
854
try {
855
855
$ response ->getContent ();
856
856
$ this ->fail (TransportExceptionInterface::class.' expected ' );
857
- } catch (TransportExceptionInterface $ e ) {
857
+ } catch (TransportExceptionInterface ) {
858
858
}
859
859
}
860
860
$ responses = [];
@@ -887,7 +887,7 @@ public function testTimeoutOnDestruct()
887
887
try {
888
888
unset($ response );
889
889
$ this ->fail (TransportExceptionInterface::class.' expected ' );
890
- } catch (TransportExceptionInterface $ e ) {
890
+ } catch (TransportExceptionInterface ) {
891
891
}
892
892
}
893
893
@@ -1105,7 +1105,7 @@ public function testMaxDuration()
1105
1105
1106
1106
try {
1107
1107
$ response ->getContent ();
1108
- } catch (TransportExceptionInterface $ e ) {
1108
+ } catch (TransportExceptionInterface ) {
1109
1109
$ this ->addToAssertionCount (1 );
1110
1110
}
1111
1111
0 commit comments