From e3a12b348206adcfbfb0fbc8435ba91240ac2b0a Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 26 Jan 2022 14:26:58 +0100 Subject: Fix psalm issues in theming app After this change, we are down to only one psalm warning for this app and related to the Application.php. This also make composer psam:update-baseline not silently ignore new errors. Signed-off-by: Carl Schwan --- lib/private/legacy/OC_Util.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/private/legacy') diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index c2846511774..d9657dd4174 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -1130,11 +1130,12 @@ class OC_Util { * This function is used to sanitize HTML and should be applied on any * string or array of strings before displaying it on a web page. * - * @param string|array $value - * @return string|array an array of sanitized strings or a single sanitized string, depends on the input parameter. + * @param string|string[] $value + * @return string|string[] an array of sanitized strings or a single sanitized string, depends on the input parameter. */ public static function sanitizeHTML($value) { if (is_array($value)) { + /** @var string[] $value */ $value = array_map(function ($value) { return self::sanitizeHTML($value); }, $value); -- cgit v1.2.3