protected function mergeMessages(array $errors): array
    {
        $errors = array_filter(call_user_func_array('array_merge', $errors));

        return $this->showValidationRules ? $errors : array_values($errors);
    }
protected function mergeMessages(array $errors): array
    {
        $errors = array_filter(call_user_func_array('array_merge', $errors));

        return $this->showValidationRules ? $errors : array_values($errors);
    }
protected function mergeMessages ( array $ errors ) : array { $ errors = array_filter ( call_user_func_array ( 'array_merge' , $ errors ) ) ; return $ this -> showValidationRules ? $ errors : array_values ( $ errors ) ; }
Merges default messages, global messages and individual messages.

@param array $errors

@return string[]
Merges default messages global messages and individual messages .