Skip to content

Commit 5283e14

Browse files
authored
Fix type in docs (#9994)
1 parent 18be6d2 commit 5283e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/reference/query-builder.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Doctrine\DBAL\ParameterType::* or a DBAL Type name for conversion.
268268
use Doctrine\DBAL\Types\Types;
269269
270270
// prevents attempt to load metadata for date time class, improving performance
271-
$qb->setParameter('date', new \DateTimeImmutable(), Types::DATE_IMMUTABLE)
271+
$qb->setParameter('date', new \DateTimeImmutable(), Types::DATETIME_IMMUTABLE)
272272
273273
If you've got several parameters to bind to your query, you can
274274
also use setParameters() instead of setParameter() with the

0 commit comments

Comments
 (0)