diff --git a/src/Service/Loco.php b/src/Service/Loco.php index 4bc1e62..d96fc1b 100644 --- a/src/Service/Loco.php +++ b/src/Service/Loco.php @@ -333,7 +333,11 @@ private function flatten(array &$messages, array $subnode = null, $path = null) unset($messages[$key]); } } elseif (null !== $path) { - $messages[$path.'.'.$key] = $value; + if ($key !== 0) { + $messages[$path.'.'.$key] = $value; + } else { + $messages[$path] = $value; + } } } }