Skip to content

Commit

Permalink
[BUGFIX] Add type casts in AbstractMultiValueFieldViewHelper.php (#2173)
Browse files Browse the repository at this point in the history
Because of the error message:
Uncaught TYPO3 Exception FluidTYPO3\Flux\Form\AbstractMultiValueFormField::setMinItems(): Argument #1 ($minItems) must be of type int, string given, called in /var/www/html/vendor/fluidtypo3/flux/Classes/ViewHelpers/Field/AbstractMultiValueFieldViewHelper.php on line 91
thrown in file /var/www/html/vendor/fluidtypo3/flux/Classes/Form/AbstractMultiValueFormField.php
in line 118

Co-authored-by: Andreas Kessel <[email protected]>
Co-authored-by: Claus Due <[email protected]>
  • Loading branch information
3 people authored Aug 9, 2024
1 parent 57b980f commit 555e808
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ protected static function getPreparedComponent(
$component->setEmptyOption($arguments['emptyOption']);
$component->setTranslateCsvItems((boolean) $arguments['translateCsvItems']);
$component->setValidate($arguments['validate']);
$component->setMinItems($arguments['minItems']);
$component->setMaxItems($arguments['maxItems']);
$component->setSize($arguments['size']);
$component->setMultiple($arguments['multiple']);
$component->setMinItems((integer) $arguments['minItems']);
$component->setMaxItems((integer) $arguments['maxItems']);
$component->setSize((integer) $arguments['size']);
$component->setMultiple((boolean) $arguments['multiple']);
$component->setItemListStyle($arguments['itemListStyle']);
$component->setSelectedListStyle($arguments['selectedListStyle']);
return $component;
Expand Down

0 comments on commit 555e808

Please sign in to comment.