Skip to content

Commit 51134d6

Browse files
Fix typehint for ResetPassword::toMailUsing() (#50163)
1 parent 4656686 commit 51134d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Auth/Notifications/ResetPassword.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ResetPassword extends Notification
2525
/**
2626
* The callback that should be used to build the mail message.
2727
*
28-
* @var (\Closure(mixed, string): \Illuminate\Notifications\Messages\MailMessage)|null
28+
* @var (\Closure(mixed, string): \Illuminate\Notifications\Messages\MailMessage|\Illuminate\Contracts\Mail\Mailable)|null
2929
*/
3030
public static $toMailCallback;
3131

@@ -114,7 +114,7 @@ public static function createUrlUsing($callback)
114114
/**
115115
* Set a callback that should be used when building the notification mail message.
116116
*
117-
* @param \Closure(mixed, string): \Illuminate\Notifications\Messages\MailMessage $callback
117+
* @param \Closure(mixed, string): (\Illuminate\Notifications\Messages\MailMessage|\Illuminate\Contracts\Mail\Mailable) $callback
118118
* @return void
119119
*/
120120
public static function toMailUsing($callback)

0 commit comments

Comments
 (0)