else { if (null !==
$lastMessageDecodingFailedStamp) { $io->
error('The message could not be decoded.'
);
} $io->
writeln(' Re-run command with <info>-vv</info> to see more message & error details.'
);
} } protected function printPendingMessagesMessage(ReceiverInterface
$receiver, SymfonyStyle
$io): void
{ if ($receiver instanceof MessageCountAwareInterface
) { if (1 ===
$receiver->
getMessageCount()) { $io->
writeln('There is <comment>1</comment> message pending in the failure transport.'
);
} else { $io->
writeln(sprintf('There are <comment>%d</comment> messages pending in the failure transport.',
$receiver->
getMessageCount()));
} } } protected function getReceiver(string
$name = null
): ReceiverInterface
{ if (null ===
$name ??=
$this->globalFailureReceiverName
) { throw new InvalidArgumentException(sprintf('No default failure transport is defined. Available transports are: "%s".',
implode('", "',
array_keys($this->failureTransports->
getProvidedServices()))));
}