Skip to content

Commit e28a824

Browse files
authored
Merge pull request #126 from tyrsson:fix-pdo-statement-bind-from-parameter-container
Replaces removed handling of php bool -> pdo bool type.
2 parents ab014c3 + 632f2f3 commit e28a824

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Adapter/Driver/Pdo/Statement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ protected function bindParametersFromContainer(): void
217217
} else {
218218
$type = match (true) {
219219
is_int($value) => PDO::PARAM_INT,
220+
$value === false, $value === true => PDO::PARAM_BOOL,
220221
$value === null => PDO::PARAM_NULL,
221222
default => PDO::PARAM_STR,
222223
};

0 commit comments

Comments
 (0)