diff --git a/composer.json b/composer.json index a160db4..5106f01 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ }, "require-dev": { "dg/bypass-finals": "^1.3", - "doctrine/dbal": "^2.11.0|^3.0", + "doctrine/dbal": "^3.1|^4.0", "doctrine/doctrine-bundle": "^2.4.5", "friendsofphp/php-cs-fixer": "^3.0", "phpunit/phpunit": "^10", diff --git a/tests/Functional/WorkflowTest.php b/tests/Functional/WorkflowTest.php index 6617f6f..4457e54 100644 --- a/tests/Functional/WorkflowTest.php +++ b/tests/Functional/WorkflowTest.php @@ -35,7 +35,7 @@ protected function setUp(): void public function testStatusBeforeStart(): void { - self::getContainer()->get('doctrine')->getConnection()->query('DROP TABLE IF EXISTS messenger_messages'); + self::getContainer()->get('doctrine')->getConnection()->executeQuery('DROP TABLE IF EXISTS messenger_messages'); $command = $this->getCommandTester(); $command->execute([ @@ -232,7 +232,7 @@ protected function checkCountMessages(int $expected, ?string $queue, ?string $id $queryBuilder->andWhere('messenger_messages.id = :id') ->setParameter('id', $id); } - $stmnt = $queryBuilder->execute(); + $stmnt = $queryBuilder->executeQuery(); $count = (int) $stmnt->fetchOne(); if ($count === $expected || null === $timeout || time() - $begin > $timeout) {