mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-25 10:33:18 +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;
|
namespace Guzzle\Plugin\Cache;
|
||||||
|
|
||||||
use Guzzle\Http\Message\RequestInterface;
|
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
|
* Determines if a request can be cached using a callback
|
||||||
@ -33,7 +33,7 @@ class CallbackCanCacheStrategy extends DefaultCanCacheStrategy
|
|||||||
: parent::canCacheRequest($request);
|
: parent::canCacheRequest($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canCacheResponse(Response $response)
|
public function canCacheResponse(ResponseInterface $response)
|
||||||
{
|
{
|
||||||
return $this->responseCallback
|
return $this->responseCallback
|
||||||
? call_user_func($this->responseCallback, $response)
|
? call_user_func($this->responseCallback, $response)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user