| 1 | <?php |
||
| 27 | class ResponseHandler |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * @var Negotiator |
||
| 31 | */ |
||
| 32 | protected $negotiator; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param Negotiator $negotiator |
||
| 36 | */ |
||
| 37 | 7 | public function __construct(Negotiator $negotiator) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param Request $request |
||
| 44 | * @param array $data |
||
| 45 | * @param int $status |
||
| 46 | * |
||
| 47 | * @return Response |
||
| 48 | */ |
||
| 49 | 7 | public function negociate(Request $request, array $data = [], $status = Response::HTTP_OK) |
|
| 61 | } |
||
| 62 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: