From ffa2dce6a586cee367d5ad6c2d6b3660c42826b8 Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:58:56 +0200 Subject: [PATCH] [BUGFIX] Cast placeholder to string (#2182) Close: https://github.com/FluidTYPO3/flux/issues/2181 --- Classes/ViewHelpers/Field/InputViewHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ViewHelpers/Field/InputViewHelper.php b/Classes/ViewHelpers/Field/InputViewHelper.php index 66607059f..a25d48274 100755 --- a/Classes/ViewHelpers/Field/InputViewHelper.php +++ b/Classes/ViewHelpers/Field/InputViewHelper.php @@ -47,7 +47,7 @@ public static function getComponent(RenderingContextInterface $renderingContext, $input->setMaxCharacters($arguments['maxCharacters']); $input->setMinimum($arguments['minimum']); $input->setMaximum($arguments['maximum']); - $input->setPlaceholder($arguments['placeholder']); + $input->setPlaceholder(is_scalar($arguments['placeholder']) ? (string) $arguments['placeholder'] : null); $input->setSize($arguments['size']); return $input; }