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/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 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 = '