Skip to content

Commit 5306fd5

Browse files
committed
Merge branch '5.2' into 5.3
* 5.2: Do not use static::class for final messages prevent reflection usages when classes do not exist [HttpFoundation] allow savePath of NativeFileSessionHandler to be null
2 parents 9272976 + 1e4a2ec commit 5306fd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Message/EmailMessage.php

+1-1
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

+1-1
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)