It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
The method toApn() does not seem to exist on object<Illuminate\Notifications\Notification>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
57
58
1
$payload = (new ApnAdapter)->adapt($message);
59
60
1
$this->sendNotifications($tokens, $payload);
61
1
}
62
63
/**
64
* Send the notification to each of the provided tokens.
65
*
66
* @param array $tokens
67
* @param \Pushok\Payload $payload
68
* @return void
69
*/
70
1
protected function sendNotifications($tokens, $payload)
71
{
72
1
$notifications = [];
73
74
1
foreach ($tokens as $token) {
75
1
$notifications[] = new PushNotification($payload, $token);
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.