From becb2468a727ceb01f770830a3e22ff85b5e26ff Mon Sep 17 00:00:00 2001 From: othillo Date: Mon, 21 Jun 2021 09:27:25 +0200 Subject: [PATCH] replaced deprecated method --- phpstan-baseline.neon | 7 ------- phpstan.neon | 3 --- src/DbalRepository.php | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 phpstan-baseline.neon diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon deleted file mode 100644 index 439ae17..0000000 --- a/phpstan-baseline.neon +++ /dev/null @@ -1,7 +0,0 @@ -parameters: - ignoreErrors: - - - message: "#^Method Broadway\\\\Saga\\\\State\\\\Dbal\\\\DbalRepository\\:\\:createAndExecuteQuery\\(\\) should return Doctrine\\\\DBAL\\\\Driver\\\\ResultStatement but returns Doctrine\\\\DBAL\\\\ForwardCompatibility\\\\DriverStatement\\|int\\.$#" - count: 1 - path: src/DbalRepository.php - diff --git a/phpstan.neon b/phpstan.neon index be24efd..5a95ad6 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,2 @@ -includes: - - phpstan-baseline.neon - parameters: checkMissingIterableValueType: false diff --git a/src/DbalRepository.php b/src/DbalRepository.php index 3b6385f..808bd00 100644 --- a/src/DbalRepository.php +++ b/src/DbalRepository.php @@ -109,6 +109,6 @@ protected function createAndExecuteQuery(Criteria $criteria, string $sagaId): Re $queryBuilder->setParameter(sprintf('%s', $key), $value); } - return $queryBuilder->execute(); + return $queryBuilder->executeQuery(); } }