1 | <?php |
||
12 | final class JetSmsChannel |
||
13 | { |
||
14 | /** |
||
15 | * Send the given notification. |
||
16 | * |
||
17 | * @param mixed $notifiable |
||
18 | * @param \Illuminate\Notifications\Notification $notification |
||
19 | * @throws \NotificationChannels\JetSms\Exceptions\CouldNotSendNotification |
||
20 | * @return void |
||
21 | */ |
||
22 | 2 | public function send($notifiable, Notification $notification) |
|
40 | } |
||
41 |
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: