From 45b9f36847be3fcadbc0bae75b684374edd64a8e Mon Sep 17 00:00:00 2001 From: othillo Date: Mon, 21 Jun 2021 09:25:38 +0200 Subject: [PATCH] fixed return type hint --- src/DbalRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DbalRepository.php b/src/DbalRepository.php index ca21188..3b6385f 100644 --- a/src/DbalRepository.php +++ b/src/DbalRepository.php @@ -18,9 +18,9 @@ use Broadway\Saga\State\RepositoryException; use Broadway\Saga\State\RepositoryInterface; use Doctrine\DBAL\Connection; -use Doctrine\DBAL\Driver\ResultStatement; use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use Doctrine\DBAL\Query\QueryBuilder; +use Doctrine\DBAL\Result; class DbalRepository implements RepositoryInterface { @@ -95,7 +95,7 @@ public function save(State $state, string $sagaId): void } } - protected function createAndExecuteQuery(Criteria $criteria, string $sagaId): ResultStatement + protected function createAndExecuteQuery(Criteria $criteria, string $sagaId): Result { /** @var QueryBuilder $queryBuilder */ $queryBuilder = $this->connection->createQueryBuilder()