1 | <?php |
||
13 | class Sitemap extends FrontAppController |
||
14 | { |
||
15 | const EVENT_SITEMAP_LIST = 'sitemap.index'; |
||
16 | |||
17 | /** |
||
18 | * Before run: set xml header and disable global html layout |
||
19 | */ |
||
20 | public function before() |
||
25 | |||
26 | /** |
||
27 | * List available sitemap index links |
||
28 | * @return string |
||
29 | * @throws \Ffcms\Core\Exception\NativeException |
||
30 | * @throws \Ffcms\Core\Exception\SyntaxException |
||
31 | */ |
||
32 | public function actionIndex() |
||
49 | } |
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: