- Added some more info on a bad connection error

This commit is contained in:
Dev committed 2026-06-09 19:27:17 +00:00
1 parent 2a03789e7c
commit 2d86adc3e1
2 files changed
+4 -4

No files matched your search

+4
View File
@@ -27,6 +27,10 @@ class ConnectionAdapter
$connection = $this->configuration['connections'][$this->name] ?? [];
if ( false !== ( $adapterName = $connection['adapter'] ?? false ) ) {
if (is_array($adapterName)) {
throw new \InvalidArgumentException(sprintf("Given adapter (%s) name is an array, not a string.. received : %s.", $this->name, json_encode($adapterName)));
}
$this->adapter = $this->instanciateAdapter($adapterName);
}
else {