/** @var ErrorDetailsStamp|null $lastErrorDetailsStamp */
$lastErrorDetailsStamp =
$envelope->
last(ErrorDetailsStamp::
class);
$rows[] =
[ $this->
getMessageId($envelope),
$currentClassName,
null ===
$lastRedeliveryStamp ? '' :
$lastRedeliveryStamp->
getRedeliveredAt()->
format('Y-m-d H:i:s'
),
$lastErrorDetailsStamp?->
getExceptionMessage() ?? '',
];
} } finally { $this->phpSerializer?->
rejectPhpIncompleteClass();
} $rowsCount = \
count($rows);
if (0 ===
$rowsCount) { $io->
success('No failed messages were found.'
);
return;
} $io->
table(['Id', 'Class', 'Failed at', 'Error'
],
$rows);