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.
$notification of type object<Illuminate\Notifications\Notification> is not a sub-type of object<Pushok\Payload>. It seems like you assume a child class of the class Illuminate\Notifications\Notification to be always present.
This check looks for parameters that are defined as one type in their type
hint or doc comment but seem to be used as a narrower type, i.e an
implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming
your parameter is of the expected type.
The call to ApnChannel::sendNotifications() has too many arguments starting with $tokens.
This check compares calls to functions or methods with their respective definitions.
If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the
check may pick up the wrong definition and report false positives. One codebase
where this has been known to happen is Wordpress.
In this case you can add the @ignorePhpDoc
annotation to the duplicate definition and it will be ignored.
Loading history...
61
}
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
protected function sendNotifications($tokens, $payload)
71
{
72
$notifications = [];
73
74
foreach ($tokens as $token) {
75
$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.