From 6bf69766c6f76db54ccd7f7397fe7cadda633e07 Mon Sep 17 00:00:00 2001 From: Michael Telgmann Date: Fri, 8 May 2020 15:22:50 +0200 Subject: [PATCH] Extend RetryableException from Throwable interface Let RetryableException extend from the Throwable interface to prevent errors in Psalm if catching it --- lib/Doctrine/DBAL/Exception/RetryableException.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/DBAL/Exception/RetryableException.php b/lib/Doctrine/DBAL/Exception/RetryableException.php index e1ccd02ffd9..79e32519979 100644 --- a/lib/Doctrine/DBAL/Exception/RetryableException.php +++ b/lib/Doctrine/DBAL/Exception/RetryableException.php @@ -2,9 +2,13 @@ namespace Doctrine\DBAL\Exception; +use Throwable; + /** * Marker interface for all exceptions where retrying the transaction makes sense. + * + * @psalm-immutable */ -interface RetryableException +interface RetryableException extends Throwable { }