Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Improves Illuminate\Mail\Mailables\Envelope docblock #50448

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/Illuminate/Mail/Mailables/Envelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ class Envelope
* Create a new message envelope instance.
*
* @param \Illuminate\Mail\Mailables\Address|string|null $from
* @param array $to
* @param array $cc
* @param array $bcc
* @param array $replyTo
* @param array<int, \Illuminate\Mail\Mailables\Address|string> $to
* @param array<int, \Illuminate\Mail\Mailables\Address|string> $cc
* @param array<int, \Illuminate\Mail\Mailables\Address|string> $bcc
* @param array<int, \Illuminate\Mail\Mailables\Address|string> $replyTo
* @param string|null $subject
* @param array $tags
* @param array $metadata
Expand All @@ -105,8 +105,8 @@ public function __construct(Address|string $from = null, $to = [], $cc = [], $bc
/**
* Normalize the given array of addresses.
*
* @param array $addresses
* @return array
* @param array<int, \Illuminate\Mail\Mailables\Address|string> $addresses
* @return array<int, \Illuminate\Mail\Mailables\Address>
*/
protected function normalizeAddresses($addresses)
{
Expand All @@ -132,7 +132,7 @@ public function from(Address|string $address, $name = null)
/**
* Add a "to" recipient to the message envelope.
*
* @param \Illuminate\Mail\Mailables\Address|array|string $address
* @param \Illuminate\Mail\Mailables\Address|array<int, \Illuminate\Mail\Mailables\Address|string>|string $address
* @param string|null $name
* @return $this
*/
Expand All @@ -148,7 +148,7 @@ public function to(Address|array|string $address, $name = null)
/**
* Add a "cc" recipient to the message envelope.
*
* @param \Illuminate\Mail\Mailables\Address|array|string $address
* @param \Illuminate\Mail\Mailables\Address|array<int, \Illuminate\Mail\Mailables\Address|string>|string $address
* @param string|null $name
* @return $this
*/
Expand All @@ -164,7 +164,7 @@ public function cc(Address|array|string $address, $name = null)
/**
* Add a "bcc" recipient to the message envelope.
*
* @param \Illuminate\Mail\Mailables\Address|array|string $address
* @param \Illuminate\Mail\Mailables\Address|array<int, \Illuminate\Mail\Mailables\Address|string>|string $address
* @param string|null $name
* @return $this
*/
Expand All @@ -180,7 +180,7 @@ public function bcc(Address|array|string $address, $name = null)
/**
* Add a "reply to" recipient to the message envelope.
*
* @param \Illuminate\Mail\Mailables\Address|array|string $address
* @param \Illuminate\Mail\Mailables\Address|array<int, \Illuminate\Mail\Mailables\Address|string>|string $address
* @param string|null $name
* @return $this
*/
Expand Down
Loading