1 | <?php |
||
10 | class Tab extends Facade |
||
11 | { |
||
12 | /** |
||
13 | * Get the tab headers. |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | public static function headers(string $service, Model $entity) |
||
23 | |||
24 | /** |
||
25 | * Get the tab panels. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public static function panels(string $service, Model $entity) |
||
35 | } |
||
36 |
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: