src/Viserio/Component/Translation/MessageCatalogue.php
public function add(array $messages, string $domain = 'messages'): void
    {
        if (! isset($this->messages[$domain])) {
            $this->messages[$domain] = $messages;
        } else {
            $this->messages[$domain] = \array_replace($this->messages[$domain], $messages);
        }
    }
public function add(array $messages, string $domain = 'messages'): void
    {
        if (! isset($this->messages[$domain])) {
            $this->messages[$domain] = $messages;
        } else {
            $this->messages[$domain] = \array_replace($this->messages[$domain], $messages);
        }
    }
{@inheritdoc}