| 1 | <?php |
||
| 11 | abstract class FlareController extends BaseController |
||
| 12 | { |
||
| 13 | use DispatchesJobs, ValidatesRequests; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * AdminManager. |
||
| 17 | * |
||
| 18 | * @var AdminManager |
||
| 19 | */ |
||
| 20 | protected $adminManager; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * __construct. |
||
| 24 | * |
||
| 25 | * @param AdminManager $adminManager |
||
| 26 | */ |
||
| 27 | public function __construct(AdminManager $adminManager) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Method is called when the appropriate controller |
||
| 36 | * method is unable to be found or called. |
||
| 37 | * |
||
| 38 | * @param array $parameters |
||
| 39 | * |
||
| 40 | * @return |
||
| 41 | */ |
||
| 42 | public function missingMethod($parameters = array()) |
||
| 46 | } |
||
| 47 |
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: