1 | <?php |
||
9 | class PusherChannel |
||
10 | { |
||
11 | /** @var Pusher */ |
||
12 | protected $pusher; |
||
13 | |||
14 | /** |
||
15 | * @param \Pusher $pusher |
||
16 | */ |
||
17 | 1 | public function __construct(Pusher $pusher) |
|
21 | |||
22 | /** |
||
23 | * Send the given notification. |
||
24 | * |
||
25 | * @param mixed $notifiable |
||
26 | * @param \Illuminate\Notifications\Notification $notification |
||
27 | * |
||
28 | * @return void |
||
29 | * @throws \NotificationChannels\PusherPushNotifications\Exceptions\CouldNotSendNotification |
||
30 | */ |
||
31 | 1 | public function send($notifiable, Notification $notification) |
|
46 | |||
47 | /** |
||
48 | * Get the interest name for the notifiable. |
||
49 | * |
||
50 | * @param $notifiable |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | protected function interestName($notifiable) |
||
60 | } |
||
61 |
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: