| 1 | <?php |
||
| 23 | class MultiResponseHandlerTest implements MultiResponseHandlerInterface{ |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var \chillerlan\TinyCurl\MultiRequest |
||
| 27 | */ |
||
| 28 | protected $request; |
||
| 29 | |||
| 30 | public function __construct(MultiRequest $request){ |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param \chillerlan\TinyCurl\Response\ResponseInterface $response |
||
| 36 | * |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | public function handleResponse(ResponseInterface $response){ |
||
| 52 | |||
| 53 | } |
||
| 54 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: