Conditions | 3 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | #[\Override] |
||
44 | public function translate(\Stringable|string $message, mixed ...$parameters): string |
||
45 | { |
||
46 | // Normalize nette to bckp/translator parameters |
||
47 | array_walk($parameters, static fn(&$value): string|float|int => $value = is_int($value) || is_float($value) ? $value : (string) $value); |
||
48 | return $this->getTranslator()->translate($message, ...$parameters); |
||
49 | } |
||
57 |