From 0330114b951249ad589585cb20f578c77c443be6 Mon Sep 17 00:00:00 2001 From: Thibeau Fuhrer Date: Tue, 26 Nov 2024 14:23:38 +0100 Subject: [PATCH] [FIX] UI: php 7.4 compatibility of 'properly count inputs of Field\HasDynamicInputs templates. (#8422)' --- src/UI/Implementation/Component/Input/Field/Renderer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Implementation/Component/Input/Field/Renderer.php b/src/UI/Implementation/Component/Input/Field/Renderer.php index 637fc3b07e4d..c676f3707af1 100644 --- a/src/UI/Implementation/Component/Input/Field/Renderer.php +++ b/src/UI/Implementation/Component/Input/Field/Renderer.php @@ -930,8 +930,9 @@ protected function initClientsideRenderer( /** * Counts all inputs and nested inputs of groups, without counting groups themselves. + * @param FormInput|Input $input */ - protected function countInputsWithoutGroupsRecursively(FormInput|Input $input): int + protected function countInputsWithoutGroupsRecursively($input): int { if (!($input instanceof Component\Input\Group)) { return 1;