cs: Enable risky rule static_lambda.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:43:34 +01:00
parent a9188355c5
commit 91d12c4a96
111 changed files with 212 additions and 212 deletions

View File

@@ -73,7 +73,7 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
$involved = $this->getInvolved();
$involved['period_id'] = $event->getPeriod()->getId();
$involved['persons'] = $event->getPeriod()->getPersons()
->map(function (Person $p) { return $p->getId(); })
->map(static function (Person $p) { return $p->getId(); })
->toArray();
$this->logger->notice(
@@ -97,7 +97,7 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
if ($event->hasPersons()) {
$involved['persons'] = array_map(
function (Person $p) { return $p->getId(); },
static function (Person $p) { return $p->getId(); },
$event->getPersons()
);
}