diff --git a/lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php b/lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php index 3537b786ace..c53720063d4 100644 --- a/lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php +++ b/lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php @@ -7,6 +7,7 @@ use BadMethodCallException; use Doctrine\Common\Collections\Criteria; use Doctrine\DBAL\DBALException; +use Doctrine\DBAL\Exception; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\PersistentCollection; use Doctrine\ORM\Persisters\SqlValueVisitor; @@ -756,6 +757,7 @@ private function getOrderingSql(Criteria $criteria, ClassMetadata $targetClass): /** * @throws DBALException + * @throws Exception */ private function getLimitSql(Criteria $criteria): string { diff --git a/psalm.xml b/psalm.xml index a236e670f74..1de2f784bad 100644 --- a/psalm.xml +++ b/psalm.xml @@ -45,7 +45,17 @@ + + + + + + + + + +