From aeddf03d9854f96372e6cc308adc88b21cd112bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 6 Feb 2023 21:06:26 +0100 Subject: [PATCH] Fixed phpstan issues --- src/Form/Type/Helper/StructuralEntityChoiceHelper.php | 2 +- src/Form/Type/StructuralEntityType.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {