Fixed inspection issues

This commit is contained in:
Jan Böhmer 2023-02-06 21:34:46 +01:00
parent 66d76d40dd
commit 90b583654b

View file

@ -112,7 +112,7 @@ class StructuralEntityType extends AbstractType
return new StructuralEntityChoiceLoader($options, $this->builder, $this->em);
},
'choice_label' => function (Options $options) {
return function ($choice, $key, $value) use ($options) {
return function ($choice, $key, $value) {
return $this->choice_helper->generateChoiceLabel($choice);
};
},