1 | <?php |
||
13 | class ContextualViewWarmer |
||
14 | { |
||
15 | /** |
||
16 | * Give a contextual View to each WidgetMap used in a View and its Templates. |
||
17 | * |
||
18 | * @param View $viewToWarm |
||
19 | * @param View|null $contextualView Used in recursive call only |
||
20 | * |
||
21 | * @return WidgetMap[] |
||
22 | */ |
||
23 | public function warm(View $viewToWarm, View $contextualView = null) |
||
43 | } |
||
44 |
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: