1 | <?php |
||
10 | class PusherChannel |
||
11 | { |
||
12 | /** |
||
13 | * @var \Pusher |
||
14 | */ |
||
15 | protected $pusher; |
||
16 | |||
17 | /** |
||
18 | * @var \Illuminate\Events\Dispatcher |
||
19 | */ |
||
20 | private $events; |
||
21 | |||
22 | /** |
||
23 | * @param \Pusher $pusher |
||
24 | */ |
||
25 | 2 | public function __construct(Pusher $pusher, Dispatcher $events) |
|
30 | |||
31 | /** |
||
32 | * Send the given notification. |
||
33 | * |
||
34 | * @param mixed $notifiable |
||
35 | * @param \Illuminate\Notifications\Notification $notification |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | 2 | public function send($notifiable, Notification $notification) |
|
56 | |||
57 | /** |
||
58 | * Get the interest name for the notifiable. |
||
59 | * |
||
60 | * @param $notifiable |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function interestName($notifiable) |
||
70 | } |
||
71 |
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: