mirror of
https://github.com/predis/predis.git
synced 2026-08-31 12:43:31 +00:00
Bugfix: using the right variable in Predis\Pipeline\SafeExecutor makes things work.
This commit is contained in:
+2
-2
@@ -1561,7 +1561,7 @@ class SafeExecutor implements IExecutor {
|
||||
|
||||
foreach ($commands as $command) {
|
||||
try {
|
||||
$this->_connection->writeCommand($command);
|
||||
$connection->writeCommand($command);
|
||||
}
|
||||
catch (CommunicationException $exception) {
|
||||
return array_fill(0, $sizeofPipe, $exception);
|
||||
@@ -1572,7 +1572,7 @@ class SafeExecutor implements IExecutor {
|
||||
$command = $commands[$i];
|
||||
unset($commands[$i]);
|
||||
try {
|
||||
$response = $this->_connection->readResponse($command);
|
||||
$response = $connection->readResponse($command);
|
||||
$values[] = ($response instanceof \Iterator
|
||||
? iterator_to_array($response)
|
||||
: $response
|
||||
|
||||
Reference in New Issue
Block a user