We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef713d7 commit 00dc9fdCopy full SHA for 00dc9fd
1 file changed
system/Database/Config.php
@@ -62,6 +62,8 @@ public static function connect($group = null, bool $getShared = true)
62
$group = (ENVIRONMENT === 'testing') ? 'tests' : $dbConfig->defaultGroup;
63
}
64
65
+ assert(is_string($group));
66
+
67
if (! isset($dbConfig->{$group})) {
68
throw new InvalidArgumentException($group . ' is not a valid database connection group.');
69
0 commit comments