Fixed phpstan issues

This commit is contained in:
Jan Böhmer 2023-02-06 21:06:26 +01:00
parent 1835669fde
commit aeddf03d98
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ class StructuralEntityChoiceHelper
} }
/** /**
* @param AbstractStructuralDBElement|null $element * @param AbstractStructuralDBElement $element
* @return string|null * @return string|null
*/ */
public function generateGroupBy(AbstractStructuralDBElement $element): ?string public function generateGroupBy(AbstractStructuralDBElement $element): ?string

View file

@ -113,7 +113,7 @@ class StructuralEntityType extends AbstractType
}, },
'choice_label' => function (Options $options) { 'choice_label' => function (Options $options) {
return function ($choice, $key, $value) use ($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) { 'choice_attr' => function (Options $options) {