From b6cca42f730d0d0c9999a6af2390c4206e58ac3f Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 26 Feb 2024 15:09:57 +0000 Subject: [PATCH] [core/polyfills] remove mb_ functions - there are standard polyfills for that --- core/polyfills.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/polyfills.php b/core/polyfills.php index d9040ee1..4e11f167 100644 --- a/core/polyfills.php +++ b/core/polyfills.php @@ -237,22 +237,6 @@ function find_header(array $headers, string $name): ?string return $header; } -if (!function_exists('mb_strlen')) { - // TODO: we should warn the admin that they are missing multibyte support - /** @noinspection PhpUnusedParameterInspection */ - function mb_strlen(string $str, string $encoding): int - { - return strlen($str); - } - function mb_internal_encoding(string $encoding): void - { - } - function mb_strtolower(string $str): string - { - return strtolower($str); - } -} - /** * @return class-string[] */