Skip to content

Commit

Permalink
Fix numeric column formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed May 8, 2024
1 parent 9908f6f commit bf0c4fe
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 bf0c4fe

Please sign in to comment.