Make sure an array is always returned
parent
bdecb4711d
commit
7f85367113
|
@ -20,7 +20,7 @@ class TransportException extends \RuntimeException
|
||||||
protected $headers;
|
protected $headers;
|
||||||
protected $response;
|
protected $response;
|
||||||
protected $statusCode;
|
protected $statusCode;
|
||||||
protected $responseInfo;
|
protected $responseInfo = array();
|
||||||
|
|
||||||
public function setHeaders($headers)
|
public function setHeaders($headers)
|
||||||
{
|
{
|
||||||
|
@ -63,7 +63,7 @@ class TransportException extends \RuntimeException
|
||||||
/**
|
/**
|
||||||
* @param array $responseInfo
|
* @param array $responseInfo
|
||||||
*/
|
*/
|
||||||
public function setResponseInfo($responseInfo)
|
public function setResponseInfo(array $responseInfo)
|
||||||
{
|
{
|
||||||
$this->responseInfo = $responseInfo;
|
$this->responseInfo = $responseInfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue