mirror of
https://github.com/predis/predis.git
synced 2026-09-11 19:07:30 +00:00
Do not parse response to PFADD into boolean value.
This commit is contained in:
@@ -32,12 +32,4 @@ class HyperLogLogAdd extends Command
|
||||
{
|
||||
return self::normalizeVariadic($arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function parseResponse($data)
|
||||
{
|
||||
return (bool) $data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,8 +69,8 @@ class HyperLogLogAddTest extends PredisCommandTestCase
|
||||
{
|
||||
$command = $this->getCommand();
|
||||
|
||||
$this->assertSame(false, $command->parseResponse(0));
|
||||
$this->assertSame(true, $command->parseResponse(1));
|
||||
$this->assertSame(0, $command->parseResponse(0));
|
||||
$this->assertSame(1, $command->parseResponse(1));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user