1
0
mirror of https://github.com/dg/dibi.git synced 2025-07-31 19:30:30 +02:00

Translator: fixed numeric column formatting

This commit is contained in:
Marek Bartoš
2024-05-09 00:12:21 +02:00
committed by David Grudl
parent d342d8d78f
commit c04d2197e3

View File

@@ -219,7 +219,7 @@ final class Translator
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));
}