From 204b8d9f450c292a0c1ea9180ca9285fb1718b59 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Thu, 28 Oct 2021 23:22:36 -0500 Subject: [PATCH] Fix passing null to trim --- src/ConnectionConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConnectionConfig.php b/src/ConnectionConfig.php index 3ead5f4..0fa9e40 100644 --- a/src/ConnectionConfig.php +++ b/src/ConnectionConfig.php @@ -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];