From 8f74256d181141d83649e9bee5caf34328feb3c8 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 23 Jan 2023 14:36:51 +0100 Subject: [PATCH] Remove full DSNs from exception messages --- Transport/TransportFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transport/TransportFactory.php b/Transport/TransportFactory.php index 474dd6fe..a6fa16ec 100644 --- a/Transport/TransportFactory.php +++ b/Transport/TransportFactory.php @@ -51,7 +51,7 @@ public function createTransport(string $dsn, array $options, SerializerInterface $packageSuggestion = ' Run "composer require symfony/beanstalkd-messenger" to install Beanstalkd transport.'; } - throw new InvalidArgumentException(sprintf('No transport supports the given Messenger DSN "%s".%s.', $dsn, $packageSuggestion)); + throw new InvalidArgumentException('No transport supports the given Messenger DSN.'.$packageSuggestion); } public function supports(string $dsn, array $options): bool