1 | <?php |
||
12 | class FlowTransformer extends TransformerAbstract |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $availableIncludes = ['steps']; |
||
18 | |||
19 | /** |
||
20 | * @param Flow $flow |
||
21 | * @return array |
||
22 | */ |
||
23 | public function transform(Flow $flow) |
||
34 | |||
35 | /** |
||
36 | * @param Flow $flow |
||
37 | * @return \League\Fractal\Resource\Collection|null |
||
38 | */ |
||
39 | public function includeSteps(Flow $flow) |
||
46 | } |
||
47 |
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: