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:
@@ -59,7 +59,7 @@ class DocGenObjectNormalizer implements NormalizerInterface, NormalizerAwareInte
|
||||
: [];
|
||||
$attributes = array_filter(
|
||||
$metadata->getAttributesMetadata(),
|
||||
function (AttributeMetadata $a) use ($expectedGroups) {
|
||||
static function (AttributeMetadata $a) use ($expectedGroups) {
|
||||
foreach ($a->getGroups() as $g) {
|
||||
if (in_array($g, $expectedGroups, true)) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user