8000 minor #31622 [Messenger] Fix incorrect error message when symfony/ser… · symfony/symfony@74225d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74225d7

Browse files
committed
minor #31622 [Messenger] Fix incorrect error message when symfony/serializer is missing (chalasr)
This PR was merged into the 4.3 branch. Discussion ---------- [Messenger] Fix incorrect error message when symfony/serializer is missing | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yesish | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a It's not the default serializer anymore. Commits ------- 4c83f11 [Messenger] Fix incorrect error when symfony/serializer is missing
2 parents 6aacfea + 4c83f11 commit 74225d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/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)
0