| 1 | <?php |
||
| 11 | final class ErrorAdapter implements AdapterInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The last request given to this adapter. |
||
| 15 | * |
||
| 16 | * @var Request |
||
| 17 | */ |
||
| 18 | private $request = null; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Returns an empty Response. |
||
| 22 | * |
||
| 23 | * @param RequestInterface $request The request to send. |
||
| 24 | * |
||
| 25 | * @return ResponseInterface |
||
| 26 | */ |
||
| 27 | public function send(RequestInterface $request) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Return the last request given to this Adapter. |
||
| 47 | * |
||
| 48 | * @return RequestInterface |
||
| 49 | */ |
||
| 50 | public function getRequest() |
||
| 54 | } |
||
| 55 |
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..