It seems like $invitation can also be of type Illuminate\Database\Eloq...elations\HasManyThrough and Illuminate\Database\Eloq...Relations\HasOneThrough and null; however, parameter $invitation of Thinktomorrow\Chief\Admi...\AcceptInvite::handle() does only seem to accept Thinktomorrow\Chief\Admin\Users\Invites\Invitation, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $invitation can also be of type Illuminate\Database\Eloq...elations\HasManyThrough and Illuminate\Database\Eloq...Relations\HasOneThrough and null; however, parameter $invitation of Thinktomorrow\Chief\Admi...on\DenyInvite::handle() does only seem to accept Thinktomorrow\Chief\Admin\Users\Invites\Invitation, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation