diff --git a/src/Form/Type/Helper/StructuralEntityChoiceHelper.php b/src/Form/Type/Helper/StructuralEntityChoiceHelper.php index a59befd5..db25e6da 100644 --- a/src/Form/Type/Helper/StructuralEntityChoiceHelper.php +++ b/src/Form/Type/Helper/StructuralEntityChoiceHelper.php @@ -146,7 +146,7 @@ class StructuralEntityChoiceHelper } /** - * @param AbstractStructuralDBElement|null $element + * @param AbstractStructuralDBElement $element * @return string|null */ public function generateGroupBy(AbstractStructuralDBElement $element): ?string diff --git a/src/Form/Type/StructuralEntityType.php b/src/Form/Type/StructuralEntityType.php index b2c5195b..95903ccd 100644 --- a/src/Form/Type/StructuralEntityType.php +++ b/src/Form/Type/StructuralEntityType.php @@ -113,7 +113,7 @@ class StructuralEntityType extends AbstractType }, 'choice_label' => function (Options $options) { return function ($choice, $key, $value) use ($options) { - return $this->choice_helper->generateChoiceLabel($choice, $options); + return $this->choice_helper->generateChoiceLabel($choice); }; }, 'choice_attr' => function (Options $options) {