src/Reform/Validation/Result.php
public function getFirstErrors()
    {
        $errors = array();
        foreach (array_keys($this->errors) as $name) {
            $errors[$name] = current($this->errors[$name]);
        }

        return $errors;
    }
public function getFirstErrors()
    {
        $errors = array();
        foreach (array_keys($this->errors) as $name) {
            $errors[$name] = current($this->errors[$name]);
        }

        return $errors;
    }
public function getFirstErrors ( ) { $ errors = array ( ) ; foreach ( array_keys ( $ this -> errors ) as $ name ) { $ errors [ $ name ] = current ( $ this -> errors [ $ name ] ) ; } return $ errors ; }
Get the first error for each value.
Get the first error for each value .