From 98757c48d1a61a8b81a9b0aef3bda7c6bef94243 Mon Sep 17 00:00:00 2001 From: Matthieu Marcillaud <marcimat@rezo.net> Date: Mon, 1 Apr 2024 12:15:41 +0200 Subject: [PATCH] chore: Typage sur `joli_repertoire()` Refs: #5809 --- ecrire/bootstrap/inc/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/bootstrap/inc/utils.php b/ecrire/bootstrap/inc/utils.php index 7968e51faf..54c4571ff2 100644 --- a/ecrire/bootstrap/inc/utils.php +++ b/ecrire/bootstrap/inc/utils.php @@ -21,7 +21,7 @@ function test_plugin_actif($plugin) { * @param string $rep Chemin d’un répertoire * @return string */ -function joli_repertoire($rep) { +function joli_repertoire(?string $rep): string { if ($rep === '' || $rep === null) { return ''; } -- GitLab