Skip to content

Commit

Permalink
Make sure return type is in sync with overriden implementation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fjahn authored and simonschaufi committed May 16, 2024
1 parent ece7738 commit 0fba8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Mailer extends \Illuminate\Mail\Mailer
* @param \Closure|string|null $callback
* @return SentMessage|null
*/
public function send($view, array $data = [], $callback = null): ?SentMessage
public function send($view, array $data = [], $callback = null)
{
if ($view instanceof MailableContract) {
return $this->sendMailable($view);
Expand Down

0 comments on commit 0fba8ba

Please sign in to comment.