src/Profile/RedisProfile.php
public function createCommand(string $commandID, array $arguments = []): CommandInterface
    {
        $commandID = strtoupper($commandID);

        if (!isset($this->commands[$commandID])) {
            throw new RedisException("Command '{$commandID}' is not a registered Redis command.");
        }

        $commandClass = $this->commands[$commandID];

        /* @var CommandInterface $command*/
        $command      = new $commandClass();
        $command->setArguments($arguments);

        if (isset($this->processor)) {
            $this->processor->process($command);
        }

        return $command;
    }
public function createCommand(string $commandID, array $arguments = []): CommandInterface
    {
        $commandID = strtoupper($commandID);

        if (!isset($this->commands[$commandID])) {
            throw new RedisException("Command '{$commandID}' is not a registered Redis command.");
        }

        $commandClass = $this->commands[$commandID];

        /* @var CommandInterface $command*/
        $command      = new $commandClass();
        $command->setArguments($arguments);

        if (isset($this->processor)) {
            $this->processor->process($command);
        }

        return $command;
    }
{@inheritdoc}