| 1 | <?php |
||
| 10 | class FilterHooks |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @hook alter @filter-output |
||
| 14 | * @option $filter Filter output based on provided expression |
||
| 15 | * @default $filter '' |
||
| 16 | */ |
||
| 17 | public function filterOutput($result, CommandData $commandData) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * If the source data was wrapped in a marker class such |
||
| 33 | * as RowsOfFields, then re-apply the wrapper. |
||
| 34 | */ |
||
| 35 | protected function wrapFilteredResult($data, $source) |
||
| 44 | } |
||
| 45 |
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: