diff --git a/src/Bundle/ChillTicketBundle/tests/Service/Import/ImportMotivesFromDirectoryTest.php b/src/Bundle/ChillTicketBundle/tests/Service/Import/ImportMotivesFromDirectoryTest.php index 0553901b0..b86d471a8 100644 --- a/src/Bundle/ChillTicketBundle/tests/Service/Import/ImportMotivesFromDirectoryTest.php +++ b/src/Bundle/ChillTicketBundle/tests/Service/Import/ImportMotivesFromDirectoryTest.php @@ -57,7 +57,7 @@ YAML; $emProphecy = $this->prophesize(EntityManagerInterface::class); // persist should be called for StoredObject and Motive at least once $emProphecy->persist(Argument::type(StoredObject::class))->shouldBeCalled(); - $emProphecy->persist(Argument::that(fn($arg) => + $emProphecy->persist(Argument::that(fn ($arg) => // Motive class is in another namespace; just check it's an object with setLabel method \is_object($arg) && method_exists($arg, 'setLabel')))->shouldBeCalled(); $emProphecy->flush()->shouldBeCalled();