src/ministruts/Request.php
public function removeActionErrors(...$keys) {
        $errors = $this->getAttribute(ACTION_ERRORS_KEY);
        $dropped = [];

        foreach ($keys as $key) {
            if (isset($errors[$key]))
                $dropped[$key] = $errors[$key];
            unset($this->attributes[ACTION_ERRORS_KEY][$key]);
        }
        if ($keys)
            return $dropped;

        unset($this->attributes[ACTION_ERRORS_KEY]);
        return $errors;
    }
public function removeActionErrors(...$keys) {
        $errors = $this->getAttribute(ACTION_ERRORS_KEY);
        $dropped = [];

        foreach ($keys as $key) {
            if (isset($errors[$key]))
                $dropped[$key] = $errors[$key];
            unset($this->attributes[ACTION_ERRORS_KEY][$key]);
        }
        if ($keys)
            return $dropped;

        unset($this->attributes[ACTION_ERRORS_KEY]);
        return $errors;
    }
public function removeActionErrors ( ... $ keys ) { $ errors = $ this -> getAttribute ( ACTION_ERRORS_KEY ) ; $ dropped = [ ] ; foreach ( $ keys as $ key ) { if ( isset ( $ errors [ $ key ] ) ) $ dropped [ $ key ] = $ errors [ $ key ] ; unset ( $ this -> attributes [ ACTION_ERRORS_KEY ] [ $ key ] ) ; } if ( $ keys ) return $ dropped ; unset ( $ this -> attributes [ ACTION_ERRORS_KEY ] ) ; return $ errors ; }
Delete the ActionErrors with the specified keys.

@param  string[] ...$keys - zero or more error keys to delete; without a key all ActionErrors are deleted

@return array - the deleted ActionErrors
Delete the ActionErrors with the specified keys .