Skip to content

Commit

Permalink
change redis command check
Browse files Browse the repository at this point in the history
  • Loading branch information
sakuraovq committed Jul 11, 2020
1 parent 1fab046 commit fd80b95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/redis/src/Connection/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ public function createClusterClient(): void
public function command(string $method, array $parameters = [], bool $reconnect = false)
{
try {
$lowerMethod = strtolower($method);
if (!in_array($lowerMethod, $this->supportedMethods, true)) {
if (false === method_exists($this, $method)) {
throw new RedisException(
sprintf('Method(%s) is not supported!', $method)
);
Expand Down

0 comments on commit fd80b95

Please sign in to comment.