Skip to content

Commit

Permalink
Use Str::wrap() instead of nesting Str::start() inside Str::finish()
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Dec 19, 2024
1 parent 5d81b45 commit 73db730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/Mailables/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ');
}
}

0 comments on commit 73db730

Please sign in to comment.