1 | <?php |
||
11 | class InstallController extends Controller |
||
12 | { |
||
13 | |||
14 | public function createUser() |
||
21 | |||
22 | /** |
||
23 | * Replaces RachidLaasri\LaravelInstaller\Controllers\FinalController |
||
24 | * so that we can also create the admin user. |
||
25 | * |
||
26 | * @param InstallationRequest $request |
||
27 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
28 | * |
||
29 | */ |
||
30 | |||
31 | public function storeUser(InstallationRequest $request) |
||
42 | } |
||
43 |
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: