mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
upgrade php-cs 3.49
This commit is contained in:
@@ -244,10 +244,10 @@ final class PersonMoveEventSubscriberTest extends KernelTestCase
|
||||
}
|
||||
|
||||
private function buildSubscriber(
|
||||
\Twig\Environment $engine = null,
|
||||
NotificationPersisterInterface $notificationPersister = null,
|
||||
Security $security = null,
|
||||
TranslatorInterface $translator = null
|
||||
?\Twig\Environment $engine = null,
|
||||
?NotificationPersisterInterface $notificationPersister = null,
|
||||
?Security $security = null,
|
||||
?TranslatorInterface $translator = null
|
||||
): PersonAddressMoveEventSubscriber {
|
||||
if (null === $translator) {
|
||||
$double = $this->prophesize(TranslatorInterface::class);
|
||||
|
@@ -222,7 +222,7 @@ final class PersonControllerCreateTest extends WebTestCase
|
||||
Form &$creationForm,
|
||||
string $firstname = 'God',
|
||||
string $lastname = 'Jesus',
|
||||
\DateTime $birthdate = null
|
||||
?\DateTime $birthdate = null
|
||||
) {
|
||||
$creationForm->get(self::FIRSTNAME_INPUT)->setValue($firstname.'_'.uniqid());
|
||||
$creationForm->get(self::LASTNAME_INPUT)->setValue($lastname.'_'.uniqid());
|
||||
|
@@ -561,8 +561,8 @@ final class MembersEditorTest extends TestCase
|
||||
}
|
||||
|
||||
private function buildMembersEditorFactory(
|
||||
EventDispatcherInterface $eventDispatcher = null,
|
||||
ValidatorInterface $validator = null
|
||||
?EventDispatcherInterface $eventDispatcher = null,
|
||||
?ValidatorInterface $validator = null
|
||||
) {
|
||||
if (null === $eventDispatcher) {
|
||||
$double = $this->getProphet()->prophesize();
|
||||
|
@@ -521,7 +521,7 @@ class AccompanyingPeriodACLAwareRepositoryTest extends KernelTestCase
|
||||
/**
|
||||
* @param array<Scope> $scopes
|
||||
*/
|
||||
private function buildPeriod(Person $person, array $scopes, null|User $creator, bool $confirm): AccompanyingPeriod
|
||||
private function buildPeriod(Person $person, array $scopes, User|null $creator, bool $confirm): AccompanyingPeriod
|
||||
{
|
||||
$period = new AccompanyingPeriod();
|
||||
$period->addPerson($person);
|
||||
|
@@ -155,7 +155,7 @@ final class PersonVoterTest extends KernelTestCase
|
||||
*
|
||||
* @return \Symfony\Component\Security\Core\Authentication\Token\TokenInterface
|
||||
*/
|
||||
protected function prepareToken(array $permissions = null)
|
||||
protected function prepareToken(?array $permissions = null)
|
||||
{
|
||||
$token = $this->prophet->prophesize();
|
||||
$token
|
||||
|
@@ -237,12 +237,12 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
||||
}
|
||||
|
||||
private function buildNormalizer(
|
||||
PersonRender $personRender = null,
|
||||
RelationshipRepository $relationshipRepository = null,
|
||||
TranslatorInterface $translator = null,
|
||||
TranslatableStringHelper $translatableStringHelper = null,
|
||||
NormalizerInterface $normalizer = null,
|
||||
SummaryBudgetInterface $summaryBudget = null
|
||||
?PersonRender $personRender = null,
|
||||
?RelationshipRepository $relationshipRepository = null,
|
||||
?TranslatorInterface $translator = null,
|
||||
?TranslatableStringHelper $translatableStringHelper = null,
|
||||
?NormalizerInterface $normalizer = null,
|
||||
?SummaryBudgetInterface $summaryBudget = null
|
||||
): PersonDocGenNormalizer {
|
||||
if (null === $summaryBudget) {
|
||||
$summaryBudget = $this->prophesize(SummaryBudgetInterface::class);
|
||||
@@ -274,11 +274,11 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
||||
}
|
||||
|
||||
private function buildPersonNormalizer(
|
||||
PersonRender $personRender = null,
|
||||
RelationshipRepository $relationshipRepository = null,
|
||||
TranslatorInterface $translator = null,
|
||||
TranslatableStringHelper $translatableStringHelper = null,
|
||||
SummaryBudgetInterface $summaryBudget = null
|
||||
?PersonRender $personRender = null,
|
||||
?RelationshipRepository $relationshipRepository = null,
|
||||
?TranslatorInterface $translator = null,
|
||||
?TranslatableStringHelper $translatableStringHelper = null,
|
||||
?SummaryBudgetInterface $summaryBudget = null
|
||||
): PersonDocGenNormalizer {
|
||||
if (null === $relationshipRepository) {
|
||||
$relationshipRepository = $this->prophesize(RelationshipRepository::class);
|
||||
|
@@ -341,20 +341,20 @@ final class PersonContextTest extends KernelTestCase
|
||||
}
|
||||
|
||||
private function buildPersonContext(
|
||||
AuthorizationHelperInterface $authorizationHelper = null,
|
||||
BaseContextData $baseContextData = null,
|
||||
CenterResolverManagerInterface $centerResolverManager = null,
|
||||
DocumentCategoryRepository $documentCategoryRepository = null,
|
||||
EntityManagerInterface $em = null,
|
||||
NormalizerInterface $normalizer = null,
|
||||
ParameterBagInterface $parameterBag = null,
|
||||
ScopeRepositoryInterface $scopeRepository = null,
|
||||
Security $security = null,
|
||||
TranslatorInterface $translator = null,
|
||||
TranslatableStringHelperInterface $translatableStringHelper = null,
|
||||
ThirdPartyRender $thirdPartyRender = null,
|
||||
ThirdPartyRepository $thirdPartyRepository = null,
|
||||
ResidentialAddressRepository $residentialAddressRepository = null
|
||||
?AuthorizationHelperInterface $authorizationHelper = null,
|
||||
?BaseContextData $baseContextData = null,
|
||||
?CenterResolverManagerInterface $centerResolverManager = null,
|
||||
?DocumentCategoryRepository $documentCategoryRepository = null,
|
||||
?EntityManagerInterface $em = null,
|
||||
?NormalizerInterface $normalizer = null,
|
||||
?ParameterBagInterface $parameterBag = null,
|
||||
?ScopeRepositoryInterface $scopeRepository = null,
|
||||
?Security $security = null,
|
||||
?TranslatorInterface $translator = null,
|
||||
?TranslatableStringHelperInterface $translatableStringHelper = null,
|
||||
?ThirdPartyRender $thirdPartyRender = null,
|
||||
?ThirdPartyRepository $thirdPartyRepository = null,
|
||||
?ResidentialAddressRepository $residentialAddressRepository = null
|
||||
): PersonContext {
|
||||
if (null === $authorizationHelper) {
|
||||
$authorizationHelper = $this->prophesize(AuthorizationHelperInterface::class)->reveal();
|
||||
|
@@ -39,9 +39,9 @@ class AccompanyingPeriodWorkEvaluationGenericDocProviderTest extends KernelTestC
|
||||
* @dataProvider provideSearchArguments
|
||||
*/
|
||||
public function testBuildFetchQueryForAccompanyingPeriod(
|
||||
\DateTimeImmutable $startDate = null,
|
||||
\DateTimeImmutable $endDate = null,
|
||||
string $content = null
|
||||
?\DateTimeImmutable $startDate = null,
|
||||
?\DateTimeImmutable $endDate = null,
|
||||
?string $content = null
|
||||
): void {
|
||||
$period = $this->entityManager->createQuery('SELECT a FROM '.AccompanyingPeriod::class.' a')
|
||||
->setMaxResults(1)
|
||||
|
Reference in New Issue
Block a user