| 1 | <?php |
||
| 9 | trait Escaper |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Escape all values. |
||
| 13 | * |
||
| 14 | * @param array $data |
||
| 15 | * |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | protected function escape(array $data): array |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Configure the validator instance. |
||
| 37 | * |
||
| 38 | * @param \Illuminate\Validation\Validator $validator |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | public function withValidator($validator): void |
||
| 47 | } |
||
| 48 |
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: