Skip to content

Commit 4fed3fe

Browse files
author
Robin Chalas
committed
[Messenger] Fix incorrect error when symfony/serializer is missing
1 parent a844195 commit 4fed3fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/Serialization/Serializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(SymfonySerializerInterface $serializer = null, strin
4848
public static function create(): self
4949
{
5050
if (!class_exists(SymfonySerializer::class)) {
51-
throw new LogicException(sprintf('The default Messenger Serializer requires Symfony\'s Serializer component. Try running "composer require symfony/serializer".'));
51+
throw new LogicException(sprintf('The "%s" class requires Symfony\'s Serializer component. Try running "composer require symfony/serializer" or use "%s" instead.', __CLASS__, PhpSerializer::class));
5252
}
5353

5454
$encoders = [new XmlEncoder(), new JsonEncoder()];

0 commit comments

Comments
 (0)