Skip to content

Commit 2e8f4f1

Browse files
authored
Fixed Psalm PossiblyInvalidCast, PossiblyInvalidArgument (#13)
1 parent 8ae6ec9 commit 2e8f4f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Formatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function text(float $value, string $rule, bool $showSymbol = true): strin
7272
$result = \str_replace(
7373
['%v', '%s'],
7474
[$data['value'], $symbol],
75-
$data['template'],
75+
(string)$data['template'],
7676
);
7777

7878
return \trim($result);
@@ -89,7 +89,7 @@ public function html(array $current, array $orig, array $params): string
8989
"<span class=\"simpleType-value\">{$data['value']}</span>",
9090
"<span class=\"simpleType-symbol\">{$rData['symbol']}</span>",
9191
],
92-
$data['template'],
92+
(string)$data['template'],
9393
);
9494

9595
return '<span ' . self::htmlAttributes([

0 commit comments

Comments
 (0)