mirror of
https://github.com/danog/sql.git
synced 2024-11-26 20:15:08 +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) {
|
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];
|
||||||
|
Loading…
Reference in New Issue
Block a user