for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bunq\Exception;
use GuzzleHttp\Exception\ClientException;
final class BunqException extends \Exception
{
/**
* @var ClientException
*/
private $exception;
* @var array
private $responseArray;
* @param ClientException $exception
public function __construct(ClientException $exception)
$this->exception = $exception;
$this->responseArray = json_decode((string) $this->exception->getResponse()->getBody(), true);
json_decode((string) $th...nse()->getBody(), true)
*
array
$responseArray
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
parent::__construct(
'Path: ' . $exception->getRequest()->getUri()->getPath() .
', Message: ' . (string)$exception->getResponse()->getBody(),
$exception->getCode()
);
}
* @return ClientException
public function getClientException()
return $this->exception;
* @return array
public function getResponseArray()
return $this->responseArray;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..