1 | <?php |
||
10 | class Module extends \luya\base\Module |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 2 | public static function onLoad() |
|
16 | { |
||
17 | 2 | self::registerTranslation('slick*', static::staticBasePath().'/messages', [ |
|
18 | 2 | 'fileMap' => [ |
|
19 | 'slick' => 'slick.php', |
||
20 | ], |
||
21 | ]); |
||
22 | 2 | } |
|
23 | |||
24 | /** |
||
25 | * Translations. |
||
26 | * |
||
27 | * @param $message |
||
28 | * @param array $params |
||
29 | * @param $category |
||
30 | * |
||
31 | * @internal param unknown $language |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | 1 | public static function t($message, array $params = [], $category = 'slick') |
|
39 | |||
40 | } |
||
41 |
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: