Skip to content

Commit

Permalink
Fix numeric column formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar authored and dg committed Sep 3, 2024
1 parent 6bd617b commit 640da0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dibi/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function formatValue(mixed $value, ?string $modifier): string

case 'a': // key=val, key=val, ...
foreach ($value as $k => $v) {
$pair = explode('%', $k, 2); // split into identifier & modifier
$pair = explode('%', (string) $k, 2); // split into identifier & modifier
$vx[] = $this->identifiers->{$pair[0]} . '='
. $this->formatValue($v, $pair[1] ?? (is_array($v) ? 'ex!' : null));
}
Expand Down

0 comments on commit 640da0a

Please sign in to comment.