1 | <?php |
||
12 | class HealthCheck implements ElementInterface, RendererAwareInterface, DataAwareInterface |
||
13 | { |
||
14 | use RendererAwareTrait, DataAwareTrait; |
||
15 | |||
16 | /** |
||
17 | * @return string |
||
18 | */ |
||
19 | public function getTitle() |
||
23 | |||
24 | /** |
||
25 | * @return int |
||
26 | */ |
||
27 | public function getOrder() |
||
31 | |||
32 | /** |
||
33 | * @param Upgrade $context |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function isRelevantTo(Upgrade $context) |
||
41 | |||
42 | /** |
||
43 | * @param Upgrade $context |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getBody(Upgrade $context) |
||
53 | } |
||
54 |
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: