mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -239,9 +239,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
$this->personsIdsCache = array_merge(
|
||||
$this->personsIdsCache,
|
||||
$event->getParticipations()->map(
|
||||
static function ($p) {
|
||||
return $p->getPerson()->getId();
|
||||
}
|
||||
static fn($p) => $p->getPerson()->getId()
|
||||
)
|
||||
->toArray()
|
||||
);
|
||||
@@ -305,9 +303,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
$event = $this->getRandomEventWithMultipleParticipations();
|
||||
|
||||
$persons_id = implode(',', $event->getParticipations()->map(
|
||||
static function ($p) {
|
||||
return $p->getPerson()->getId();
|
||||
}
|
||||
static fn($p) => $p->getPerson()->getId()
|
||||
)->toArray());
|
||||
|
||||
$crawler = $this->client->request(
|
||||
@@ -333,9 +329,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
$nbParticipations = $event->getParticipations()->count();
|
||||
// get the persons_id participating on this event
|
||||
$persons_id = $event->getParticipations()->map(
|
||||
static function ($p) {
|
||||
return $p->getPerson()->getId();
|
||||
}
|
||||
static fn($p) => $p->getPerson()->getId()
|
||||
)->toArray();
|
||||
// exclude the existing persons_ids from the new person
|
||||
$this->personsIdsCache = array_merge($this->personsIdsCache, $persons_id);
|
||||
@@ -464,9 +458,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
|
||||
$circles = $this->em->getRepository(\Chill\MainBundle\Entity\Scope::class)
|
||||
->findAll();
|
||||
array_filter($circles, static function ($circle) use ($circleName) {
|
||||
return in_array($circleName, $circle->getName(), true);
|
||||
});
|
||||
array_filter($circles, static fn($circle) => in_array($circleName, $circle->getName(), true));
|
||||
$circle = $circles[0];
|
||||
|
||||
$events = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)
|
||||
|
Reference in New Issue
Block a user