Skip to content

Commit 03be6b8

Browse files
committed
Make options check strict again
1 parent 3e46b11 commit 03be6b8

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
@@ -50,7 +50,10 @@ public function connect(
5050
$disablePreparesAttr = PHP_VERSION_ID >= 80400
5151
? Pgsql::ATTR_DISABLE_PREPARES
5252
: PDO::PGSQL_ATTR_DISABLE_PREPARES;
53-
if ($driverOptions[$disablePreparesAttr] ?? true) {
53+
if (
54+
! isset($driverOptions[$disablePreparesAttr])
55+
|| $driverOptions[$disablePreparesAttr] === true
56+
) {
5457
$pdo->setAttribute($disablePreparesAttr, true);
5558
}
5659

0 commit comments

Comments
 (0)