src/ministruts/Request.php
public function removeActionMessages(...$keys) {
        $messages = $this->getAttribute(ACTION_MESSAGES_KEY);
        $dropped = [];

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

        unset($this->attributes[ACTION_MESSAGES_KEY]);
        return $messages;
    }
public function removeActionMessages(...$keys) {
        $messages = $this->getAttribute(ACTION_MESSAGES_KEY);
        $dropped = [];

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

        unset($this->attributes[ACTION_MESSAGES_KEY]);
        return $messages;
    }
public function removeActionMessages ( ... $ keys ) { $ messages = $ this -> getAttribute ( ACTION_MESSAGES_KEY ) ; $ dropped = [ ] ; foreach ( $ keys as $ key ) { if ( isset ( $ messages [ $ key ] ) ) $ dropped [ $ key ] = $ messages [ $ key ] ; unset ( $ this -> attributes [ ACTION_MESSAGES_KEY ] [ $ key ] ) ; } if ( $ keys ) return $ dropped ; unset ( $ this -> attributes [ ACTION_MESSAGES_KEY ] ) ; return $ messages ; }
Delete the ActionMessages with the specified keys.

@param  string[] ...$keys - zero or more message keys to delete; without a key all ActionMessages are deleted
(ActionErrors with the same keys are not deleted

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