From 46b1b0d43a3157882efa316fc9c10be549723a50 Mon Sep 17 00:00:00 2001
From: Matthieu Marcillaud <marcimat@rezo.net>
Date: Sat, 19 Feb 2022 23:09:24 +0100
Subject: [PATCH] =?UTF-8?q?Phpdoc=20+=20correction=20d=E2=80=99analyse=20s?=
 =?UTF-8?q?tatique?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc/filtres.php        | 6 +++---
 ecrire/inc/filtres_ecrire.php | 4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php
index 031df18bbb..3404090596 100644
--- a/ecrire/inc/filtres.php
+++ b/ecrire/inc/filtres.php
@@ -209,14 +209,14 @@ function spip_version() {
  * @global bool $spip_header_silencieux permet de rendre le header minimal pour raisons de securité
  *
  * @param string $version
- * @return void
+ * @return string
  */
-function header_silencieux($version) {
+function header_silencieux($version): string {
 	if (isset($GLOBALS['spip_header_silencieux']) && (bool) $GLOBALS['spip_header_silencieux']) {
 		$version = '';
 	}
 
-	return $version;
+	return (string) $version;
 }
 
 /**
diff --git a/ecrire/inc/filtres_ecrire.php b/ecrire/inc/filtres_ecrire.php
index 5bdb016bbd..cc79c01730 100644
--- a/ecrire/inc/filtres_ecrire.php
+++ b/ecrire/inc/filtres_ecrire.php
@@ -459,7 +459,7 @@ function bouton_spip_rss($op, $args = [], $lang = '', $title = 'RSS') {
  * @param int $id_auteur
  * @return string
  */
-function alertes_auteur($id_auteur) {
+function alertes_auteur($id_auteur): string {
 
 	$alertes = [];
 
@@ -529,6 +529,8 @@ function alertes_auteur($id_auteur) {
 		join(' | ', $alertes)
 		. '</div></div>';
 	}
+
+	return '';
 }
 
 /**
-- 
GitLab