We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
14 | class CampaignController extends Controller |
||
15 | { |
||
16 | /** |
||
17 | * Initialize the class |
||
18 | * and set the middleware |
||
19 | */ |
||
20 | public function __construct() |
||
24 | |||
25 | /** |
||
26 | * Get all campaigns |
||
27 | * 20 queries per page |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function index() |
||
37 | |||
38 | /** |
||
39 | * Get all details of a campaign |
||
40 | * |
||
41 | * @param integer $id |
||
42 | * @return void |
||
43 | */ |
||
44 | public function show($id) |
||
73 | |||
74 | } |
||
75 |
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: