Fix passing null to trim

This commit is contained in:
Aaron Piotrowski 2021-10-28 23:22:36 -05:00
parent 50389ebefd
commit 204b8d9f45
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -42,7 +42,7 @@ abstract class ConnectionConfig
foreach ($params as $param) { foreach ($params as $param) {
/** @psalm-suppress PossiblyInvalidArgument */ /** @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])) { if (isset($keymap[$key])) {
$key = $keymap[$key]; $key = $keymap[$key];