| 1 | <?php |
||
| 11 | final class FakeAdapter 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) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Return the last request given to this Adapter. |
||
| 36 | * |
||
| 37 | * @return RequestInterface |
||
| 38 | */ |
||
| 39 | public function getRequest() |
||
| 43 | } |
||
| 44 |
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..