diff --git a/src/Form/Type/StructuralEntityType.php b/src/Form/Type/StructuralEntityType.php index 95903ccd..9c65a7ef 100644 --- a/src/Form/Type/StructuralEntityType.php +++ b/src/Form/Type/StructuralEntityType.php @@ -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); }; },