1 | <?php namespace Arcanesoft\Core\Http\Middleware; |
||
12 | class SaveSettings extends Middleware |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Main Methods |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Handle the request. |
||
21 | * |
||
22 | * @param \Illuminate\Http\Request $request |
||
23 | * @param \Closure $next |
||
24 | * |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public function handle($request, Closure $next) |
||
31 | |||
32 | /** |
||
33 | * Terminate the request. |
||
34 | */ |
||
35 | public function terminate() |
||
39 | } |
||
40 |
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: