Skip to content

Commit 4fa9ad1

Browse files
committed
Shorter mail subject #10724
1 parent 4df3429 commit 4fa9ad1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ parameters:
676676
message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, resource\|string\|null given\.$#'
677677
identifier: argument.type
678678
count: 2
679-
path: tests/Log/Handler/MailerFactoryTest.php
679+
path: tests/Log/Handler/MailerHandlerFactoryTest.php
680680

681681
-
682682
message: '#^Method Ecodev\\Felix\\Model\\HasOtp@anonymous/tests/Model/Traits/HasOtpTest\.php\:18\:\:getLogin\(\) never returns null so it can be removed from the return type\.$#'

src/Log/Handler/MailerHandlerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __invoke(ContainerInterface $container, $requestedName, ?array $
2929
$emailFrom = $config['email']['from'];
3030

3131
$email = new Email();
32-
$email->subject("Logs on $hostname %level_name%: %extra.login%: %message%");
32+
$email->subject("%level_name% on $hostname: %extra.login%: %message%");
3333
$email->addFrom(...(array) $emailFrom);
3434
$email->addTo(...(array) $emailsTo);
3535

0 commit comments

Comments
 (0)