Skip to content

Commit 9fce279

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [PasswordHasher] UserPasswordHasher only calls getSalt when method exists Do not use static::class for final messages prevent reflection usages when classes do not exist Service 'security.command.debug_firewall' is only available if symfony/console is installed [Security] Fix invalid cookie when migrating to new Security [HttpFoundation] allow savePath of NativeFileSessionHandler to be null [Security] Fix value lost in RememberMe update make the getter usable if no user identifier is set
2 parents 8720dfe + 5306fd5 commit 9fce279

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Message/EmailMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(RawMessage $message, Envelope $envelope = null)
3737
public static function fromNotification(Notification $notification, EmailRecipientInterface $recipient): self
3838
{
3939
if ('' === $recipient->getEmail()) {
40-
throw new InvalidArgumentException(sprintf('"%s" needs an email, it cannot be empty.', static::class));
40+
throw new InvalidArgumentException(sprintf('"%s" needs an email, it cannot be empty.', __CLASS__));
4141
}
4242

4343
if (!class_exists(NotificationEmail::class)) {

Message/SmsMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class SmsMessage implements MessageInterface
2727
public function __construct(string $phone, string $subject)
2828
{
2929
if ('' === $phone) {
30-
throw new InvalidArgumentException(sprintf('"%s" needs a phone number, it cannot be empty.', static::class));
30+
throw new InvalidArgumentException(sprintf('"%s" needs a phone number, it cannot be empty.', __CLASS__));
3131
}
3232

3333
$this->subject = $subject;

0 commit comments

Comments
 (0)