| 1 | <?php namespace nyx\notify\transports; |
||
| 18 | class Mail implements interfaces\Transport |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var mail\interfaces\Mailer The Mailer in use for sending out Messages. |
||
| 22 | */ |
||
| 23 | protected $mailer; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Creates a new Mail Transport instance. |
||
| 27 | * |
||
| 28 | * @param mail\interfaces\Mailer $mailer The Mailer to use for sending out Messages. |
||
| 29 | */ |
||
| 30 | public function __construct(mail\interfaces\Mailer $mailer) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritDoc} |
||
| 37 | */ |
||
| 38 | public function send(interfaces\Notifiable $notifiable, interfaces\Notification $notification) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritDoc} |
||
| 61 | */ |
||
| 62 | public function supports(interfaces\Notification $notification) : bool |
||
| 66 | } |
||
| 67 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: