We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
11 | class InvitationRequestsController extends Controller |
||
12 | { |
||
13 | /** |
||
14 | * Create an invite when user requests from API. |
||
15 | * |
||
16 | * @param UserInvitationRequest $request |
||
17 | * @return \Illuminate\Http\JsonResponse |
||
18 | */ |
||
19 | 1 | public function createInvitation(Request $request) |
|
48 | |||
49 | /** |
||
50 | * Check if User was invited before. |
||
51 | * |
||
52 | * @param Request $data |
||
53 | * @return void |
||
54 | */ |
||
55 | public function checkInvitation(Request $data) |
||
57 | } |
||
58 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: