Object parameters should be type hinted

More information: https://insight.symfony.com/what-we-analyse/php.object_parameter_not_type_hinted

  1. * @param mixed $notifiable
  2. * @param \Illuminate\Notifications\Notification $notification
  3. *
  4. * @throws \NotificationChannels\Facebook\Exceptions\CouldNotCreateMessage
  5. */
  6. public function send($notifiable, Notification $notification)

    The parameter notifiable, which is an object, should be typehinted.

    Time to fix: about 1 hour
    Open Issue Permalink
    Last edited by Syed I.R
  7. {
  8. $message = $notification->toFacebook($notifiable);
  9. if (is_string($message)) {
  10. $message = FacebookMessage::create($message);
  • freekmurze

    Ignored on Mon, 15 Aug 2016 14:51:22 GMT