Skip to content

Commit

Permalink
[BUGFIX] Cast placeholder to string (FluidTYPO3#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf authored Oct 16, 2024
1 parent b5276d1 commit ffa2dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Field/InputViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ffa2dce

Please sign in to comment.