We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I don't understand why appending null to the argument list when there is only one item?
php-redisearch/src/Redis/Client/PhpredisClient.php
Line 78 in 61eefb6
A simple FLUSHALL command fails due to the error.
FLUSHALL
Code:
$redis = new \Redis() $redis->rawCommand('FLUSHALL');
Result:
OK
$clientFacade = new \MacFJA\RediSearch\Redis\Client\ClientFacade(); $client = $clientFacade->getClient($redis = new \Redis()); $client->executeRaw('FLUSHALL');
ErrorException Redis::rawcommand(): Raw command arguments must be scalar values! at vendor/macfja/redisearch/src/Redis/Client/PhpredisClient.php:81 77▕ if (count($args) < 2) { 78▕ $args[] = null; 79▕ } 80▕ // @phpstan-ignore-next-line ➜ 81▕ return $this->redis->rawCommand(...$args); 82▕ } 83▕ 84▕ protected function doPipeline(Command ...$commands): array 85▕ {
The text was updated successfully, but these errors were encountered:
My bad, I was mislead by the "PhpDoc" that indicate that the function need at least 2 parameters.
But the documentation (and the code) indicate that only the first parameter is mandatory
I will fix it
Sorry, something went wrong.
I made a correction and publish a new version (v2.1.2)
It should be better now
MacFJA
Successfully merging a pull request may close this issue.
Hi,
I don't understand why appending null to the argument list when there is only one item?
php-redisearch/src/Redis/Client/PhpredisClient.php
Line 78 in 61eefb6
A simple
FLUSHALL
command fails due to the error.Code:
Result:
OK
Code:
Result:
The text was updated successfully, but these errors were encountered: