Skip to content

Commit

Permalink
CLI-1412: [auth:login] PHP warning (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Oct 29, 2024
1 parent fe3d08f commit 440bfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config/CloudDataConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 440bfc0

Please sign in to comment.