mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 05:37:39 +02:00
Translator: fixed numeric column formatting
This commit is contained in:
committed by
David Grudl
parent
d342d8d78f
commit
c04d2197e3
@@ -219,7 +219,7 @@ final class Translator
|
|||||||
|
|
||||||
case 'a': // key=val, key=val, ...
|
case 'a': // key=val, key=val, ...
|
||||||
foreach ($value as $k => $v) {
|
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]} . '='
|
$vx[] = $this->identifiers->{$pair[0]} . '='
|
||||||
. $this->formatValue($v, $pair[1] ?? (is_array($v) ? 'ex!' : null));
|
. $this->formatValue($v, $pair[1] ?? (is_array($v) ? 'ex!' : null));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user