Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 60878db

Browse files
committed
Add is_array check for empty extra options.
1 parent bed0146 commit 60878db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Adapter/Driver/Pgsql/Pgsql.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ public function __construct(
6161
$connection = new Connection($connection);
6262
}
6363

64-
$this->options = array_merge($this->options, $options);
64+
if (is_array($options)) {
65+
$this->options = array_merge($this->options, $options);
66+
}
6567
$this->registerConnection($connection);
6668
$this->registerStatementPrototype(($statementPrototype) ?: new Statement());
6769
$this->registerResultPrototype(($resultPrototype) ?: new Result());

0 commit comments

Comments
 (0)