Skip to content

Commit

Permalink
DBAL Change ParameterType class to Type class
Browse files Browse the repository at this point in the history
Doctrine DBAL version 2.6 not have ParameterType class.
  • Loading branch information
Nevo committed Jul 16, 2019
1 parent 594e878 commit a44f4f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/dbal/DbalConsumerHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Exception\RetryableException;
use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Types\Type;
use Ramsey\Uuid\Uuid;

Expand Down Expand Up @@ -40,7 +39,7 @@ protected function fetchMessage(array $queues, int $redeliveryDelay): ?DbalMessa
->addOrderBy('priority', 'asc')
->addOrderBy('published_at', 'asc')
->setParameter('queues', $queues, Connection::PARAM_STR_ARRAY)
->setParameter('delayedUntil', $now, ParameterType::INTEGER)
->setParameter('delayedUntil', $now, Type::INTEGER)
->setMaxResults(1);

$update = $this->getConnection()->createQueryBuilder()
Expand Down

0 comments on commit a44f4f0

Please sign in to comment.