From 73db7309134dd9e79d4edb49778289e4a66f1c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Fri, 20 Dec 2024 00:51:04 +0100 Subject: [PATCH] Use Str::wrap() instead of nesting Str::start() inside Str::finish() --- src/Illuminate/Mail/Mailables/Headers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Mail/Mailables/Headers.php b/src/Illuminate/Mail/Mailables/Headers.php index e91aee229f45..e2844e1b3e2e 100644 --- a/src/Illuminate/Mail/Mailables/Headers.php +++ b/src/Illuminate/Mail/Mailables/Headers.php @@ -95,7 +95,7 @@ public function text(array $text) public function referencesString(): string { return (new Collection($this->references)) - ->map(fn ($messageId) => Str::finish(Str::start($messageId, '<'), '>')) + ->map(fn ($messageId) => Str::wrap($messageId, '<', '>')) ->implode(' '); } }