From 305d167b087530bbbeadbb2cd6499663208d1b4c Mon Sep 17 00:00:00 2001 From: Nick Doulgeridis Date: Wed, 12 May 2021 18:29:35 +0300 Subject: [PATCH] Prevent PHP warning https://github.com/predis/predis/issues/691 --- src/Command/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/Command.php b/src/Command/Command.php index bb538e7c..59e18130 100644 --- a/src/Command/Command.php +++ b/src/Command/Command.php @@ -104,7 +104,7 @@ abstract class Command implements CommandInterface */ public static function normalizeArguments(array $arguments) { - if (count($arguments) === 1 && is_array($arguments[0])) { + if (count($arguments) === 1 && isset($arguments[0]) && is_array($arguments[0])) { return $arguments[0]; }