mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -76,9 +76,7 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
$involved = $this->getInvolved();
|
||||
$involved['period_id'] = $event->getPeriod()->getId();
|
||||
$involved['persons'] = $event->getPeriod()->getPersons()
|
||||
->map(static function (Person $p) {
|
||||
return $p->getId();
|
||||
})
|
||||
->map(static fn(Person $p) => $p->getId())
|
||||
->toArray();
|
||||
|
||||
$this->logger->notice(
|
||||
@@ -102,9 +100,7 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
|
||||
if ($event->hasPersons()) {
|
||||
$involved['persons'] = array_map(
|
||||
static function (Person $p) {
|
||||
return $p->getId();
|
||||
},
|
||||
static fn(Person $p) => $p->getId(),
|
||||
$event->getPersons()
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user