1 | <?php |
||
10 | class Module extends \luya\base\Module |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | |||
16 | 2 | public static function onLoad() |
|
24 | |||
25 | /** |
||
26 | * Translations. |
||
27 | * |
||
28 | * @param $message |
||
29 | * @param array $params |
||
30 | * @param $category |
||
31 | * @internal param unknown $language |
||
32 | * @return string |
||
33 | */ |
||
34 | |||
35 | 1 | public static function t($message, array $params = [], $category = 'slick') |
|
39 | |||
40 | /** |
||
41 | * Loading and parsing of json config array. |
||
42 | * |
||
43 | * @param $file |
||
44 | * @return string |
||
45 | * @throws \luya\Exception |
||
46 | * @internal param string $message |
||
47 | * @internal param array $params |
||
48 | */ |
||
49 | |||
50 | private static function jsonLoad($file) |
||
60 | |||
61 | /** |
||
62 | * Load Slick.js options via LUYA configs as $params. |
||
63 | * |
||
64 | * @return boolean | string | array |
||
65 | * @internal param array $params |
||
66 | * |
||
67 | */ |
||
68 | |||
69 | 1 | public static function slickConfig() { |
|
92 | } |
||
93 |
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: