From 440bfc0c5de2e7cc618bc0ac49774f1e93efff02 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 29 Oct 2024 12:07:57 -0700 Subject: [PATCH] CLI-1412: [auth:login] PHP warning (#1822) --- src/Config/CloudDataConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config/CloudDataConfig.php b/src/Config/CloudDataConfig.php index 4f0c5bdba..a5ae83707 100644 --- a/src/Config/CloudDataConfig.php +++ b/src/Config/CloudDataConfig.php @@ -67,7 +67,7 @@ public function getConfigTreeBuilder(): TreeBuilder ->end() ->validate() ->ifTrue(function ($config) { - return is_array($config['keys']) && !empty($config['keys']) && !array_key_exists($config['acli_key'], $config['keys']); + return !empty($config['acli_key']) && (!is_array($config['keys']) || empty($config['keys']) || !array_key_exists($config['acli_key'], $config['keys'])); }) ->thenInvalid('acli_key must exist in keys'); return $treeBuilder;