Update __() function
This commit is contained in:
parent
b5d147c767
commit
7dcc3a4b2a
1 changed files with 2 additions and 2 deletions
|
@ -55,9 +55,9 @@ function __(?string $arg, /* mixed */ ...$args): string
|
|||
if (empty($args)) {
|
||||
return $tr;
|
||||
} elseif (\is_array(\reset($args))) {
|
||||
return \strtr($tr, \array_map('\ForkBB\e', \reset($args)));
|
||||
return \strtr($tr, \array_map('\\ForkBB\\e', \reset($args)));
|
||||
} else {
|
||||
$args = \array_map('\ForkBB\e', $args);
|
||||
$args = \array_map('\\ForkBB\\e', $args);
|
||||
return \sprintf($tr, ...$args);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue