Skip to content

Commit

Permalink
UnitTestFix - DoctrineLoggerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdotcom committed Oct 14, 2024
1 parent a8b5387 commit ab109a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Debug/Collector/DoctrineLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testOutput()
$statement = $conn->prepare('SELECT *
FROM `bob`
WHERE e < :datetime');
\method_exists($statement, 'bindValue')
\class_exists('Doctrine\DBAL\ParameterType')
? $statement->bindValue(':datetime', $datetime, \Doctrine\DBAL\ParameterType::STRING)
: $statement->bindParam(':datetime', $datetime, \PDO::PARAM_STR);
\method_exists($statement, 'executeQuery')
Expand Down

0 comments on commit ab109a3

Please sign in to comment.