From 7678a0816275f82f97b43c5a6b143e8416fa4fb2 Mon Sep 17 00:00:00 2001 From: Stakovicz Date: Tue, 19 May 2026 21:42:31 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Pr=C3=A9paration=20de=20la=20mise=20=C3=A0?= =?UTF-8?q?=20jour=20de=20PHP=20Corrige=20les=20fichiers=20de=20routing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/config/routing_dev.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/config/routing_dev.yml b/app/config/routing_dev.yml index 72a14c650..5dc13700c 100644 --- a/app/config/routing_dev.yml +++ b/app/config/routing_dev.yml @@ -1,14 +1,14 @@ _wdt: - resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" - prefix: /_wdt + resource: "@WebProfilerBundle/Resources/config/routing/wdt.php" + prefix: /_wdt _profiler: - resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" - prefix: /_profiler + resource: "@WebProfilerBundle/Resources/config/routing/profiler.php" + prefix: /_profiler _errors: - resource: "@FrameworkBundle/Resources/config/routing/errors.xml" - prefix: /_error + resource: "@FrameworkBundle/Resources/config/routing/errors.php" + prefix: /_error _main: - resource: routing.yml + resource: routing.yml From 8af0913595ca3fdb07894a7dfce0c08617342e85 Mon Sep 17 00:00:00 2001 From: Stakovicz Date: Tue, 19 May 2026 21:43:17 +0200 Subject: [PATCH 2/2] Fix deprecation: Implicitly marking parameter as nullable is deprecated --- .php-cs-fixer.php | 1 + sources/Afup/Association/Cotisations.php | 2 +- sources/Afup/Corporate/Page.php | 2 +- sources/Afup/Forum/AppelConferencier.php | 4 ++-- sources/Afup/Utils/SymfonyKernel.php | 2 +- .../AppBundle/Association/Model/CompanyMember.php | 2 +- .../Association/Model/GeneralMeetingQuestion.php | 4 ++-- .../Repository/TechletterSubscriptionsRepository.php | 4 ++-- sources/AppBundle/Association/Model/User.php | 8 ++++---- .../Compta/BankAccount/BankAccountFactory.php | 2 +- sources/AppBundle/Event/Model/Event.php | 12 ++++++------ sources/AppBundle/Event/Model/Invoice.php | 4 ++-- .../Event/Model/Repository/EventStatsRepository.php | 2 +- .../Event/Model/Repository/TalkRepository.php | 4 ++-- .../Model/Repository/TalkToSpeakersRepository.php | 2 +- .../Event/Model/Repository/TicketRepository.php | 4 ++-- sources/AppBundle/Event/Model/UserBadge.php | 4 ++-- .../GeneralMeeting/GeneralMeetingRepository.php | 2 +- sources/AppBundle/Offices/NullOfficeFinder.php | 2 +- sources/AppBundle/Offices/OfficeFinder.php | 6 +++--- sources/AppBundle/Security/GithubAuthenticator.php | 2 +- .../AppBundle/Security/TestGithubAuthenticator.php | 2 +- sources/AppBundle/Slack/MessageFactory.php | 6 +++--- sources/AppBundle/TechLetter/Model/Sending.php | 2 +- sources/AppBundle/Twig/ViewRenderer.php | 2 +- 25 files changed, 44 insertions(+), 43 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 8d1cc7ba0..2278a62de 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -34,6 +34,7 @@ 'minimum_number_of_parameters' => 2, ], 'type_declaration_spaces' => true, + 'nullable_type_declaration_for_default_null_value' => true, ]) ->setFinder($finder) ->setCacheFile(__DIR__.'/var/.php-cs-fixer.cache') diff --git a/sources/Afup/Association/Cotisations.php b/sources/Afup/Association/Cotisations.php index fa2dfa576..64f799c5c 100644 --- a/sources/Afup/Association/Cotisations.php +++ b/sources/Afup/Association/Cotisations.php @@ -632,7 +632,7 @@ public function finProchaineCotisation($cotisation = false): DateTime * @param string|null $token Token de la facture. Si null, pas de vérification * @return array */ - public function getByInvoice(string $invoiceId, string $token = null) + public function getByInvoice(string $invoiceId, ?string $token = null) { $requete = 'SELECT'; $requete .= ' * '; diff --git a/sources/Afup/Corporate/Page.php b/sources/Afup/Corporate/Page.php index 17e0c5a88..c294c5b5b 100644 --- a/sources/Afup/Corporate/Page.php +++ b/sources/Afup/Corporate/Page.php @@ -12,7 +12,7 @@ { public function __construct(private FeuilleRepository $feuilleRepository) {} - public function header($url = null, UserInterface $user = null): string + public function header($url = null, ?UserInterface $user = null): string { $url = urldecode((string) $url); $str = '