Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigSet.php bug #67

Open
juvenrui opened this issue Feb 18, 2025 · 0 comments
Open

ConfigSet.php bug #67

juvenrui opened this issue Feb 18, 2025 · 0 comments

Comments

@juvenrui
Copy link

juvenrui commented Feb 18, 2025

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);

@juvenrui juvenrui changed the title ConfigSet bug ConfigSet.php bug Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant