Skip to content

Commit 22fc1ee

Browse files
committed
Leverage class name literal on object
1 parent 6c65758 commit 22fc1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/SendFailedMessageToNotifierListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function onMessageFailed(WorkerMessageFailedEvent $event)
4343
}
4444
$envelope = $event->getEnvelope();
4545
$notification = Notification::fromThrowable($throwable)->importance(Notification::IMPORTANCE_HIGH);
46-
$notification->subject(sprintf('A "%s" message has just failed: %s.', \get_class($envelope->getMessage()), $notification->getSubject()));
46+
$notification->subject(sprintf('A "%s" message has just failed: %s.', $envelope->getMessage()::class, $notification->getSubject()));
4747

4848
$this->notifier->send($notification, ...$this->notifier->getAdminRecipients());
4949
}

0 commit comments

Comments
 (0)