File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ public function __construct(array $info, array $config)
6060 parent ::__construct ($ info , $ config );
6161
6262 // Check databases configuration that all required parameters are present
63- if (array_key_exists ('databases ' , $ config )) {
63+ if (!array_key_exists ('databases ' , $ config )) {
64+ throw new Exception ('Missing required attribute \'databases \' for authentication source ' . $ this ->authId );
65+ } else {
6466 if (!is_array ($ config ['databases ' ])) {
6567 throw new Exception ('Required parameter \'databases \' for authentication source ' .
6668 $ this ->authId . ' was provided and is expected to be an array. Instead it was: ' .
@@ -108,8 +110,6 @@ public function __construct(array $info, array $config)
108110 'options ' => $ dbConfig ['options ' ] ?? [],
109111 ];
110112 }
111- } else {
112- throw new Exception ('Missing required attribute \'databases \' for authentication source ' . $ this ->authId );
113113 }
114114
115115 // Check auth_queries configuration that all required parameters are present
You can’t perform that action at this time.
0 commit comments