1 | <?php |
||
14 | class ActionPanelRenderer implements WebRenderer { |
||
15 | |||
16 | /** @var RendererRegistry */ |
||
17 | private $renderers; |
||
18 | |||
19 | /** @var ActionRegistry */ |
||
20 | private $actions; |
||
21 | |||
22 | private $results = []; |
||
23 | |||
24 | /** @var FieldRegistry */ |
||
25 | private $fields; |
||
26 | |||
27 | /** |
||
28 | * @param RendererRegistry $renderers |
||
29 | * @param ActionRegistry $actions |
||
30 | * @param FieldRegistry $fields |
||
31 | */ |
||
32 | public function __construct(RendererRegistry $renderers, ActionRegistry $actions, FieldRegistry $fields) { |
||
37 | |||
38 | /** |
||
39 | * @param mixed $value |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function handles($value) { |
||
45 | |||
46 | /** |
||
47 | * @param ActionPanel $value |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function render($value) { |
||
59 | |||
60 | /** |
||
61 | * @param mixed $value |
||
62 | * @return array|Element[] |
||
63 | */ |
||
64 | public function headElements($value) { |
||
72 | |||
73 | private function getContent(ActionPanel $value) { |
||
82 | |||
83 | /** |
||
84 | * @param Parameter[] $parameters |
||
85 | * @param mixed[] $values |
||
86 | * @return mixed[] |
||
87 | */ |
||
88 | private function inflate($parameters, $values) { |
||
98 | } |
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: