diff --git a/DependencyInjection/SwiftmailerTransportFactory.php b/DependencyInjection/SwiftmailerTransportFactory.php index dc73b68e..5ba30d08 100644 --- a/DependencyInjection/SwiftmailerTransportFactory.php +++ b/DependencyInjection/SwiftmailerTransportFactory.php @@ -100,7 +100,7 @@ public static function resolveOptions(array $options) if (isset($options['url'])) { if (false === $parts = parse_url($options['url'])) { - throw new \InvalidArgumentException(sprintf('The Swiftmailer URL "%s" is not a valid.', $options['url'])); + throw new \InvalidArgumentException(sprintf('The Swiftmailer URL "%s" is not valid.', $options['url'])); } if (isset($parts['scheme'])) { $options['transport'] = $parts['scheme'];