1 | <?php |
||
8 | class ModuleAdminController extends FlareController |
||
9 | { |
||
10 | /** |
||
11 | * Admin Instance. |
||
12 | * |
||
13 | * @var |
||
14 | */ |
||
15 | protected $admin; |
||
16 | |||
17 | /** |
||
18 | * __construct. |
||
19 | * |
||
20 | * @param AdminManager $adminManager |
||
21 | */ |
||
22 | public function __construct(AdminManager $adminManager) |
||
33 | |||
34 | /** |
||
35 | * Index page for Module. |
||
36 | * |
||
37 | * @return \Illuminate\Http\Response |
||
38 | */ |
||
39 | public function getIndex() |
||
43 | |||
44 | /** |
||
45 | * Method is called when the appropriate controller |
||
46 | * method is unable to be found or called. |
||
47 | * |
||
48 | * @param array $parameters |
||
49 | * |
||
50 | * @return |
||
51 | */ |
||
52 | public function missingMethod($parameters = array()) |
||
56 | } |
||
57 |
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: