Skip to content

Commit 5666795

Browse files
W0rmasergeyklay
authored andcommitted
Call isBinary() only if parameter is a string
1 parent b7c45db commit 5666795

File tree

1 file changed

+1
-1
lines changed
  • src/Codeception/Lib/Driver

1 file changed

+1
-1
lines changed

src/Codeception/Lib/Driver/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function executeQuery($query, array $params): PDOStatement
296296
$type = PDO::PARAM_BOOL;
297297
} elseif (is_int($param)) {
298298
$type = PDO::PARAM_INT;
299-
} elseif ($this->isBinary($param)) {
299+
} elseif (is_string($param) && $this->isBinary($param)) {
300300
$type = PDO::PARAM_LOB;
301301
} else {
302302
$type = PDO::PARAM_STR;

0 commit comments

Comments
 (0)