src/DataMapper.php
protected function getActionFields(string $action, bool $strict = true)
    {
        if (off($this->getClauses(), 'fields')) {
            $fields = off($this->getClauses(), 'fields');
            if (!is_array($fields)) {
                $fields = [$fields];
            }
            $this->fields(null);
        }
        if (!isset($fields)) {
            $fields = $this->getFields($action, $strict);
        }
        return $fields;
    }
protected function getActionFields(string $action, bool $strict = true)
    {
        if (off($this->getClauses(), 'fields')) {
            $fields = off($this->getClauses(), 'fields');
            if (!is_array($fields)) {
                $fields = [$fields];
            }
            $this->fields(null);
        }
        if (!isset($fields)) {
            $fields = $this->getFields($action, $strict);
        }
        return $fields;
    }
;

@param string $action
@param bool $strict
@return array|mixed