| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function actionIndex() |
||
| 33 | { |
||
| 34 | // initialize model - scan available sitemap indexes |
||
| 35 | $model = new EntityIndexList(App::$Request->getLanguage()); |
||
|
|
|||
| 36 | |||
| 37 | // run event - allow add any other sitemap indexes in model before render it |
||
| 38 | App::$Event->run(static::EVENT_SITEMAP_LIST, [ |
||
| 39 | 'model' => $model |
||
| 40 | ]); |
||
| 41 | |||
| 42 | // build information about files |
||
| 43 | $model->make(); |
||
| 44 | |||
| 45 | return App::$View->render('index', [ |
||
| 46 | 'model' => $model |
||
| 47 | ]); |
||
| 48 | } |
||
| 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: