mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-21 19:37:45 +00:00
cs: Enable risky rule static_lambda.
This commit is contained in:
@@ -32,7 +32,7 @@ class JsonCustomFieldToArrayTransformer implements DataTransformerInterface
|
||||
|
||||
// @TODO: in the array_map callback, CustomField::getLabel() does not exist. What do we do here?
|
||||
$customFieldsLablels = array_map(
|
||||
function ($e) { return $e->getLabel(); },
|
||||
static function ($e) { return $e->getLabel(); },
|
||||
$customFields
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user