Fix: Remove unused sprintf() parameters

This commit is contained in:
Oskar Stark 2020-12-07 15:59:27 +01:00
parent 937c403f15
commit c0dda8bd03

View File

@ -68,7 +68,7 @@ final class DiscordTransport extends AbstractTransport
$content = $message->getSubject();
if (\strlen($content) > 2000) {
throw new LogicException(sprintf('The subject length of "%s" transport must be less than 2000 characters.', __CLASS__, ChatMessage::class, get_debug_type($message)));
throw new LogicException(sprintf('The subject length of "%s" transport must be less than 2000 characters.', __CLASS__));
}
$endpoint = sprintf('https://%s/api/webhooks/%s/%s', $this->getEndpoint(), $this->webhookId, $this->token);