From 90b583654bfc3c4e56af541a0fd8768d54c7ee2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 6 Feb 2023 21:34:46 +0100 Subject: [PATCH] Fixed inspection issues --- src/Form/Type/StructuralEntityType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }; },