mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Enable risky rule static_lambda
.
This commit is contained in:
@@ -137,7 +137,7 @@ class CreateFieldsOnGroupCommand extends Command
|
||||
"Enter the customfieldGroup's id on which the custom fields should be added: "
|
||||
);
|
||||
$question->setNormalizer(
|
||||
function ($answer) use ($customFieldsGroups) {
|
||||
static function ($answer) use ($customFieldsGroups) {
|
||||
foreach ($customFieldsGroups as $customFieldsGroup) {
|
||||
if ($customFieldsGroup->getId() == $answer) {
|
||||
return $customFieldsGroup;
|
||||
@@ -237,7 +237,7 @@ class CreateFieldsOnGroupCommand extends Command
|
||||
|
||||
array_walk(
|
||||
$customFieldsGroups,
|
||||
function (CustomFieldsGroup $customFieldGroup, $key) use ($languages, &$rows, $customizableEntities) {
|
||||
static function (CustomFieldsGroup $customFieldGroup, $key) use ($languages, &$rows, $customizableEntities) {
|
||||
//set id and entity
|
||||
$row = [
|
||||
$customFieldGroup->getId(),
|
||||
|
Reference in New Issue
Block a user