diff --git a/ecrire/inc/flock.php b/ecrire/inc/flock.php
index 72fd99e92726c4d9e651a4d5ea1b1492aef200fd..43a9cb205408b65ff1d14eb7552be4073045b402 100644
--- a/ecrire/inc/flock.php
+++ b/ecrire/inc/flock.php
@@ -611,7 +611,7 @@ function supprimer_repertoire($dir) {
  * @return string
  *     Chemin du répertoire créé.
  **/
-function sous_repertoire($base, $subdir = '', $nobase = false, $tantpis = false) {
+function sous_repertoire($base, $subdir = '', $nobase = false, $tantpis = false): string {
 	static $dirs = [];
 
 	$base = str_replace('//', '/', $base);
@@ -658,6 +658,7 @@ function sous_repertoire($base, $subdir = '', $nobase = false, $tantpis = false)
 	if ($tantpis) {
 		return '';
 	}
+	// FIXME: throw an Exception…
 	if (!_DIR_RESTREINT) {
 		$base = preg_replace(',^' . _DIR_RACINE . ',', '', $base);
 	}
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 2528b1e526826a9606f3c8d6ceed9ff5b60821cf..9aa9e021b5cfb08f2582c20b4db794ddb9c17349 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -5,11 +5,6 @@ parameters:
 			count: 1
 			path: ecrire/inc/filtres.php
 
-		-
-			message: "#^Function sous_repertoire\\(\\) should return string but return statement is missing\\.$#"
-			count: 1
-			path: ecrire/inc/flock.php
-
 		-
 			message: "#^Function cache_unlock not found\\.$#"
 			count: 1