Skip to content

Commit

Permalink
[10.x] Improves Illuminate\Mail\Mailables\Envelope docblock (#50448)
Browse files Browse the repository at this point in the history
fixes #50430

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Mar 11, 2024
1 parent 3c3d6a6 commit a518ef6
Showing 1 changed file with 10 additions and 10 deletions.
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

0 comments on commit a518ef6

Please sign in to comment.