mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-25 02:22:57 +01:00
Fixing concrete class to match interface
This commit is contained in:
parent
7f979204e8
commit
c8aa018db0
@ -3,7 +3,7 @@
|
||||
namespace Guzzle\Plugin\Cache;
|
||||
|
||||
use Guzzle\Http\Message\RequestInterface;
|
||||
use Guzzle\Http\Message\Response;
|
||||
use Guzzle\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Determines if a request can be cached using a callback
|
||||
@ -33,7 +33,7 @@ class CallbackCanCacheStrategy extends DefaultCanCacheStrategy
|
||||
: parent::canCacheRequest($request);
|
||||
}
|
||||
|
||||
public function canCacheResponse(Response $response)
|
||||
public function canCacheResponse(ResponseInterface $response)
|
||||
{
|
||||
return $this->responseCallback
|
||||
? call_user_func($this->responseCallback, $response)
|
||||
|
Loading…
x
Reference in New Issue
Block a user