mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-13 20:12:07 +01:00
Updated Rector to commit d3deb357b87ad3d87df66c06bd744cf53bc752e0
d3deb357b8
[Scoper] Fix exclude files (#6700)
This commit is contained in:
parent
db65de6a83
commit
d9cc143065
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'b226fe69fc43aa6610ec2cc0611e24dba642d18a';
|
||||
public const PACKAGE_VERSION = 'd3deb357b87ad3d87df66c06bd744cf53bc752e0';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2025-01-28 06:25:39';
|
||||
public const RELEASE_DATE = '2025-01-28 06:31:14';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/scoper-autoload.php
vendored
2
vendor/scoper-autoload.php
vendored
@ -14,7 +14,7 @@ $loader = (static function () {
|
||||
// Restore the backup and ensure the excluded files are properly marked as loaded
|
||||
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
||||
$existingComposerAutoloadFiles,
|
||||
\array_fill_keys([], true)
|
||||
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
|
||||
);
|
||||
|
||||
return $loader;
|
||||
|
342
vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
342
vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace RectorPrefix202501;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
@ -10,285 +8,165 @@ namespace RectorPrefix202501;
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Symfony\Polyfill\Mbstring as p;
|
||||
|
||||
if (\PHP_VERSION_ID >= 80000) {
|
||||
return require __DIR__ . '/bootstrap80.php';
|
||||
return require __DIR__.'/bootstrap80.php';
|
||||
}
|
||||
if (!\function_exists('mb_convert_encoding')) {
|
||||
function mb_convert_encoding($string, $to_encoding, $from_encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_convert_encoding')) {
|
||||
function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader($string)
|
||||
{
|
||||
return p\Mbstring::mb_decode_mimeheader($string);
|
||||
}
|
||||
if (!function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_mimeheader')) {
|
||||
function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0)
|
||||
{
|
||||
return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent);
|
||||
}
|
||||
if (!function_exists('mb_encode_mimeheader')) {
|
||||
function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity($string, $map, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_decode_numericentity($string, $map, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity($string, $map, $encoding = null, $hex = \false)
|
||||
{
|
||||
return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex);
|
||||
}
|
||||
if (!function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_case')) {
|
||||
function mb_convert_case($string, $mode, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_convert_case($string, $mode, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_convert_case')) {
|
||||
function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_internal_encoding')) {
|
||||
function mb_internal_encoding($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_internal_encoding($encoding);
|
||||
}
|
||||
if (!function_exists('mb_internal_encoding')) {
|
||||
function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_language')) {
|
||||
function mb_language($language = null)
|
||||
{
|
||||
return p\Mbstring::mb_language($language);
|
||||
}
|
||||
if (!function_exists('mb_language')) {
|
||||
function mb_language($language = null) { return p\Mbstring::mb_language($language); }
|
||||
}
|
||||
if (!\function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings()
|
||||
{
|
||||
return p\Mbstring::mb_list_encodings();
|
||||
}
|
||||
if (!function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
|
||||
}
|
||||
if (!\function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases($encoding)
|
||||
{
|
||||
return p\Mbstring::mb_encoding_aliases($encoding);
|
||||
}
|
||||
if (!function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_check_encoding')) {
|
||||
function mb_check_encoding($value = null, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_check_encoding($value, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_check_encoding')) {
|
||||
function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_encoding')) {
|
||||
function mb_detect_encoding($string, $encodings = null, $strict = \false)
|
||||
{
|
||||
return p\Mbstring::mb_detect_encoding($string, $encodings, $strict);
|
||||
}
|
||||
if (!function_exists('mb_detect_encoding')) {
|
||||
function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_order')) {
|
||||
function mb_detect_order($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_detect_order($encoding);
|
||||
}
|
||||
if (!function_exists('mb_detect_order')) {
|
||||
function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_parse_str')) {
|
||||
function mb_parse_str($string, &$result = [])
|
||||
{
|
||||
\parse_str($string, $result);
|
||||
return (bool) $result;
|
||||
}
|
||||
if (!function_exists('mb_parse_str')) {
|
||||
function mb_parse_str($string, &$result = []) { parse_str($string, $result); return (bool) $result; }
|
||||
}
|
||||
if (!\function_exists('mb_strlen')) {
|
||||
function mb_strlen($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strlen($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strlen')) {
|
||||
function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strpos')) {
|
||||
function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strpos')) {
|
||||
function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtolower')) {
|
||||
function mb_strtolower($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strtolower($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtolower')) {
|
||||
function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strtoupper($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substitute_character')) {
|
||||
function mb_substitute_character($substitute_character = null)
|
||||
{
|
||||
return p\Mbstring::mb_substitute_character($substitute_character);
|
||||
}
|
||||
if (!function_exists('mb_substitute_character')) {
|
||||
function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
|
||||
}
|
||||
if (!\function_exists('mb_substr')) {
|
||||
function mb_substr($string, $start, $length = 2147483647, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_substr($string, $start, $length, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_substr')) {
|
||||
function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_stripos')) {
|
||||
function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_stripos')) {
|
||||
function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_stristr')) {
|
||||
function mb_stristr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_stristr')) {
|
||||
function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrchr')) {
|
||||
function mb_strrchr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strrchr')) {
|
||||
function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrichr')) {
|
||||
function mb_strrichr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strrichr')) {
|
||||
function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strripos')) {
|
||||
function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strripos')) {
|
||||
function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrpos')) {
|
||||
function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strrpos')) {
|
||||
function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strstr')) {
|
||||
function mb_strstr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strstr')) {
|
||||
function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_get_info')) {
|
||||
function mb_get_info($type = 'all')
|
||||
{
|
||||
return p\Mbstring::mb_get_info($type);
|
||||
}
|
||||
if (!function_exists('mb_get_info')) {
|
||||
function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
|
||||
}
|
||||
if (!\function_exists('mb_http_output')) {
|
||||
function mb_http_output($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_output($encoding);
|
||||
}
|
||||
if (!function_exists('mb_http_output')) {
|
||||
function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strwidth')) {
|
||||
function mb_strwidth($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strwidth($string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strwidth')) {
|
||||
function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substr_count')) {
|
||||
function mb_substr_count($haystack, $needle, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_substr_count($haystack, $needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_substr_count')) {
|
||||
function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_output_handler')) {
|
||||
function mb_output_handler($string, $status)
|
||||
{
|
||||
return p\Mbstring::mb_output_handler($string, $status);
|
||||
}
|
||||
if (!function_exists('mb_output_handler')) {
|
||||
function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); }
|
||||
}
|
||||
if (!\function_exists('mb_http_input')) {
|
||||
function mb_http_input($type = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_input($type);
|
||||
}
|
||||
if (!function_exists('mb_http_input')) {
|
||||
function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_variables')) {
|
||||
function mb_convert_variables($to_encoding, $from_encoding, &...$vars)
|
||||
{
|
||||
return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_convert_variables')) {
|
||||
function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); }
|
||||
}
|
||||
if (!\function_exists('mb_ord')) {
|
||||
function mb_ord($string, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_ord($string, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_ord')) {
|
||||
function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_chr')) {
|
||||
function mb_chr($codepoint, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_chr($codepoint, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_chr')) {
|
||||
function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_scrub')) {
|
||||
function mb_scrub($string, $encoding = null)
|
||||
{
|
||||
$encoding = null === $encoding ? \mb_internal_encoding() : $encoding;
|
||||
return \mb_convert_encoding($string, $encoding, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_scrub')) {
|
||||
function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_str_split')) {
|
||||
function mb_str_split($string, $length = 1, $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_str_split($string, $length, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_str_split')) {
|
||||
function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_str_pad')) {
|
||||
function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_str_pad')) {
|
||||
function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_ucfirst')) {
|
||||
function mb_ucfirst(string $string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_ucfirst($string, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_ucfirst')) {
|
||||
function mb_ucfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_lcfirst')) {
|
||||
function mb_lcfirst(string $string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_lcfirst($string, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_lcfirst')) {
|
||||
function mb_lcfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_trim')) {
|
||||
function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_trim($string, $characters, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_trim')) {
|
||||
function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_ltrim')) {
|
||||
function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_ltrim($string, $characters, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_ltrim')) {
|
||||
function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_rtrim')) {
|
||||
function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_rtrim($string, $characters, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_rtrim')) {
|
||||
function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); }
|
||||
}
|
||||
if (\extension_loaded('mbstring')) {
|
||||
|
||||
|
||||
if (extension_loaded('mbstring')) {
|
||||
return;
|
||||
}
|
||||
if (!\defined('MB_CASE_UPPER')) {
|
||||
\define('MB_CASE_UPPER', 0);
|
||||
|
||||
if (!defined('MB_CASE_UPPER')) {
|
||||
define('MB_CASE_UPPER', 0);
|
||||
}
|
||||
if (!\defined('MB_CASE_LOWER')) {
|
||||
\define('MB_CASE_LOWER', 1);
|
||||
if (!defined('MB_CASE_LOWER')) {
|
||||
define('MB_CASE_LOWER', 1);
|
||||
}
|
||||
if (!\defined('MB_CASE_TITLE')) {
|
||||
\define('MB_CASE_TITLE', 2);
|
||||
if (!defined('MB_CASE_TITLE')) {
|
||||
define('MB_CASE_TITLE', 2);
|
||||
}
|
||||
|
338
vendor/symfony/polyfill-mbstring/bootstrap80.php
vendored
338
vendor/symfony/polyfill-mbstring/bootstrap80.php
vendored
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace RectorPrefix202501;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
@ -10,353 +8,231 @@ namespace RectorPrefix202501;
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Symfony\Polyfill\Mbstring as p;
|
||||
if (!\function_exists('mb_convert_encoding')) {
|
||||
|
||||
if (!function_exists('mb_convert_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $string
|
||||
* @param mixed[]|string|null $from_encoding
|
||||
* @return mixed[]|string|false
|
||||
*/
|
||||
function mb_convert_encoding($string, ?string $to_encoding, $from_encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding);
|
||||
}
|
||||
function mb_convert_encoding($string, ?string $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader(?string $string) : string
|
||||
{
|
||||
return p\Mbstring::mb_decode_mimeheader((string) $string);
|
||||
}
|
||||
if (!function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader(?string $string): string { return p\Mbstring::mb_decode_mimeheader((string) $string); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_mimeheader')) {
|
||||
function mb_encode_mimeheader(?string $string, ?string $charset = null, ?string $transfer_encoding = null, ?string $newline = "\r\n", ?int $indent = 0) : string
|
||||
{
|
||||
return p\Mbstring::mb_encode_mimeheader((string) $string, $charset, $transfer_encoding, (string) $newline, (int) $indent);
|
||||
}
|
||||
if (!function_exists('mb_encode_mimeheader')) {
|
||||
function mb_encode_mimeheader(?string $string, ?string $charset = null, ?string $transfer_encoding = null, ?string $newline = "\r\n", ?int $indent = 0): string { return p\Mbstring::mb_encode_mimeheader((string) $string, $charset, $transfer_encoding, (string) $newline, (int) $indent); }
|
||||
}
|
||||
if (!\function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null): string { return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity(?string $string, array $map, ?string $encoding = null, ?bool $hex = \false) : string
|
||||
{
|
||||
return p\Mbstring::mb_encode_numericentity((string) $string, $map, $encoding, (bool) $hex);
|
||||
}
|
||||
if (!function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity(?string $string, array $map, ?string $encoding = null, ?bool $hex = false): string { return p\Mbstring::mb_encode_numericentity((string) $string, $map, $encoding, (bool) $hex); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_case')) {
|
||||
function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_convert_case')) {
|
||||
function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null): string { return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_internal_encoding')) {
|
||||
if (!function_exists('mb_internal_encoding')) {
|
||||
/**
|
||||
* @return bool|string
|
||||
*/
|
||||
function mb_internal_encoding(?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_internal_encoding($encoding);
|
||||
}
|
||||
function mb_internal_encoding(?string $encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_language')) {
|
||||
if (!function_exists('mb_language')) {
|
||||
/**
|
||||
* @return bool|string
|
||||
*/
|
||||
function mb_language(?string $language = null)
|
||||
{
|
||||
return p\Mbstring::mb_language($language);
|
||||
}
|
||||
function mb_language(?string $language = null) { return p\Mbstring::mb_language($language); }
|
||||
}
|
||||
if (!\function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings() : array
|
||||
{
|
||||
return p\Mbstring::mb_list_encodings();
|
||||
}
|
||||
if (!function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); }
|
||||
}
|
||||
if (!\function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases(?string $encoding) : array
|
||||
{
|
||||
return p\Mbstring::mb_encoding_aliases((string) $encoding);
|
||||
}
|
||||
if (!function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_check_encoding')) {
|
||||
if (!function_exists('mb_check_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $value
|
||||
*/
|
||||
function mb_check_encoding($value = null, ?string $encoding = null) : bool
|
||||
{
|
||||
return p\Mbstring::mb_check_encoding($value, $encoding);
|
||||
}
|
||||
function mb_check_encoding($value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_encoding')) {
|
||||
if (!function_exists('mb_detect_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $encodings
|
||||
* @return string|false
|
||||
*/
|
||||
function mb_detect_encoding(?string $string, $encodings = null, ?bool $strict = \false)
|
||||
{
|
||||
return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict);
|
||||
}
|
||||
function mb_detect_encoding(?string $string, $encodings = null, ?bool $strict = false) { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); }
|
||||
}
|
||||
if (!\function_exists('mb_detect_order')) {
|
||||
if (!function_exists('mb_detect_order')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $encoding
|
||||
* @return mixed[]|bool
|
||||
*/
|
||||
function mb_detect_order($encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_detect_order($encoding);
|
||||
}
|
||||
function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_parse_str')) {
|
||||
function mb_parse_str(?string $string, &$result = []) : bool
|
||||
{
|
||||
\parse_str((string) $string, $result);
|
||||
return (bool) $result;
|
||||
}
|
||||
if (!function_exists('mb_parse_str')) {
|
||||
function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result; }
|
||||
}
|
||||
if (!\function_exists('mb_strlen')) {
|
||||
function mb_strlen(?string $string, ?string $encoding = null) : int
|
||||
{
|
||||
return p\Mbstring::mb_strlen((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strlen')) {
|
||||
function mb_strlen(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strlen((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strpos')) {
|
||||
if (!function_exists('mb_strpos')) {
|
||||
/**
|
||||
* @return int|false
|
||||
*/
|
||||
function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtolower')) {
|
||||
function mb_strtolower(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_strtolower((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtolower')) {
|
||||
function mb_strtolower(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtolower((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_strtoupper((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtoupper((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substitute_character')) {
|
||||
if (!function_exists('mb_substitute_character')) {
|
||||
/**
|
||||
* @param string|int|null $substitute_character
|
||||
* @return bool|int|string
|
||||
*/
|
||||
function mb_substitute_character($substitute_character = null)
|
||||
{
|
||||
return p\Mbstring::mb_substitute_character($substitute_character);
|
||||
}
|
||||
function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
|
||||
}
|
||||
if (!\function_exists('mb_substr')) {
|
||||
function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_substr')) {
|
||||
function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null): string { return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_stripos')) {
|
||||
if (!function_exists('mb_stripos')) {
|
||||
/**
|
||||
* @return int|false
|
||||
*/
|
||||
function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_stristr')) {
|
||||
if (!function_exists('mb_stristr')) {
|
||||
/**
|
||||
* @return string|false
|
||||
*/
|
||||
function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrchr')) {
|
||||
if (!function_exists('mb_strrchr')) {
|
||||
/**
|
||||
* @return string|false
|
||||
*/
|
||||
function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrichr')) {
|
||||
if (!function_exists('mb_strrichr')) {
|
||||
/**
|
||||
* @return string|false
|
||||
*/
|
||||
function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strripos')) {
|
||||
if (!function_exists('mb_strripos')) {
|
||||
/**
|
||||
* @return int|false
|
||||
*/
|
||||
function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strrpos')) {
|
||||
if (!function_exists('mb_strrpos')) {
|
||||
/**
|
||||
* @return int|false
|
||||
*/
|
||||
function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strstr')) {
|
||||
if (!function_exists('mb_strstr')) {
|
||||
/**
|
||||
* @return string|false
|
||||
*/
|
||||
function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_get_info')) {
|
||||
if (!function_exists('mb_get_info')) {
|
||||
/**
|
||||
* @return mixed[]|int|string|false|null
|
||||
*/
|
||||
function mb_get_info(?string $type = 'all')
|
||||
{
|
||||
return p\Mbstring::mb_get_info((string) $type);
|
||||
}
|
||||
function mb_get_info(?string $type = 'all') { return p\Mbstring::mb_get_info((string) $type); }
|
||||
}
|
||||
if (!\function_exists('mb_http_output')) {
|
||||
if (!function_exists('mb_http_output')) {
|
||||
/**
|
||||
* @return bool|string
|
||||
*/
|
||||
function mb_http_output(?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_output($encoding);
|
||||
}
|
||||
function mb_http_output(?string $encoding = null) { return p\Mbstring::mb_http_output($encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_strwidth')) {
|
||||
function mb_strwidth(?string $string, ?string $encoding = null) : int
|
||||
{
|
||||
return p\Mbstring::mb_strwidth((string) $string, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_strwidth')) {
|
||||
function mb_strwidth(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strwidth((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_substr_count')) {
|
||||
function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null) : int
|
||||
{
|
||||
return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_substr_count')) {
|
||||
function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_output_handler')) {
|
||||
function mb_output_handler(?string $string, ?int $status) : string
|
||||
{
|
||||
return p\Mbstring::mb_output_handler((string) $string, (int) $status);
|
||||
}
|
||||
if (!function_exists('mb_output_handler')) {
|
||||
function mb_output_handler(?string $string, ?int $status): string { return p\Mbstring::mb_output_handler((string) $string, (int) $status); }
|
||||
}
|
||||
if (!\function_exists('mb_http_input')) {
|
||||
if (!function_exists('mb_http_input')) {
|
||||
/**
|
||||
* @return mixed[]|string|false
|
||||
*/
|
||||
function mb_http_input(?string $type = null)
|
||||
{
|
||||
return p\Mbstring::mb_http_input($type);
|
||||
}
|
||||
function mb_http_input(?string $type = null) { return p\Mbstring::mb_http_input($type); }
|
||||
}
|
||||
if (!\function_exists('mb_convert_variables')) {
|
||||
|
||||
if (!function_exists('mb_convert_variables')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $from_encoding
|
||||
* @return string|false
|
||||
* @param mixed $var
|
||||
* @param mixed ...$vars
|
||||
*/
|
||||
function mb_convert_variables(?string $to_encoding, $from_encoding, &$var, &...$vars)
|
||||
{
|
||||
return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars);
|
||||
}
|
||||
function mb_convert_variables(?string $to_encoding, $from_encoding, &$var, &...$vars) { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); }
|
||||
}
|
||||
if (!\function_exists('mb_ord')) {
|
||||
|
||||
if (!function_exists('mb_ord')) {
|
||||
/**
|
||||
* @return int|false
|
||||
*/
|
||||
function mb_ord(?string $string, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_ord((string) $string, $encoding);
|
||||
}
|
||||
function mb_ord(?string $string, ?string $encoding = null) { return p\Mbstring::mb_ord((string) $string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_chr')) {
|
||||
if (!function_exists('mb_chr')) {
|
||||
/**
|
||||
* @return string|false
|
||||
*/
|
||||
function mb_chr(?int $codepoint, ?string $encoding = null)
|
||||
{
|
||||
return p\Mbstring::mb_chr((int) $codepoint, $encoding);
|
||||
}
|
||||
function mb_chr(?int $codepoint, ?string $encoding = null) { return p\Mbstring::mb_chr((int) $codepoint, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_scrub')) {
|
||||
function mb_scrub(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
$encoding ??= \mb_internal_encoding();
|
||||
return \mb_convert_encoding((string) $string, $encoding, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_scrub')) {
|
||||
function mb_scrub(?string $string, ?string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding((string) $string, $encoding, $encoding); }
|
||||
}
|
||||
if (!\function_exists('mb_str_split')) {
|
||||
function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null) : array
|
||||
{
|
||||
return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding);
|
||||
}
|
||||
if (!function_exists('mb_str_split')) {
|
||||
function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null): array { return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_str_pad')) {
|
||||
function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_str_pad')) {
|
||||
function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_ucfirst')) {
|
||||
function mb_ucfirst($string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_ucfirst($string, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_ucfirst')) {
|
||||
function mb_ucfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_lcfirst')) {
|
||||
function mb_lcfirst($string, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_lcfirst($string, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_lcfirst')) {
|
||||
function mb_lcfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_trim')) {
|
||||
function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_trim($string, $characters, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_trim')) {
|
||||
function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_ltrim')) {
|
||||
function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_ltrim($string, $characters, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_ltrim')) {
|
||||
function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); }
|
||||
}
|
||||
if (!\function_exists('RectorPrefix202501\\mb_rtrim')) {
|
||||
function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) : string
|
||||
{
|
||||
return p\Mbstring::mb_rtrim($string, $characters, $encoding);
|
||||
}
|
||||
|
||||
if (!function_exists('mb_rtrim')) {
|
||||
function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); }
|
||||
}
|
||||
if (\extension_loaded('mbstring')) {
|
||||
|
||||
if (extension_loaded('mbstring')) {
|
||||
return;
|
||||
}
|
||||
if (!\defined('MB_CASE_UPPER')) {
|
||||
\define('MB_CASE_UPPER', 0);
|
||||
|
||||
if (!defined('MB_CASE_UPPER')) {
|
||||
define('MB_CASE_UPPER', 0);
|
||||
}
|
||||
if (!\defined('MB_CASE_LOWER')) {
|
||||
\define('MB_CASE_LOWER', 1);
|
||||
if (!defined('MB_CASE_LOWER')) {
|
||||
define('MB_CASE_LOWER', 1);
|
||||
}
|
||||
if (!\defined('MB_CASE_TITLE')) {
|
||||
\define('MB_CASE_TITLE', 2);
|
||||
if (!defined('MB_CASE_TITLE')) {
|
||||
define('MB_CASE_TITLE', 2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user