Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb64c69

Browse files
authored
Apply suggestions from@nicolas-grekas
1 parent2a59314 commitfb64c69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Notifier/Bridge/Discord/DiscordTransport.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class DiscordTransport extends AbstractTransport
2929
{
3030
protectedconstHOST ='discord.com';
3131

32-
privateconstMAX_SUBJECT_LENGTH =2000;
32+
privateconstSUBJECT_LIMIT =2000;
3333

3434
private$token;
3535
private$webhookId;
@@ -67,7 +67,7 @@ protected function doSend(MessageInterface $message): SentMessage
6767

6868
$content =$message->getSubject();
6969

70-
if (mb_strlen($content) >self::MAX_SUBJECT_LENGTH) {
70+
if (mb_strlen($content,'UTF-8') >self::SUBJECT_LIMIT) {
7171
thrownewLogicException('The subject length of a Discord message must not exceed 2000 characters.');
7272
}
7373

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp