Skip to content

Commit

Permalink
Remove unnecessary non-scalar transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanhann committed Dec 9, 2018
1 parent adac934 commit f0173cd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/AbstractRedisRawClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ public function rawCommand(string $command, array $arguments)

public function prepareRawCommandArguments(string $command, array $arguments) : array
{
foreach ($arguments as $index => $argument) {
if (!is_scalar($arguments[$index])) {
$arguments[$index] = (string)$argument;
}
}
array_unshift($arguments, $command);
if ($this->logger) {
$this->logger->debug(implode(' ', $arguments));
Expand Down

0 comments on commit f0173cd

Please sign in to comment.