| 1 | <?php |
||
| 13 | trait RenderRepeaterItemHandlerTrait |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Handle system render repeater's item action. |
||
| 17 | * |
||
| 18 | * @param Request $request |
||
| 19 | * @return JsonResponse |
||
| 20 | * @throws Throwable |
||
| 21 | */ |
||
| 22 | public function handleRenderRepeaterItem($request, $fieldName) |
||
| 41 | |||
| 42 | abstract protected function init(); |
||
| 45 | } |
||
| 46 |
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: