1
0
Fork 0

Make sure an array is always returned

pull/9592/head
Jordi Boggiano 2021-01-07 23:26:29 +01:00 committed by GitHub
parent bdecb4711d
commit 7f85367113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class TransportException extends \RuntimeException
protected $headers;
protected $response;
protected $statusCode;
protected $responseInfo;
protected $responseInfo = array();
public function setHeaders($headers)
{
@ -63,7 +63,7 @@ class TransportException extends \RuntimeException
/**
* @param array $responseInfo
*/
public function setResponseInfo($responseInfo)
public function setResponseInfo(array $responseInfo)
{
$this->responseInfo = $responseInfo;
}