mirror of
https://github.com/danog/sql.git
synced 2024-11-30 04:29:18 +01:00
Fix passing null to trim
This commit is contained in:
parent
50389ebefd
commit
204b8d9f45
@ -42,7 +42,7 @@ abstract class ConnectionConfig
|
||||
|
||||
foreach ($params as $param) {
|
||||
/** @psalm-suppress PossiblyInvalidArgument */
|
||||
[$key, $value] = \array_map("trim", \explode("=", $param, 2) + [1 => null]);
|
||||
[$key, $value] = \array_map("trim", \explode("=", $param, 2) + [1 => ""]);
|
||||
|
||||
if (isset($keymap[$key])) {
|
||||
$key = $keymap[$key];
|
||||
|
Loading…
Reference in New Issue
Block a user