From 9a11e12669b48c464b78e8b238507d8c38a8d5a5 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 2 Oct 2025 16:54:11 +0200 Subject: [PATCH] Update php cs fixer to latest version 3.88.2 with fixes --- composer.json | 2 +- src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php | 4 +--- .../Doctrine/Event/TrackCreateUpdateSubscriber.php | 4 +--- src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php | 1 - .../ChillPersonBundle/Controller/PersonEditController.php | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 9d02164e1..99a0bf60b 100644 --- a/composer.json +++ b/composer.json @@ -89,7 +89,7 @@ "require-dev": { "doctrine/doctrine-fixtures-bundle": "^3.3", "fakerphp/faker": "^1.13", - "friendsofphp/php-cs-fixer": "3.65.0", + "friendsofphp/php-cs-fixer": "3.88.2", "jangregor/phpstan-prophecy": "^1.0", "nelmio/alice": "^3.8", "nikic/php-parser": "^4.15", diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php index 265d03478..9f559f27c 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php @@ -54,9 +54,7 @@ class LoadUsers extends Fixture implements OrderedFixtureInterface ], ]; - public function __construct(private readonly UserPasswordHasherInterface $passwordHasher) - { - } + public function __construct(private readonly UserPasswordHasherInterface $passwordHasher) {} public function getOrder(): int { diff --git a/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php b/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php index a3d9a6f90..67ef22b18 100644 --- a/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php +++ b/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php @@ -22,9 +22,7 @@ use Symfony\Bundle\SecurityBundle\Security; class TrackCreateUpdateSubscriber implements EventSubscriber { - public function __construct(private readonly Security $security) - { - } + public function __construct(private readonly Security $security) {} public function getSubscribedEvents(): array { diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php index c1e6c3494..17fe6a67f 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php @@ -18,7 +18,6 @@ use Symfony\Component\Form\Extension\Core\Type\FormType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\HttpFoundation\Response; use Symfony\Contracts\Translation\TranslatorInterface; -use function count; /** * Command to get the report with curl: diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonEditController.php b/src/Bundle/ChillPersonBundle/Controller/PersonEditController.php index 26f64cfd6..3db9e68e6 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonEditController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonEditController.php @@ -44,7 +44,7 @@ final readonly class PersonEditController * @ParamConverter("person", options={"id": "person_id"}) */ #[Route(path: '/{_locale}/person/{person_id}/general/edit', name: 'chill_person_general_edit')] - public function editAction(Person $person, Request $request, Session $session): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response + public function editAction(Person $person, Request $request, Session $session): RedirectResponse|Response { if (!$this->security->isGranted(PersonVoter::UPDATE, $person)) { throw new AccessDeniedHttpException('You are not allowed to edit this person.');