Skip to content

Commit 0fba8ba

Browse files
fjahnsimonschaufi
authored andcommitted
Make sure return type is in sync with overriden implementation
The return type must not be typechecked because this method actually can also return int if a `Illuminate\Contracts\Mail\Mailable` that implements `Illuminate\Contracts\Queue\ShouldQueue` is passed to it.
1 parent ece7738 commit 0fba8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Mailer extends \Illuminate\Mail\Mailer
1919
* @param \Closure|string|null $callback
2020
* @return SentMessage|null
2121
*/
22-
public function send($view, array $data = [], $callback = null): ?SentMessage
22+
public function send($view, array $data = [], $callback = null)
2323
{
2424
if ($view instanceof MailableContract) {
2525
return $this->sendMailable($view);

0 commit comments

Comments
 (0)