diff --git a/src/Symfony/Component/Messenger/CHANGELOG.md b/src/Symfony/Component/Messenger/CHANGELOG.md index 6af188cbb100b..eb35afe06c0c9 100644 --- a/src/Symfony/Component/Messenger/CHANGELOG.md +++ b/src/Symfony/Component/Messenger/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG 7.2 --- + * Add `$previous` to the exception output at the `messenger:failed:show` command * `WrappedExceptionsInterface` now extends PHP's `Throwable` interface * Add `#[AsMessage]` attribute with `$transport` parameter for message routing * Add `--format` option to the `messenger:stats` command diff --git a/src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php b/src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php index 3428cc0de415b..077f19425f901 100644 --- a/src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php +++ b/src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php @@ -182,6 +182,7 @@ private function createCloner(): ?ClonerInterface Caster::PREFIX_VIRTUAL.'file' => $flattenException->getFile(), Caster::PREFIX_VIRTUAL.'line' => $flattenException->getLine(), Caster::PREFIX_VIRTUAL.'trace' => new TraceStub($flattenException->getTrace()), + Caster::PREFIX_VIRTUAL.'previous' => $flattenException->getPrevious(), ]; }]);