mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 10:03:27 +01:00
No need to create a function
This commit is contained in:
parent
bfef02f98b
commit
bc73eb7b30
@ -304,9 +304,7 @@ class Client implements ClientInterface
|
||||
throw RingBridge::getNoRingResponseException($trans->request);
|
||||
},
|
||||
// Cancel function. Just proxy to the underlying future.
|
||||
function () use ($response) {
|
||||
return $response->cancel();
|
||||
}
|
||||
[$response, 'cancel']
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user