Prevent PHP warning

https://github.com/predis/predis/issues/691
This commit is contained in:
Nick Doulgeridis
2021-05-12 18:29:35 +03:00
committed by GitHub
parent 3271e1edcb
commit 305d167b08
+1 -1
View File
@@ -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];
}