Skip to content

Commit a5d5c51

Browse files
committed
Merge branch '4.3.x' into 4.4.x
* 4.3.x: Make options check strict again Make options check strict again (#7141)
2 parents f02e965 + 049632d commit a5d5c51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Driver/PDO/PgSQL/Driver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public function connect(
5858
$disablePreparesAttr = PHP_VERSION_ID >= 80400
5959
? Pgsql::ATTR_DISABLE_PREPARES
6060
: PDO::PGSQL_ATTR_DISABLE_PREPARES;
61-
if ($driverOptions[$disablePreparesAttr] ?? true) {
61+
if (
62+
! isset($driverOptions[$disablePreparesAttr])
63+
|| $driverOptions[$disablePreparesAttr] === true
64+
) {
6265
$pdo->setAttribute($disablePreparesAttr, true);
6366
}
6467

0 commit comments

Comments
 (0)