1 | <?php |
||
7 | class CurrieTransformer extends TransformerAbstract |
||
8 | { |
||
9 | /** |
||
10 | * List of resources to automatically include. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $defaultIncludes = [ |
||
15 | 'resources' |
||
16 | ]; |
||
17 | |||
18 | /** |
||
19 | * Transformation representation of currie OBJ. |
||
20 | * |
||
21 | * @param Currie $currie Currie OBJ. |
||
22 | * |
||
23 | * @return array Currie OBJ transformed. |
||
24 | */ |
||
25 | public function transform(Currie $currie) |
||
32 | |||
33 | /** |
||
34 | * Include currie resources. |
||
35 | * |
||
36 | * @param Currie $currie Resource curries. |
||
37 | * |
||
38 | * @return \League\Fractal\Resource\Item Fractal resource item OBJ. |
||
39 | */ |
||
40 | public function includeResources(Currie $currie) |
||
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: