From c8e5d0eb37ac4412cb9673fa73f51348b62774af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 4 Jul 2025 14:35:46 +0200 Subject: [PATCH] fix rector --- .../tests/Controller/TicketListApiControllerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillTicketBundle/tests/Controller/TicketListApiControllerTest.php b/src/Bundle/ChillTicketBundle/tests/Controller/TicketListApiControllerTest.php index f75ec9925..bcaf2336d 100644 --- a/src/Bundle/ChillTicketBundle/tests/Controller/TicketListApiControllerTest.php +++ b/src/Bundle/ChillTicketBundle/tests/Controller/TicketListApiControllerTest.php @@ -58,7 +58,7 @@ final class TicketListApiControllerTest extends TestCase $serializer = $this->prophesize(SerializerInterface::class); $serializer->serialize( - Argument::that(fn(Collection $collection) => $collection->getItems() === $tickets), + Argument::that(fn (Collection $collection) => $collection->getItems() === $tickets), 'json', ['groups' => 'read'] )->willReturn('{"items":[{},{}],"pagination":{}}'); @@ -96,9 +96,9 @@ final class TicketListApiControllerTest extends TestCase $ticketRepository = $this->prophesize(TicketACLAwareRepositoryInterface::class); $tickets = [new Ticket(), new Ticket()]; - $ticketRepository->countTickets(Argument::that(fn($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])))->willReturn(2); + $ticketRepository->countTickets(Argument::that(fn ($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])))->willReturn(2); $ticketRepository->findTickets( - Argument::that(fn($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])), + Argument::that(fn ($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])), 0, 10 )->willReturn($tickets); @@ -112,7 +112,7 @@ final class TicketListApiControllerTest extends TestCase $serializer = $this->prophesize(SerializerInterface::class); $serializer->serialize( - Argument::that(fn(Collection $collection) => $collection->getItems() === $tickets), + Argument::that(fn (Collection $collection) => $collection->getItems() === $tickets), 'json', ['groups' => 'read'] )->willReturn('{"items":[{},{}],"pagination":{}}');