diff --git a/src/Dibi/Translator.php b/src/Dibi/Translator.php index 1d4879bc..35d31c71 100644 --- a/src/Dibi/Translator.php +++ b/src/Dibi/Translator.php @@ -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)); }