diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-02-27 19:07:39 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-02-27 19:07:39 +0100 |
commit | c82337f3b98b8ccf5b774c43213ae56b8d4bd920 (patch) | |
tree | cbf5f16f4e564d74ad5135d295680f8b37a35075 /lib | |
parent | 0be4239c41fec66735c9c9c9bc840ee6ab986992 (diff) | |
download | nextcloud-server-c82337f3b98b8ccf5b774c43213ae56b8d4bd920.tar.gz nextcloud-server-c82337f3b98b8ccf5b774c43213ae56b8d4bd920.zip |
fix: incorrect types detected by updated stubschore/update-stub
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index f82082d3d12..bf60fed0389 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -940,15 +940,15 @@ class OC_Util { * Normalize a unicode string * * @param string $value a not normalized string - * @return bool|string + * @return string The normalized string or the input if the normalization failed */ - public static function normalizeUnicode($value) { + public static function normalizeUnicode(string $value): string { if (Normalizer::isNormalized($value)) { return $value; } $normalizedValue = Normalizer::normalize($value); - if ($normalizedValue === null || $normalizedValue === false) { + if ($normalizedValue === false) { \OCP\Server::get(LoggerInterface::class)->warning('normalizing failed for "' . $value . '"', ['app' => 'core']); return $value; } |