Skip to content

ConfigSet.php bug #67

Open
Open
@juvenrui

Description

@juvenrui

macfja/redisearch/src/Redis/Command/ConfigSet.php, function setConfig():

$this->options['options'][0]->setValue($name);
$this->options['options'][1]->setValue($name);
$this->options['value']->setValue($value);

Runtime:

$client->execute((new Command\ConfigSet($rediSearchVersion))->setConfig('DEFAULT_DIALECT', 2))

Throw exception:
AbstractCommand.php 74: Missing command option: options

Fix:

$this->options['options'][0]->setValue($name);
$this->options['options'][1]->setValue($name);
$this->options['options'][2]->setValue($name);

Add line: $this->options['options'][2]->setValue($name);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions