1 | <?php |
||
13 | class WebhookChannel |
||
14 | { |
||
15 | /** |
||
16 | * @var GuzzleHttp\ClientInterface |
||
17 | */ |
||
18 | 3 | protected $client; |
|
19 | |||
20 | 3 | /** |
|
21 | 3 | * @param GuzzleHttp\ClientInterface |
|
22 | */ |
||
23 | public function __construct(ClientInterface $client) |
||
27 | |||
28 | /** |
||
29 | * Send the given notification. |
||
30 | * |
||
31 | 3 | * @param mixed $notifiable |
|
32 | * @param \Illuminate\Notifications\Notification $notification |
||
33 | 3 | * @return void |
|
34 | * |
||
35 | * @throws \NotificationChannels\Webhook\Exceptions\CouldNotSendNotification |
||
36 | */ |
||
37 | 3 | public function send($notifiable, Notification $notification) |
|
43 | |||
44 | /** |
||
45 | 3 | * Send the notification to a single webhook |
|
46 | 1 | * |
|
47 | * @param mixed $notifiable |
||
48 | 2 | * @param \Illuminate\Notifications\Notification $notification |
|
49 | * @return void |
||
50 | * |
||
51 | * @throws \NotificationChannels\Webhook\Exceptions\CouldNotSendNotification |
||
52 | */ |
||
53 | protected function sendWebhookNotification($notifiable, Notification $notification, string $url) |
||
68 | |||
69 | /** |
||
70 | * @param mixed $notifiable |
||
71 | */ |
||
72 | protected function getUrlsForNotifiable($notifiable) |
||
76 | } |
||
77 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..