aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2025-02-28 08:37:18 +0100
committerGitHub <noreply@github.com>2025-02-28 08:37:18 +0100
commitfed74d78cae2e9c23395ee0eecffa7dfef209d11 (patch)
tree7dfe50e9812254f7f6a174de2afda304d08797fd /lib
parente1c8c2099a91d6236121c8813a0f293e79b038a0 (diff)
parentc82337f3b98b8ccf5b774c43213ae56b8d4bd920 (diff)
downloadnextcloud-server-fed74d78cae2e9c23395ee0eecffa7dfef209d11.tar.gz
nextcloud-server-fed74d78cae2e9c23395ee0eecffa7dfef209d11.zip
Merge pull request #50452 from nextcloud/chore/update-stub
chore: update php intl stub and fix type issues
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_Util.php6
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;
}