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