src/Validator.php
private function mergeErrors($errors)
    {
        if (is_null($errors)) {
            return;
        }

        $errors       = is_array($errors) ? $errors : [$errors];
        $this->errors = array_merge($this->errors, $errors);
    }
private function mergeErrors($errors)
    {
        if (is_null($errors)) {
            return;
        }

        $errors       = is_array($errors) ? $errors : [$errors];
        $this->errors = array_merge($this->errors, $errors);
    }
private function mergeErrors ( $ errors ) { if ( is_null ( $ errors ) ) { return ; } $ errors = is_array ( $ errors ) ? $ errors : [ $ errors ] ; $ this -> errors = array_merge ( $ this -> errors , $ errors ) ; }
Merge the errors with our error collection.

@param ValidationError[]|ValidationError|null $errors
Merge the errors with our error collection .