public function clearCache()
    {
        static::$cache = [];

        // remove our "remembered" submitted value
        $this->submitted = null;

        // remove our "remembered" valid value
        foreach ($this->fields as $field) {
            if ($field instanceof AbstractFormField) {
                $field->clearCache();
            }
        }
        return $this;
    }
public function clearCache()
    {
        static::$cache = [];

        // remove our "remembered" submitted value
        $this->submitted = null;

        // remove our "remembered" valid value
        foreach ($this->fields as $field) {
            if ($field instanceof AbstractFormField) {
                $field->clearCache();
            }
        }
        return $this;
    }
public function clearCache ( ) { static :: $ cache = [ ] ; // remove our "remembered" submitted value $ this -> submitted = null ; // remove our "remembered" valid value foreach ( $ this -> fields as $ field ) { if ( $ field instanceof AbstractFormField ) { $ field -> clearCache ( ) ; } } return $ this ; }
Clear our cache of the submitted values.
This could be useful when you have changed the submitted values and want to re-analyze them.
@return Form
Clear our cache of the submitted values . This could be useful when you have changed the submitted values and want to re - analyze them .