public function formatError($index, $params)
    {
        $pattern = $this->hasMessage($index) ? $this->getMessage($index) : static::MESSAGE_DEFAULT_PATTERN;

        return vsprintf($pattern, $params);
    }