| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __construct(ClientException $exception) |
||
| 23 | { |
||
| 24 | $this->exception = $exception; |
||
| 25 | $this->responseArray = json_decode((string) $this->exception->getResponse()->getBody(), true); |
||
|
|
|||
| 26 | |||
| 27 | parent::__construct( |
||
| 28 | 'Path: ' . $exception->getRequest()->getUri()->getPath() . |
||
| 29 | ', Message: ' . (string)$exception->getResponse()->getBody(), |
||
| 30 | $exception->getCode() |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 50 |
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..