mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 18:00:50 +00:00
Updated Rector to commit 0693c4f46f
0693c4f46f
return intl and mbstring polyfills
This commit is contained in:
parent
5bd6035138
commit
f63cc42a7a
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '424697fdc4110ab40be313b701334afd1cefdec1';
|
||||
public const PACKAGE_VERSION = '0693c4f46f7d9fc6d1e65451f1c17ff7e98ca511';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-06-01 10:01:33';
|
||||
public const RELEASE_DATE = '2022-06-01 14:54:00';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962::getLoader();
|
||||
return ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7::getLoader();
|
||||
|
|
3
vendor/composer/autoload_classmap.php
vendored
3
vendor/composer/autoload_classmap.php
vendored
|
@ -7,6 +7,7 @@ $baseDir = dirname($vendorDir);
|
|||
|
||||
return array(
|
||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||
'Normalizer' => $vendorDir . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php',
|
||||
'PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprArrayItemNode' => $vendorDir . '/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprArrayItemNode.php',
|
||||
'PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprArrayNode' => $vendorDir . '/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprArrayNode.php',
|
||||
'PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprFalseNode' => $vendorDir . '/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprFalseNode.php',
|
||||
|
@ -1093,6 +1094,8 @@ return array(
|
|||
'RectorPrefix20220601\\Symfony\\Contracts\\Translation\\TranslatableInterface' => $vendorDir . '/symfony/contracts/Translation/TranslatableInterface.php',
|
||||
'RectorPrefix20220601\\Symfony\\Contracts\\Translation\\TranslatorInterface' => $vendorDir . '/symfony/contracts/Translation/TranslatorInterface.php',
|
||||
'RectorPrefix20220601\\Symfony\\Contracts\\Translation\\TranslatorTrait' => $vendorDir . '/symfony/contracts/Translation/TranslatorTrait.php',
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Intl\\Normalizer\\Normalizer' => $vendorDir . '/symfony/polyfill-intl-normalizer/Normalizer.php',
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Mbstring\\Mbstring' => $vendorDir . '/symfony/polyfill-mbstring/Mbstring.php',
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Php81\\Php81' => $vendorDir . '/symfony/polyfill-php81/Php81.php',
|
||||
'RectorPrefix20220601\\Symplify\\Astral\\Contract\\NodeNameResolverInterface' => $vendorDir . '/symplify/astral/src/Contract/NodeNameResolverInterface.php',
|
||||
'RectorPrefix20220601\\Symplify\\Astral\\Contract\\NodeValueResolver\\NodeValueResolverInterface' => $vendorDir . '/symplify/astral/src/Contract/NodeValueResolver/NodeValueResolverInterface.php',
|
||||
|
|
2
vendor/composer/autoload_files.php
vendored
2
vendor/composer/autoload_files.php
vendored
|
@ -6,7 +6,9 @@ $vendorDir = dirname(__DIR__);
|
|||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php',
|
||||
'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php',
|
||||
'b6b991a57620e2fb6b2f66f03fe9ddc2' => $vendorDir . '/symfony/string/Resources/functions.php',
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => $vendorDir . '/react/promise/src/functions_include.php',
|
||||
'972fda704d680a3a53c68e34e193cb22' => $vendorDir . '/react/promise-timer/src/functions_include.php',
|
||||
|
|
2
vendor/composer/autoload_psr4.php
vendored
2
vendor/composer/autoload_psr4.php
vendored
|
@ -32,6 +32,8 @@ return array(
|
|||
'RectorPrefix20220601\\Symplify\\AutowireArrayParameter\\' => array($vendorDir . '/symplify/autowire-array-parameter/src'),
|
||||
'RectorPrefix20220601\\Symplify\\Astral\\' => array($vendorDir . '/symplify/astral/src'),
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'),
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'),
|
||||
'RectorPrefix20220601\\Symfony\\Contracts\\' => array($vendorDir . '/symfony/contracts'),
|
||||
'RectorPrefix20220601\\Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
|
||||
'RectorPrefix20220601\\Symfony\\Component\\String\\' => array($vendorDir . '/symfony/string'),
|
||||
|
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962
|
||||
class ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit82a5e777944ddc17739e2b506d2d5962::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit4fe32367a27a832c394393ad55e40ad7::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit82a5e777944ddc17739e2b506d2d5962::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit4fe32367a27a832c394393ad55e40ad7::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire82a5e777944ddc17739e2b506d2d5962($fileIdentifier, $file);
|
||||
composerRequire4fe32367a27a832c394393ad55e40ad7($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire82a5e777944ddc17739e2b506d2d5962($fileIdentifier, $file)
|
||||
function composerRequire4fe32367a27a832c394393ad55e40ad7($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
23
vendor/composer/autoload_static.php
vendored
23
vendor/composer/autoload_static.php
vendored
|
@ -4,10 +4,12 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit82a5e777944ddc17739e2b506d2d5962
|
||||
class ComposerStaticInit4fe32367a27a832c394393ad55e40ad7
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
|
||||
'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php',
|
||||
'b6b991a57620e2fb6b2f66f03fe9ddc2' => __DIR__ . '/..' . '/symfony/string/Resources/functions.php',
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
'972fda704d680a3a53c68e34e193cb22' => __DIR__ . '/..' . '/react/promise-timer/src/functions_include.php',
|
||||
|
@ -50,6 +52,8 @@ class ComposerStaticInit82a5e777944ddc17739e2b506d2d5962
|
|||
'RectorPrefix20220601\\Symplify\\AutowireArrayParameter\\' => 53,
|
||||
'RectorPrefix20220601\\Symplify\\Astral\\' => 37,
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Php81\\' => 44,
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Mbstring\\' => 47,
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Intl\\Normalizer\\' => 54,
|
||||
'RectorPrefix20220601\\Symfony\\Contracts\\' => 39,
|
||||
'RectorPrefix20220601\\Symfony\\Component\\Yaml\\' => 44,
|
||||
'RectorPrefix20220601\\Symfony\\Component\\String\\' => 46,
|
||||
|
@ -194,6 +198,14 @@ class ComposerStaticInit82a5e777944ddc17739e2b506d2d5962
|
|||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
|
||||
),
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Mbstring\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
|
||||
),
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Intl\\Normalizer\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer',
|
||||
),
|
||||
'RectorPrefix20220601\\Symfony\\Contracts\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/contracts',
|
||||
|
@ -322,6 +334,7 @@ class ComposerStaticInit82a5e777944ddc17739e2b506d2d5962
|
|||
|
||||
public static $classMap = array (
|
||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||
'Normalizer' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php',
|
||||
'PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprArrayItemNode' => __DIR__ . '/..' . '/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprArrayItemNode.php',
|
||||
'PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprArrayNode' => __DIR__ . '/..' . '/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprArrayNode.php',
|
||||
'PHPStan\\PhpDocParser\\Ast\\ConstExpr\\ConstExprFalseNode' => __DIR__ . '/..' . '/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprFalseNode.php',
|
||||
|
@ -1408,6 +1421,8 @@ class ComposerStaticInit82a5e777944ddc17739e2b506d2d5962
|
|||
'RectorPrefix20220601\\Symfony\\Contracts\\Translation\\TranslatableInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatableInterface.php',
|
||||
'RectorPrefix20220601\\Symfony\\Contracts\\Translation\\TranslatorInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorInterface.php',
|
||||
'RectorPrefix20220601\\Symfony\\Contracts\\Translation\\TranslatorTrait' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorTrait.php',
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Intl\\Normalizer\\Normalizer' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/Normalizer.php',
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/Mbstring.php',
|
||||
'RectorPrefix20220601\\Symfony\\Polyfill\\Php81\\Php81' => __DIR__ . '/..' . '/symfony/polyfill-php81/Php81.php',
|
||||
'RectorPrefix20220601\\Symplify\\Astral\\Contract\\NodeNameResolverInterface' => __DIR__ . '/..' . '/symplify/astral/src/Contract/NodeNameResolverInterface.php',
|
||||
'RectorPrefix20220601\\Symplify\\Astral\\Contract\\NodeValueResolver\\NodeValueResolverInterface' => __DIR__ . '/..' . '/symplify/astral/src/Contract/NodeValueResolver/NodeValueResolverInterface.php',
|
||||
|
@ -3767,9 +3782,9 @@ class ComposerStaticInit82a5e777944ddc17739e2b506d2d5962
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit82a5e777944ddc17739e2b506d2d5962::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit82a5e777944ddc17739e2b506d2d5962::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit82a5e777944ddc17739e2b506d2d5962::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit4fe32367a27a832c394393ad55e40ad7::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit4fe32367a27a832c394393ad55e40ad7::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit4fe32367a27a832c394393ad55e40ad7::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
173
vendor/composer/installed.json
vendored
173
vendor/composer/installed.json
vendored
|
@ -3149,6 +3149,179 @@
|
|||
],
|
||||
"install-path": "..\/symfony\/finder"
|
||||
},
|
||||
{
|
||||
"name": "symfony\/polyfill-intl-normalizer",
|
||||
"version": "v1.25.0",
|
||||
"version_normalized": "1.25.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symfony\/polyfill-intl-normalizer.git",
|
||||
"reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-intl-normalizer\/zipball\/8590a5f561694770bdcd3f9b5c69dde6945028e8",
|
||||
"reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-intl": "For best performance"
|
||||
},
|
||||
"time": "2021-02-19T12:13:01+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.23-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony\/polyfill",
|
||||
"url": "https:\/\/github.com\/symfony\/polyfill"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"RectorPrefix20220601\\Symfony\\Polyfill\\Intl\\Normalizer\\": ""
|
||||
},
|
||||
"classmap": [
|
||||
"Resources\/stubs"
|
||||
]
|
||||
},
|
||||
"notification-url": "https:\/\/packagist.org\/downloads\/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https:\/\/symfony.com\/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for intl's Normalizer class and related functions",
|
||||
"homepage": "https:\/\/symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"intl",
|
||||
"normalizer",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symfony\/polyfill-intl-normalizer\/tree\/v1.25.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https:\/\/symfony.com\/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https:\/\/github.com\/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https:\/\/tidelift.com\/funding\/github\/packagist\/symfony\/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "..\/symfony\/polyfill-intl-normalizer"
|
||||
},
|
||||
{
|
||||
"name": "symfony\/polyfill-mbstring",
|
||||
"version": "v1.25.0",
|
||||
"version_normalized": "1.25.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symfony\/polyfill-mbstring.git",
|
||||
"reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symfony\/polyfill-mbstring\/zipball\/0abb51d2f102e00a4eefcf46ba7fec406d245825",
|
||||
"reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"provide": {
|
||||
"ext-mbstring": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
},
|
||||
"time": "2021-11-30T18:21:41+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.23-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony\/polyfill",
|
||||
"url": "https:\/\/github.com\/symfony\/polyfill"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"RectorPrefix20220601\\Symfony\\Polyfill\\Mbstring\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https:\/\/packagist.org\/downloads\/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https:\/\/symfony.com\/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for the Mbstring extension",
|
||||
"homepage": "https:\/\/symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"mbstring",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symfony\/polyfill-mbstring\/tree\/v1.25.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https:\/\/symfony.com\/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https:\/\/github.com\/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https:\/\/tidelift.com\/funding\/github\/packagist\/symfony\/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "..\/symfony\/polyfill-mbstring"
|
||||
},
|
||||
{
|
||||
"name": "symfony\/polyfill-php81",
|
||||
"version": "v1.25.0",
|
||||
|
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
13
vendor/scoper-autoload.php
vendored
13
vendor/scoper-autoload.php
vendored
|
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
|||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220601\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962', false) && !interface_exists('ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962', false) && !trait_exists('ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962', false)) {
|
||||
spl_autoload_call('RectorPrefix20220601\ComposerAutoloaderInit82a5e777944ddc17739e2b506d2d5962');
|
||||
if (!class_exists('ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7', false) && !interface_exists('ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7', false) && !trait_exists('ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7', false)) {
|
||||
spl_autoload_call('RectorPrefix20220601\ComposerAutoloaderInit4fe32367a27a832c394393ad55e40ad7');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220601\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -24,6 +24,9 @@ if (!class_exists('MissingReturnTypeParser', false) && !interface_exists('Missin
|
|||
if (!class_exists('Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', false) && !interface_exists('Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', false) && !trait_exists('Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', false)) {
|
||||
spl_autoload_call('RectorPrefix20220601\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator');
|
||||
}
|
||||
if (!class_exists('Normalizer', false) && !interface_exists('Normalizer', false) && !trait_exists('Normalizer', false)) {
|
||||
spl_autoload_call('RectorPrefix20220601\Normalizer');
|
||||
}
|
||||
if (!class_exists('ReturnTypeWillChange', false) && !interface_exists('ReturnTypeWillChange', false) && !trait_exists('ReturnTypeWillChange', false)) {
|
||||
spl_autoload_call('RectorPrefix20220601\ReturnTypeWillChange');
|
||||
}
|
||||
|
@ -56,9 +59,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20220601\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire82a5e777944ddc17739e2b506d2d5962')) {
|
||||
function composerRequire82a5e777944ddc17739e2b506d2d5962() {
|
||||
return \RectorPrefix20220601\composerRequire82a5e777944ddc17739e2b506d2d5962(...func_get_args());
|
||||
if (!function_exists('composerRequire4fe32367a27a832c394393ad55e40ad7')) {
|
||||
function composerRequire4fe32367a27a832c394393ad55e40ad7() {
|
||||
return \RectorPrefix20220601\composerRequire4fe32367a27a832c394393ad55e40ad7(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
|
19
vendor/symfony/polyfill-intl-normalizer/LICENSE
vendored
Normal file
19
vendor/symfony/polyfill-intl-normalizer/LICENSE
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2015-2019 Fabien Potencier
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
258
vendor/symfony/polyfill-intl-normalizer/Normalizer.php
vendored
Normal file
258
vendor/symfony/polyfill-intl-normalizer/Normalizer.php
vendored
Normal file
|
@ -0,0 +1,258 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer;
|
||||
|
||||
/**
|
||||
* Normalizer is a PHP fallback implementation of the Normalizer class provided by the intl extension.
|
||||
*
|
||||
* It has been validated with Unicode 6.3 Normalization Conformance Test.
|
||||
* See http://www.unicode.org/reports/tr15/ for detailed info about Unicode normalizations.
|
||||
*
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class Normalizer
|
||||
{
|
||||
public const FORM_D = \Normalizer::FORM_D;
|
||||
public const FORM_KD = \Normalizer::FORM_KD;
|
||||
public const FORM_C = \Normalizer::FORM_C;
|
||||
public const FORM_KC = \Normalizer::FORM_KC;
|
||||
public const NFD = \Normalizer::NFD;
|
||||
public const NFKD = \Normalizer::NFKD;
|
||||
public const NFC = \Normalizer::NFC;
|
||||
public const NFKC = \Normalizer::NFKC;
|
||||
private static $C;
|
||||
private static $D;
|
||||
private static $KD;
|
||||
private static $cC;
|
||||
private static $ulenMask = ["À" => 2, "Ð" => 2, "à" => 3, "ð" => 4];
|
||||
private static $ASCII = " eiasntrolud][cmp'\ng|hv.fb,:=-q10C2*yx)(L9AS/P\"EjMIk3>5T<D4}B{8FwR67UGN;JzV#HOW_&!K?XQ%Y\\\tZ+~^\$@`\0\1\2\3\4\5\6\7\10\v\f\r\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37";
|
||||
public static function isNormalized(string $s, int $form = self::FORM_C)
|
||||
{
|
||||
if (!\in_array($form, [self::NFD, self::NFKD, self::NFC, self::NFKC])) {
|
||||
return \false;
|
||||
}
|
||||
if (!isset($s[\strspn($s, self::$ASCII)])) {
|
||||
return \true;
|
||||
}
|
||||
if (self::NFC == $form && \preg_match('//u', $s) && !\preg_match('/[^\\x00-\\x{2FF}]/u', $s)) {
|
||||
return \true;
|
||||
}
|
||||
return self::normalize($s, $form) === $s;
|
||||
}
|
||||
public static function normalize(string $s, int $form = self::FORM_C)
|
||||
{
|
||||
if (!\preg_match('//u', $s)) {
|
||||
return \false;
|
||||
}
|
||||
switch ($form) {
|
||||
case self::NFC:
|
||||
$C = \true;
|
||||
$K = \false;
|
||||
break;
|
||||
case self::NFD:
|
||||
$C = \false;
|
||||
$K = \false;
|
||||
break;
|
||||
case self::NFKC:
|
||||
$C = \true;
|
||||
$K = \true;
|
||||
break;
|
||||
case self::NFKD:
|
||||
$C = \false;
|
||||
$K = \true;
|
||||
break;
|
||||
default:
|
||||
if (\defined('Normalizer::NONE') && \Normalizer::NONE == $form) {
|
||||
return $s;
|
||||
}
|
||||
if (80000 > \PHP_VERSION_ID) {
|
||||
return \false;
|
||||
}
|
||||
throw new \ValueError('normalizer_normalize(): Argument #2 ($form) must be a a valid normalization form');
|
||||
}
|
||||
if ('' === $s) {
|
||||
return '';
|
||||
}
|
||||
if ($K && null === self::$KD) {
|
||||
self::$KD = self::getData('compatibilityDecomposition');
|
||||
}
|
||||
if (null === self::$D) {
|
||||
self::$D = self::getData('canonicalDecomposition');
|
||||
self::$cC = self::getData('combiningClass');
|
||||
}
|
||||
if (null !== ($mbEncoding = 2 & (int) \ini_get('mbstring.func_overload') ? \mb_internal_encoding() : null)) {
|
||||
\mb_internal_encoding('8bit');
|
||||
}
|
||||
$r = self::decompose($s, $K);
|
||||
if ($C) {
|
||||
if (null === self::$C) {
|
||||
self::$C = self::getData('canonicalComposition');
|
||||
}
|
||||
$r = self::recompose($r);
|
||||
}
|
||||
if (null !== $mbEncoding) {
|
||||
\mb_internal_encoding($mbEncoding);
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
private static function recompose($s)
|
||||
{
|
||||
$ASCII = self::$ASCII;
|
||||
$compMap = self::$C;
|
||||
$combClass = self::$cC;
|
||||
$ulenMask = self::$ulenMask;
|
||||
$result = $tail = '';
|
||||
$i = $s[0] < "€" ? 1 : $ulenMask[$s[0] & "ð"];
|
||||
$len = \strlen($s);
|
||||
$lastUchr = \substr($s, 0, $i);
|
||||
$lastUcls = isset($combClass[$lastUchr]) ? 256 : 0;
|
||||
while ($i < $len) {
|
||||
if ($s[$i] < "€") {
|
||||
// ASCII chars
|
||||
if ($tail) {
|
||||
$lastUchr .= $tail;
|
||||
$tail = '';
|
||||
}
|
||||
if ($j = \strspn($s, $ASCII, $i + 1)) {
|
||||
$lastUchr .= \substr($s, $i, $j);
|
||||
$i += $j;
|
||||
}
|
||||
$result .= $lastUchr;
|
||||
$lastUchr = $s[$i];
|
||||
$lastUcls = 0;
|
||||
++$i;
|
||||
continue;
|
||||
}
|
||||
$ulen = $ulenMask[$s[$i] & "ð"];
|
||||
$uchr = \substr($s, $i, $ulen);
|
||||
if ($lastUchr < "á„€" || "á„’" < $lastUchr || $uchr < "á…¡" || "á…µ" < $uchr || $lastUcls) {
|
||||
// Table lookup and combining chars composition
|
||||
$ucls = $combClass[$uchr] ?? 0;
|
||||
if (isset($compMap[$lastUchr . $uchr]) && (!$lastUcls || $lastUcls < $ucls)) {
|
||||
$lastUchr = $compMap[$lastUchr . $uchr];
|
||||
} elseif ($lastUcls = $ucls) {
|
||||
$tail .= $uchr;
|
||||
} else {
|
||||
if ($tail) {
|
||||
$lastUchr .= $tail;
|
||||
$tail = '';
|
||||
}
|
||||
$result .= $lastUchr;
|
||||
$lastUchr = $uchr;
|
||||
}
|
||||
} else {
|
||||
// Hangul chars
|
||||
$L = \ord($lastUchr[2]) - 0x80;
|
||||
$V = \ord($uchr[2]) - 0xa1;
|
||||
$T = 0;
|
||||
$uchr = \substr($s, $i + $ulen, 3);
|
||||
if ("ᆧ" <= $uchr && $uchr <= "ᇂ") {
|
||||
$T = \ord($uchr[2]) - 0xa7;
|
||||
0 > $T && ($T += 0x40);
|
||||
$ulen += 3;
|
||||
}
|
||||
$L = 0xac00 + ($L * 21 + $V) * 28 + $T;
|
||||
$lastUchr = \chr(0xe0 | $L >> 12) . \chr(0x80 | $L >> 6 & 0x3f) . \chr(0x80 | $L & 0x3f);
|
||||
}
|
||||
$i += $ulen;
|
||||
}
|
||||
return $result . $lastUchr . $tail;
|
||||
}
|
||||
private static function decompose($s, $c)
|
||||
{
|
||||
$result = '';
|
||||
$ASCII = self::$ASCII;
|
||||
$decompMap = self::$D;
|
||||
$combClass = self::$cC;
|
||||
$ulenMask = self::$ulenMask;
|
||||
if ($c) {
|
||||
$compatMap = self::$KD;
|
||||
}
|
||||
$c = [];
|
||||
$i = 0;
|
||||
$len = \strlen($s);
|
||||
while ($i < $len) {
|
||||
if ($s[$i] < "€") {
|
||||
// ASCII chars
|
||||
if ($c) {
|
||||
\ksort($c);
|
||||
$result .= \implode('', $c);
|
||||
$c = [];
|
||||
}
|
||||
$j = 1 + \strspn($s, $ASCII, $i + 1);
|
||||
$result .= \substr($s, $i, $j);
|
||||
$i += $j;
|
||||
continue;
|
||||
}
|
||||
$ulen = $ulenMask[$s[$i] & "ð"];
|
||||
$uchr = \substr($s, $i, $ulen);
|
||||
$i += $ulen;
|
||||
if ($uchr < "가" || "힣" < $uchr) {
|
||||
// Table lookup
|
||||
if ($uchr !== ($j = $compatMap[$uchr] ?? $decompMap[$uchr] ?? $uchr)) {
|
||||
$uchr = $j;
|
||||
$j = \strlen($uchr);
|
||||
$ulen = $uchr[0] < "€" ? 1 : $ulenMask[$uchr[0] & "ð"];
|
||||
if ($ulen != $j) {
|
||||
// Put trailing chars in $s
|
||||
$j -= $ulen;
|
||||
$i -= $j;
|
||||
if (0 > $i) {
|
||||
$s = \str_repeat(' ', -$i) . $s;
|
||||
$len -= $i;
|
||||
$i = 0;
|
||||
}
|
||||
while ($j--) {
|
||||
$s[$i + $j] = $uchr[$ulen + $j];
|
||||
}
|
||||
$uchr = \substr($uchr, 0, $ulen);
|
||||
}
|
||||
}
|
||||
if (isset($combClass[$uchr])) {
|
||||
// Combining chars, for sorting
|
||||
if (!isset($c[$combClass[$uchr]])) {
|
||||
$c[$combClass[$uchr]] = '';
|
||||
}
|
||||
$c[$combClass[$uchr]] .= $uchr;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
// Hangul chars
|
||||
$uchr = \unpack('C*', $uchr);
|
||||
$j = ($uchr[1] - 224 << 12) + ($uchr[2] - 128 << 6) + $uchr[3] - 0xac80;
|
||||
$uchr = "á„" . \chr(0x80 + (int) ($j / 588)) . "á…" . \chr(0xa1 + (int) ($j % 588 / 28));
|
||||
if ($j %= 28) {
|
||||
$uchr .= $j < 25 ? "á†" . \chr(0xa7 + $j) : "á‡" . \chr(0x67 + $j);
|
||||
}
|
||||
}
|
||||
if ($c) {
|
||||
\ksort($c);
|
||||
$result .= \implode('', $c);
|
||||
$c = [];
|
||||
}
|
||||
$result .= $uchr;
|
||||
}
|
||||
if ($c) {
|
||||
\ksort($c);
|
||||
$result .= \implode('', $c);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
private static function getData($file)
|
||||
{
|
||||
if (\file_exists($file = __DIR__ . '/Resources/unidata/' . $file . '.php')) {
|
||||
return require $file;
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
}
|
14
vendor/symfony/polyfill-intl-normalizer/README.md
vendored
Normal file
14
vendor/symfony/polyfill-intl-normalizer/README.md
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
Symfony Polyfill / Intl: Normalizer
|
||||
===================================
|
||||
|
||||
This component provides a fallback implementation for the
|
||||
[`Normalizer`](https://php.net/Normalizer) class provided
|
||||
by the [Intl](https://php.net/intl) extension.
|
||||
|
||||
More information can be found in the
|
||||
[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
This library is released under the [MIT license](LICENSE).
|
20
vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php
vendored
Normal file
20
vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
class Normalizer extends \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer
|
||||
{
|
||||
/**
|
||||
* @deprecated since ICU 56 and removed in PHP 8
|
||||
*/
|
||||
public const NONE = 2;
|
||||
public const FORM_D = 4;
|
||||
public const FORM_KD = 8;
|
||||
public const FORM_C = 16;
|
||||
public const FORM_KC = 32;
|
||||
public const NFD = 4;
|
||||
public const NFKD = 8;
|
||||
public const NFC = 16;
|
||||
public const NFKC = 32;
|
||||
}
|
||||
|
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalComposition.php
vendored
Normal file
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalComposition.php
vendored
Normal file
File diff suppressed because one or more lines are too long
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalDecomposition.php
vendored
Normal file
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/canonicalDecomposition.php
vendored
Normal file
File diff suppressed because one or more lines are too long
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/combiningClass.php
vendored
Normal file
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/combiningClass.php
vendored
Normal file
File diff suppressed because one or more lines are too long
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/compatibilityDecomposition.php
vendored
Normal file
5
vendor/symfony/polyfill-intl-normalizer/Resources/unidata/compatibilityDecomposition.php
vendored
Normal file
File diff suppressed because one or more lines are too long
28
vendor/symfony/polyfill-intl-normalizer/bootstrap.php
vendored
Normal file
28
vendor/symfony/polyfill-intl-normalizer/bootstrap.php
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer as p;
|
||||
if (\PHP_VERSION_ID >= 80000) {
|
||||
return require __DIR__ . '/bootstrap80.php';
|
||||
}
|
||||
if (!\function_exists('normalizer_is_normalized')) {
|
||||
function normalizer_is_normalized($string, $form = \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::FORM_C)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::isNormalized($string, $form);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('normalizer_normalize')) {
|
||||
function normalizer_normalize($string, $form = \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::FORM_C)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::normalize($string, $form);
|
||||
}
|
||||
}
|
28
vendor/symfony/polyfill-intl-normalizer/bootstrap80.php
vendored
Normal file
28
vendor/symfony/polyfill-intl-normalizer/bootstrap80.php
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer as p;
|
||||
if (!\function_exists('normalizer_is_normalized')) {
|
||||
function normalizer_is_normalized(?string $string, ?int $form = \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::FORM_C) : bool
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::isNormalized((string) $string, (int) $form);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('normalizer_normalize')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function normalizer_normalize(?string $string, ?int $form = \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::FORM_C)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Intl\Normalizer\Normalizer::normalize((string) $string, (int) $form);
|
||||
}
|
||||
}
|
52
vendor/symfony/polyfill-intl-normalizer/composer.json
vendored
Normal file
52
vendor/symfony/polyfill-intl-normalizer/composer.json
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"name": "symfony\/polyfill-intl-normalizer",
|
||||
"type": "library",
|
||||
"description": "Symfony polyfill for intl's Normalizer class and related functions",
|
||||
"keywords": [
|
||||
"polyfill",
|
||||
"shim",
|
||||
"compatibility",
|
||||
"portable",
|
||||
"intl",
|
||||
"normalizer"
|
||||
],
|
||||
"homepage": "https:\/\/symfony.com",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https:\/\/symfony.com\/contributors"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RectorPrefix20220601\\Symfony\\Polyfill\\Intl\\Normalizer\\": ""
|
||||
},
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"classmap": [
|
||||
"Resources\/stubs"
|
||||
]
|
||||
},
|
||||
"suggest": {
|
||||
"ext-intl": "For best performance"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.23-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony\/polyfill",
|
||||
"url": "https:\/\/github.com\/symfony\/polyfill"
|
||||
}
|
||||
}
|
||||
}
|
19
vendor/symfony/polyfill-mbstring/LICENSE
vendored
Normal file
19
vendor/symfony/polyfill-mbstring/LICENSE
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2015-2019 Fabien Potencier
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
698
vendor/symfony/polyfill-mbstring/Mbstring.php
vendored
Normal file
698
vendor/symfony/polyfill-mbstring/Mbstring.php
vendored
Normal file
|
@ -0,0 +1,698 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20220601\Symfony\Polyfill\Mbstring;
|
||||
|
||||
/**
|
||||
* Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
|
||||
*
|
||||
* Implemented:
|
||||
* - mb_chr - Returns a specific character from its Unicode code point
|
||||
* - mb_convert_encoding - Convert character encoding
|
||||
* - mb_convert_variables - Convert character code in variable(s)
|
||||
* - mb_decode_mimeheader - Decode string in MIME header field
|
||||
* - mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED
|
||||
* - mb_decode_numericentity - Decode HTML numeric string reference to character
|
||||
* - mb_encode_numericentity - Encode character to HTML numeric string reference
|
||||
* - mb_convert_case - Perform case folding on a string
|
||||
* - mb_detect_encoding - Detect character encoding
|
||||
* - mb_get_info - Get internal settings of mbstring
|
||||
* - mb_http_input - Detect HTTP input character encoding
|
||||
* - mb_http_output - Set/Get HTTP output character encoding
|
||||
* - mb_internal_encoding - Set/Get internal character encoding
|
||||
* - mb_list_encodings - Returns an array of all supported encodings
|
||||
* - mb_ord - Returns the Unicode code point of a character
|
||||
* - mb_output_handler - Callback function converts character encoding in output buffer
|
||||
* - mb_scrub - Replaces ill-formed byte sequences with substitute characters
|
||||
* - mb_strlen - Get string length
|
||||
* - mb_strpos - Find position of first occurrence of string in a string
|
||||
* - mb_strrpos - Find position of last occurrence of a string in a string
|
||||
* - mb_str_split - Convert a string to an array
|
||||
* - mb_strtolower - Make a string lowercase
|
||||
* - mb_strtoupper - Make a string uppercase
|
||||
* - mb_substitute_character - Set/Get substitution character
|
||||
* - mb_substr - Get part of string
|
||||
* - mb_stripos - Finds position of first occurrence of a string within another, case insensitive
|
||||
* - mb_stristr - Finds first occurrence of a string within another, case insensitive
|
||||
* - mb_strrchr - Finds the last occurrence of a character in a string within another
|
||||
* - mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive
|
||||
* - mb_strripos - Finds position of last occurrence of a string within another, case insensitive
|
||||
* - mb_strstr - Finds first occurrence of a string within another
|
||||
* - mb_strwidth - Return width of string
|
||||
* - mb_substr_count - Count the number of substring occurrences
|
||||
*
|
||||
* Not implemented:
|
||||
* - mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
|
||||
* - mb_ereg_* - Regular expression with multibyte support
|
||||
* - mb_parse_str - Parse GET/POST/COOKIE data and set global variable
|
||||
* - mb_preferred_mime_name - Get MIME charset string
|
||||
* - mb_regex_encoding - Returns current encoding for multibyte regex as string
|
||||
* - mb_regex_set_options - Set/Get the default options for mbregex functions
|
||||
* - mb_send_mail - Send encoded mail
|
||||
* - mb_split - Split multibyte string using regular expression
|
||||
* - mb_strcut - Get part of string
|
||||
* - mb_strimwidth - Get truncated string with specified width
|
||||
*
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class Mbstring
|
||||
{
|
||||
public const MB_CASE_FOLD = \PHP_INT_MAX;
|
||||
private const CASE_FOLD = [['µ', 'Å¿', "Í…", 'Ï‚', "Ï<EFBFBD>", "Ï‘", "Ï•", "Ï–", "Ï°", "ϱ", "ϵ", "ẛ", "á¾¾"], ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'Ï€', 'κ', 'Ï<>', 'ε', "ṡ", 'ι']];
|
||||
private static $encodingList = ['ASCII', 'UTF-8'];
|
||||
private static $language = 'neutral';
|
||||
private static $internalEncoding = 'UTF-8';
|
||||
public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
|
||||
{
|
||||
if (\is_array($fromEncoding) || $fromEncoding !== null && \false !== \strpos($fromEncoding, ',')) {
|
||||
$fromEncoding = self::mb_detect_encoding($s, $fromEncoding);
|
||||
} else {
|
||||
$fromEncoding = self::getEncoding($fromEncoding);
|
||||
}
|
||||
$toEncoding = self::getEncoding($toEncoding);
|
||||
if ('BASE64' === $fromEncoding) {
|
||||
$s = \base64_decode($s);
|
||||
$fromEncoding = $toEncoding;
|
||||
}
|
||||
if ('BASE64' === $toEncoding) {
|
||||
return \base64_encode($s);
|
||||
}
|
||||
if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) {
|
||||
if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) {
|
||||
$fromEncoding = 'Windows-1252';
|
||||
}
|
||||
if ('UTF-8' !== $fromEncoding) {
|
||||
$s = \iconv($fromEncoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
return \preg_replace_callback('/[\\x80-\\xFF]+/', [__CLASS__, 'html_encoding_callback'], $s);
|
||||
}
|
||||
if ('HTML-ENTITIES' === $fromEncoding) {
|
||||
$s = \html_entity_decode($s, \ENT_COMPAT, 'UTF-8');
|
||||
$fromEncoding = 'UTF-8';
|
||||
}
|
||||
return \iconv($fromEncoding, $toEncoding . '//IGNORE', $s);
|
||||
}
|
||||
public static function mb_convert_variables($toEncoding, $fromEncoding, &...$vars)
|
||||
{
|
||||
$ok = \true;
|
||||
\array_walk_recursive($vars, function (&$v) use(&$ok, $toEncoding, $fromEncoding) {
|
||||
if (\false === ($v = self::mb_convert_encoding($v, $toEncoding, $fromEncoding))) {
|
||||
$ok = \false;
|
||||
}
|
||||
});
|
||||
return $ok ? $fromEncoding : \false;
|
||||
}
|
||||
public static function mb_decode_mimeheader($s)
|
||||
{
|
||||
return \iconv_mime_decode($s, 2, self::$internalEncoding);
|
||||
}
|
||||
public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null)
|
||||
{
|
||||
\trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', \E_USER_WARNING);
|
||||
}
|
||||
public static function mb_decode_numericentity($s, $convmap, $encoding = null)
|
||||
{
|
||||
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
|
||||
\trigger_error('mb_decode_numericentity() expects parameter 1 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING);
|
||||
return null;
|
||||
}
|
||||
if (!\is_array($convmap) || 80000 > \PHP_VERSION_ID && !$convmap) {
|
||||
return \false;
|
||||
}
|
||||
if (null !== $encoding && !\is_scalar($encoding)) {
|
||||
\trigger_error('mb_decode_numericentity() expects parameter 3 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING);
|
||||
return '';
|
||||
// Instead of null (cf. mb_encode_numericentity).
|
||||
}
|
||||
$s = (string) $s;
|
||||
if ('' === $s) {
|
||||
return '';
|
||||
}
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('UTF-8' === $encoding) {
|
||||
$encoding = null;
|
||||
if (!\preg_match('//u', $s)) {
|
||||
$s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
} else {
|
||||
$s = \iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
$cnt = \floor(\count($convmap) / 4) * 4;
|
||||
for ($i = 0; $i < $cnt; $i += 4) {
|
||||
// collector_decode_htmlnumericentity ignores $convmap[$i + 3]
|
||||
$convmap[$i] += $convmap[$i + 2];
|
||||
$convmap[$i + 1] += $convmap[$i + 2];
|
||||
}
|
||||
$s = \preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use($cnt, $convmap) {
|
||||
$c = isset($m[2]) ? (int) \hexdec($m[2]) : $m[1];
|
||||
for ($i = 0; $i < $cnt; $i += 4) {
|
||||
if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) {
|
||||
return self::mb_chr($c - $convmap[$i + 2]);
|
||||
}
|
||||
}
|
||||
return $m[0];
|
||||
}, $s);
|
||||
if (null === $encoding) {
|
||||
return $s;
|
||||
}
|
||||
return \iconv('UTF-8', $encoding . '//IGNORE', $s);
|
||||
}
|
||||
public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = \false)
|
||||
{
|
||||
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
|
||||
\trigger_error('mb_encode_numericentity() expects parameter 1 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING);
|
||||
return null;
|
||||
}
|
||||
if (!\is_array($convmap) || 80000 > \PHP_VERSION_ID && !$convmap) {
|
||||
return \false;
|
||||
}
|
||||
if (null !== $encoding && !\is_scalar($encoding)) {
|
||||
\trigger_error('mb_encode_numericentity() expects parameter 3 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING);
|
||||
return null;
|
||||
// Instead of '' (cf. mb_decode_numericentity).
|
||||
}
|
||||
if (null !== $is_hex && !\is_scalar($is_hex)) {
|
||||
\trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, ' . \gettype($s) . ' given', \E_USER_WARNING);
|
||||
return null;
|
||||
}
|
||||
$s = (string) $s;
|
||||
if ('' === $s) {
|
||||
return '';
|
||||
}
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('UTF-8' === $encoding) {
|
||||
$encoding = null;
|
||||
if (!\preg_match('//u', $s)) {
|
||||
$s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
} else {
|
||||
$s = \iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
static $ulenMask = ["À" => 2, "Ð" => 2, "à" => 3, "ð" => 4];
|
||||
$cnt = \floor(\count($convmap) / 4) * 4;
|
||||
$i = 0;
|
||||
$len = \strlen($s);
|
||||
$result = '';
|
||||
while ($i < $len) {
|
||||
$ulen = $s[$i] < "€" ? 1 : $ulenMask[$s[$i] & "ð"];
|
||||
$uchr = \substr($s, $i, $ulen);
|
||||
$i += $ulen;
|
||||
$c = self::mb_ord($uchr);
|
||||
for ($j = 0; $j < $cnt; $j += 4) {
|
||||
if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) {
|
||||
$cOffset = $c + $convmap[$j + 2] & $convmap[$j + 3];
|
||||
$result .= $is_hex ? \sprintf('&#x%X;', $cOffset) : '&#' . $cOffset . ';';
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
$result .= $uchr;
|
||||
}
|
||||
if (null === $encoding) {
|
||||
return $result;
|
||||
}
|
||||
return \iconv('UTF-8', $encoding . '//IGNORE', $result);
|
||||
}
|
||||
public static function mb_convert_case($s, $mode, $encoding = null)
|
||||
{
|
||||
$s = (string) $s;
|
||||
if ('' === $s) {
|
||||
return '';
|
||||
}
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('UTF-8' === $encoding) {
|
||||
$encoding = null;
|
||||
if (!\preg_match('//u', $s)) {
|
||||
$s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
} else {
|
||||
$s = \iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
if (\MB_CASE_TITLE == $mode) {
|
||||
static $titleRegexp = null;
|
||||
if (null === $titleRegexp) {
|
||||
$titleRegexp = self::getData('titleCaseRegexp');
|
||||
}
|
||||
$s = \preg_replace_callback($titleRegexp, [__CLASS__, 'title_case'], $s);
|
||||
} else {
|
||||
if (\MB_CASE_UPPER == $mode) {
|
||||
static $upper = null;
|
||||
if (null === $upper) {
|
||||
$upper = self::getData('upperCase');
|
||||
}
|
||||
$map = $upper;
|
||||
} else {
|
||||
if (self::MB_CASE_FOLD === $mode) {
|
||||
$s = \str_replace(self::CASE_FOLD[0], self::CASE_FOLD[1], $s);
|
||||
}
|
||||
static $lower = null;
|
||||
if (null === $lower) {
|
||||
$lower = self::getData('lowerCase');
|
||||
}
|
||||
$map = $lower;
|
||||
}
|
||||
static $ulenMask = ["À" => 2, "Ð" => 2, "à" => 3, "ð" => 4];
|
||||
$i = 0;
|
||||
$len = \strlen($s);
|
||||
while ($i < $len) {
|
||||
$ulen = $s[$i] < "€" ? 1 : $ulenMask[$s[$i] & "ð"];
|
||||
$uchr = \substr($s, $i, $ulen);
|
||||
$i += $ulen;
|
||||
if (isset($map[$uchr])) {
|
||||
$uchr = $map[$uchr];
|
||||
$nlen = \strlen($uchr);
|
||||
if ($nlen == $ulen) {
|
||||
$nlen = $i;
|
||||
do {
|
||||
$s[--$nlen] = $uchr[--$ulen];
|
||||
} while ($ulen);
|
||||
} else {
|
||||
$s = \substr_replace($s, $uchr, $i - $ulen, $ulen);
|
||||
$len += $nlen - $ulen;
|
||||
$i += $nlen - $ulen;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null === $encoding) {
|
||||
return $s;
|
||||
}
|
||||
return \iconv('UTF-8', $encoding . '//IGNORE', $s);
|
||||
}
|
||||
public static function mb_internal_encoding($encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
return self::$internalEncoding;
|
||||
}
|
||||
$normalizedEncoding = self::getEncoding($encoding);
|
||||
if ('UTF-8' === $normalizedEncoding || \false !== @\iconv($normalizedEncoding, $normalizedEncoding, ' ')) {
|
||||
self::$internalEncoding = $normalizedEncoding;
|
||||
return \true;
|
||||
}
|
||||
if (80000 > \PHP_VERSION_ID) {
|
||||
return \false;
|
||||
}
|
||||
throw new \ValueError(\sprintf('Argument #1 ($encoding) must be a valid encoding, "%s" given', $encoding));
|
||||
}
|
||||
public static function mb_language($lang = null)
|
||||
{
|
||||
if (null === $lang) {
|
||||
return self::$language;
|
||||
}
|
||||
switch ($normalizedLang = \strtolower($lang)) {
|
||||
case 'uni':
|
||||
case 'neutral':
|
||||
self::$language = $normalizedLang;
|
||||
return \true;
|
||||
}
|
||||
if (80000 > \PHP_VERSION_ID) {
|
||||
return \false;
|
||||
}
|
||||
throw new \ValueError(\sprintf('Argument #1 ($language) must be a valid language, "%s" given', $lang));
|
||||
}
|
||||
public static function mb_list_encodings()
|
||||
{
|
||||
return ['UTF-8'];
|
||||
}
|
||||
public static function mb_encoding_aliases($encoding)
|
||||
{
|
||||
switch (\strtoupper($encoding)) {
|
||||
case 'UTF8':
|
||||
case 'UTF-8':
|
||||
return ['utf8'];
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
public static function mb_check_encoding($var = null, $encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
if (null === $var) {
|
||||
return \false;
|
||||
}
|
||||
$encoding = self::$internalEncoding;
|
||||
}
|
||||
return self::mb_detect_encoding($var, [$encoding]) || \false !== @\iconv($encoding, $encoding, $var);
|
||||
}
|
||||
public static function mb_detect_encoding($str, $encodingList = null, $strict = \false)
|
||||
{
|
||||
if (null === $encodingList) {
|
||||
$encodingList = self::$encodingList;
|
||||
} else {
|
||||
if (!\is_array($encodingList)) {
|
||||
$encodingList = \array_map('trim', \explode(',', $encodingList));
|
||||
}
|
||||
$encodingList = \array_map('strtoupper', $encodingList);
|
||||
}
|
||||
foreach ($encodingList as $enc) {
|
||||
switch ($enc) {
|
||||
case 'ASCII':
|
||||
if (!\preg_match('/[\\x80-\\xFF]/', $str)) {
|
||||
return $enc;
|
||||
}
|
||||
break;
|
||||
case 'UTF8':
|
||||
case 'UTF-8':
|
||||
if (\preg_match('//u', $str)) {
|
||||
return 'UTF-8';
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (0 === \strncmp($enc, 'ISO-8859-', 9)) {
|
||||
return $enc;
|
||||
}
|
||||
}
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
public static function mb_detect_order($encodingList = null)
|
||||
{
|
||||
if (null === $encodingList) {
|
||||
return self::$encodingList;
|
||||
}
|
||||
if (!\is_array($encodingList)) {
|
||||
$encodingList = \array_map('trim', \explode(',', $encodingList));
|
||||
}
|
||||
$encodingList = \array_map('strtoupper', $encodingList);
|
||||
foreach ($encodingList as $enc) {
|
||||
switch ($enc) {
|
||||
default:
|
||||
if (\strncmp($enc, 'ISO-8859-', 9)) {
|
||||
return \false;
|
||||
}
|
||||
// no break
|
||||
case 'ASCII':
|
||||
case 'UTF8':
|
||||
case 'UTF-8':
|
||||
}
|
||||
}
|
||||
self::$encodingList = $encodingList;
|
||||
return \true;
|
||||
}
|
||||
public static function mb_strlen($s, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return \strlen($s);
|
||||
}
|
||||
return @\iconv_strlen($s, $encoding);
|
||||
}
|
||||
public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return \strpos($haystack, $needle, $offset);
|
||||
}
|
||||
$needle = (string) $needle;
|
||||
if ('' === $needle) {
|
||||
if (80000 > \PHP_VERSION_ID) {
|
||||
\trigger_error(__METHOD__ . ': Empty delimiter', \E_USER_WARNING);
|
||||
return \false;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return \iconv_strpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return \strrpos($haystack, $needle, $offset);
|
||||
}
|
||||
if ($offset != (int) $offset) {
|
||||
$offset = 0;
|
||||
} elseif ($offset = (int) $offset) {
|
||||
if ($offset < 0) {
|
||||
if (0 > ($offset += self::mb_strlen($needle))) {
|
||||
$haystack = self::mb_substr($haystack, 0, $offset, $encoding);
|
||||
}
|
||||
$offset = 0;
|
||||
} else {
|
||||
$haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
|
||||
}
|
||||
}
|
||||
$pos = '' !== $needle || 80000 > \PHP_VERSION_ID ? \iconv_strrpos($haystack, $needle, $encoding) : self::mb_strlen($haystack, $encoding);
|
||||
return \false !== $pos ? $offset + $pos : \false;
|
||||
}
|
||||
public static function mb_str_split($string, $split_length = 1, $encoding = null)
|
||||
{
|
||||
if (null !== $string && !\is_scalar($string) && !(\is_object($string) && \method_exists($string, '__toString'))) {
|
||||
\trigger_error('mb_str_split() expects parameter 1 to be string, ' . \gettype($string) . ' given', \E_USER_WARNING);
|
||||
return null;
|
||||
}
|
||||
if (1 > ($split_length = (int) $split_length)) {
|
||||
if (80000 > \PHP_VERSION_ID) {
|
||||
\trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING);
|
||||
return \false;
|
||||
}
|
||||
throw new \ValueError('Argument #2 ($length) must be greater than 0');
|
||||
}
|
||||
if (null === $encoding) {
|
||||
$encoding = \mb_internal_encoding();
|
||||
}
|
||||
if ('UTF-8' === ($encoding = self::getEncoding($encoding))) {
|
||||
$rx = '/(';
|
||||
while (65535 < $split_length) {
|
||||
$rx .= '.{65535}';
|
||||
$split_length -= 65535;
|
||||
}
|
||||
$rx .= '.{' . $split_length . '})/us';
|
||||
return \preg_split($rx, $string, null, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY);
|
||||
}
|
||||
$result = [];
|
||||
$length = \mb_strlen($string, $encoding);
|
||||
for ($i = 0; $i < $length; $i += $split_length) {
|
||||
$result[] = \mb_substr($string, $i, $split_length, $encoding);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
public static function mb_strtolower($s, $encoding = null)
|
||||
{
|
||||
return self::mb_convert_case($s, \MB_CASE_LOWER, $encoding);
|
||||
}
|
||||
public static function mb_strtoupper($s, $encoding = null)
|
||||
{
|
||||
return self::mb_convert_case($s, \MB_CASE_UPPER, $encoding);
|
||||
}
|
||||
public static function mb_substitute_character($c = null)
|
||||
{
|
||||
if (null === $c) {
|
||||
return 'none';
|
||||
}
|
||||
if (0 === \strcasecmp($c, 'none')) {
|
||||
return \true;
|
||||
}
|
||||
if (80000 > \PHP_VERSION_ID) {
|
||||
return \false;
|
||||
}
|
||||
if (\is_int($c) || 'long' === $c || 'entity' === $c) {
|
||||
return \false;
|
||||
}
|
||||
throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint');
|
||||
}
|
||||
public static function mb_substr($s, $start, $length = null, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return (string) \substr($s, $start, null === $length ? 2147483647 : $length);
|
||||
}
|
||||
if ($start < 0) {
|
||||
$start = \iconv_strlen($s, $encoding) + $start;
|
||||
if ($start < 0) {
|
||||
$start = 0;
|
||||
}
|
||||
}
|
||||
if (null === $length) {
|
||||
$length = 2147483647;
|
||||
} elseif ($length < 0) {
|
||||
$length = \iconv_strlen($s, $encoding) + $length - $start;
|
||||
if ($length < 0) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
return (string) \iconv_substr($s, $start, $length, $encoding);
|
||||
}
|
||||
public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
|
||||
$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
|
||||
return self::mb_strpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
public static function mb_stristr($haystack, $needle, $part = \false, $encoding = null)
|
||||
{
|
||||
$pos = self::mb_stripos($haystack, $needle, 0, $encoding);
|
||||
return self::getSubpart($pos, $part, $haystack, $encoding);
|
||||
}
|
||||
public static function mb_strrchr($haystack, $needle, $part = \false, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
$pos = \strrpos($haystack, $needle);
|
||||
} else {
|
||||
$needle = self::mb_substr($needle, 0, 1, $encoding);
|
||||
$pos = \iconv_strrpos($haystack, $needle, $encoding);
|
||||
}
|
||||
return self::getSubpart($pos, $part, $haystack, $encoding);
|
||||
}
|
||||
public static function mb_strrichr($haystack, $needle, $part = \false, $encoding = null)
|
||||
{
|
||||
$needle = self::mb_substr($needle, 0, 1, $encoding);
|
||||
$pos = self::mb_strripos($haystack, $needle, $encoding);
|
||||
return self::getSubpart($pos, $part, $haystack, $encoding);
|
||||
}
|
||||
public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
|
||||
$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
|
||||
return self::mb_strrpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
public static function mb_strstr($haystack, $needle, $part = \false, $encoding = null)
|
||||
{
|
||||
$pos = \strpos($haystack, $needle);
|
||||
if (\false === $pos) {
|
||||
return \false;
|
||||
}
|
||||
if ($part) {
|
||||
return \substr($haystack, 0, $pos);
|
||||
}
|
||||
return \substr($haystack, $pos);
|
||||
}
|
||||
public static function mb_get_info($type = 'all')
|
||||
{
|
||||
$info = ['internal_encoding' => self::$internalEncoding, 'http_output' => 'pass', 'http_output_conv_mimetypes' => '^(text/|application/xhtml\\+xml)', 'func_overload' => 0, 'func_overload_list' => 'no overload', 'mail_charset' => 'UTF-8', 'mail_header_encoding' => 'BASE64', 'mail_body_encoding' => 'BASE64', 'illegal_chars' => 0, 'encoding_translation' => 'Off', 'language' => self::$language, 'detect_order' => self::$encodingList, 'substitute_character' => 'none', 'strict_detection' => 'Off'];
|
||||
if ('all' === $type) {
|
||||
return $info;
|
||||
}
|
||||
if (isset($info[$type])) {
|
||||
return $info[$type];
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
public static function mb_http_input($type = '')
|
||||
{
|
||||
return \false;
|
||||
}
|
||||
public static function mb_http_output($encoding = null)
|
||||
{
|
||||
return null !== $encoding ? 'pass' === $encoding : 'pass';
|
||||
}
|
||||
public static function mb_strwidth($s, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('UTF-8' !== $encoding) {
|
||||
$s = \iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
$s = \preg_replace('/[\\x{1100}-\\x{115F}\\x{2329}\\x{232A}\\x{2E80}-\\x{303E}\\x{3040}-\\x{A4CF}\\x{AC00}-\\x{D7A3}\\x{F900}-\\x{FAFF}\\x{FE10}-\\x{FE19}\\x{FE30}-\\x{FE6F}\\x{FF00}-\\x{FF60}\\x{FFE0}-\\x{FFE6}\\x{20000}-\\x{2FFFD}\\x{30000}-\\x{3FFFD}]/u', '', $s, -1, $wide);
|
||||
return ($wide << 1) + \iconv_strlen($s, 'UTF-8');
|
||||
}
|
||||
public static function mb_substr_count($haystack, $needle, $encoding = null)
|
||||
{
|
||||
return \substr_count($haystack, $needle);
|
||||
}
|
||||
public static function mb_output_handler($contents, $status)
|
||||
{
|
||||
return $contents;
|
||||
}
|
||||
public static function mb_chr($code, $encoding = null)
|
||||
{
|
||||
if (0x80 > ($code %= 0x200000)) {
|
||||
$s = \chr($code);
|
||||
} elseif (0x800 > $code) {
|
||||
$s = \chr(0xc0 | $code >> 6) . \chr(0x80 | $code & 0x3f);
|
||||
} elseif (0x10000 > $code) {
|
||||
$s = \chr(0xe0 | $code >> 12) . \chr(0x80 | $code >> 6 & 0x3f) . \chr(0x80 | $code & 0x3f);
|
||||
} else {
|
||||
$s = \chr(0xf0 | $code >> 18) . \chr(0x80 | $code >> 12 & 0x3f) . \chr(0x80 | $code >> 6 & 0x3f) . \chr(0x80 | $code & 0x3f);
|
||||
}
|
||||
if ('UTF-8' !== ($encoding = self::getEncoding($encoding))) {
|
||||
$s = \mb_convert_encoding($s, $encoding, 'UTF-8');
|
||||
}
|
||||
return $s;
|
||||
}
|
||||
public static function mb_ord($s, $encoding = null)
|
||||
{
|
||||
if ('UTF-8' !== ($encoding = self::getEncoding($encoding))) {
|
||||
$s = \mb_convert_encoding($s, 'UTF-8', $encoding);
|
||||
}
|
||||
if (1 === \strlen($s)) {
|
||||
return \ord($s);
|
||||
}
|
||||
$code = ($s = \unpack('C*', \substr($s, 0, 4))) ? $s[1] : 0;
|
||||
if (0xf0 <= $code) {
|
||||
return ($code - 0xf0 << 18) + ($s[2] - 0x80 << 12) + ($s[3] - 0x80 << 6) + $s[4] - 0x80;
|
||||
}
|
||||
if (0xe0 <= $code) {
|
||||
return ($code - 0xe0 << 12) + ($s[2] - 0x80 << 6) + $s[3] - 0x80;
|
||||
}
|
||||
if (0xc0 <= $code) {
|
||||
return ($code - 0xc0 << 6) + $s[2] - 0x80;
|
||||
}
|
||||
return $code;
|
||||
}
|
||||
private static function getSubpart($pos, $part, $haystack, $encoding)
|
||||
{
|
||||
if (\false === $pos) {
|
||||
return \false;
|
||||
}
|
||||
if ($part) {
|
||||
return self::mb_substr($haystack, 0, $pos, $encoding);
|
||||
}
|
||||
return self::mb_substr($haystack, $pos, null, $encoding);
|
||||
}
|
||||
private static function html_encoding_callback(array $m)
|
||||
{
|
||||
$i = 1;
|
||||
$entities = '';
|
||||
$m = \unpack('C*', \htmlentities($m[0], \ENT_COMPAT, 'UTF-8'));
|
||||
while (isset($m[$i])) {
|
||||
if (0x80 > $m[$i]) {
|
||||
$entities .= \chr($m[$i++]);
|
||||
continue;
|
||||
}
|
||||
if (0xf0 <= $m[$i]) {
|
||||
$c = ($m[$i++] - 0xf0 << 18) + ($m[$i++] - 0x80 << 12) + ($m[$i++] - 0x80 << 6) + $m[$i++] - 0x80;
|
||||
} elseif (0xe0 <= $m[$i]) {
|
||||
$c = ($m[$i++] - 0xe0 << 12) + ($m[$i++] - 0x80 << 6) + $m[$i++] - 0x80;
|
||||
} else {
|
||||
$c = ($m[$i++] - 0xc0 << 6) + $m[$i++] - 0x80;
|
||||
}
|
||||
$entities .= '&#' . $c . ';';
|
||||
}
|
||||
return $entities;
|
||||
}
|
||||
private static function title_case(array $s)
|
||||
{
|
||||
return self::mb_convert_case($s[1], \MB_CASE_UPPER, 'UTF-8') . self::mb_convert_case($s[2], \MB_CASE_LOWER, 'UTF-8');
|
||||
}
|
||||
private static function getData($file)
|
||||
{
|
||||
if (\file_exists($file = __DIR__ . '/Resources/unidata/' . $file . '.php')) {
|
||||
return require $file;
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
private static function getEncoding($encoding)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
return self::$internalEncoding;
|
||||
}
|
||||
if ('UTF-8' === $encoding) {
|
||||
return 'UTF-8';
|
||||
}
|
||||
$encoding = \strtoupper($encoding);
|
||||
if ('8BIT' === $encoding || 'BINARY' === $encoding) {
|
||||
return 'CP850';
|
||||
}
|
||||
if ('UTF8' === $encoding) {
|
||||
return 'UTF-8';
|
||||
}
|
||||
return $encoding;
|
||||
}
|
||||
}
|
13
vendor/symfony/polyfill-mbstring/README.md
vendored
Normal file
13
vendor/symfony/polyfill-mbstring/README.md
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
Symfony Polyfill / Mbstring
|
||||
===========================
|
||||
|
||||
This component provides a partial, native PHP implementation for the
|
||||
[Mbstring](https://php.net/mbstring) extension.
|
||||
|
||||
More information can be found in the
|
||||
[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
This library is released under the [MIT license](LICENSE).
|
5
vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
vendored
Normal file
5
vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
vendored
Normal file
File diff suppressed because one or more lines are too long
6
vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php
vendored
Normal file
6
vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php
vendored
Normal file
File diff suppressed because one or more lines are too long
5
vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
vendored
Normal file
5
vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
vendored
Normal file
File diff suppressed because one or more lines are too long
258
vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
Normal file
258
vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
Normal file
|
@ -0,0 +1,258 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220601\Symfony\Polyfill\Mbstring as p;
|
||||
if (\PHP_VERSION_ID >= 80000) {
|
||||
return require __DIR__ . '/bootstrap80.php';
|
||||
}
|
||||
if (!\function_exists('mb_convert_encoding')) {
|
||||
function mb_convert_encoding($string, $to_encoding, $from_encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader($string)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_decode_numericentity($string, $map, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity($string, $map, $encoding = null, $hex = \false)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_convert_case')) {
|
||||
function mb_convert_case($string, $mode, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_case($string, $mode, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_internal_encoding')) {
|
||||
function mb_internal_encoding($encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_internal_encoding($encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_language')) {
|
||||
function mb_language($language = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_language($language);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings()
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_list_encodings();
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases($encoding)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_encoding_aliases($encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_check_encoding')) {
|
||||
function mb_check_encoding($value = null, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_check_encoding($value, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_detect_encoding')) {
|
||||
function mb_detect_encoding($string, $encodings = null, $strict = \false)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_detect_encoding($string, $encodings, $strict);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_detect_order')) {
|
||||
function mb_detect_order($encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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_strlen')) {
|
||||
function mb_strlen($string, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strlen($string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strpos')) {
|
||||
function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strtolower')) {
|
||||
function mb_strtolower($string, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strtolower($string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper($string, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strtoupper($string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_substitute_character')) {
|
||||
function mb_substitute_character($substitute_character = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_substitute_character($substitute_character);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_substr')) {
|
||||
function mb_substr($string, $start, $length = 2147483647, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_substr($string, $start, $length, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_stripos')) {
|
||||
function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_stristr')) {
|
||||
function mb_stristr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strrchr')) {
|
||||
function mb_strrchr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strrichr')) {
|
||||
function mb_strrichr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strripos')) {
|
||||
function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strrpos')) {
|
||||
function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strstr')) {
|
||||
function mb_strstr($haystack, $needle, $before_needle = \false, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_get_info')) {
|
||||
function mb_get_info($type = 'all')
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_get_info($type);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_http_output')) {
|
||||
function mb_http_output($encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_http_output($encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strwidth')) {
|
||||
function mb_strwidth($string, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strwidth($string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_substr_count')) {
|
||||
function mb_substr_count($haystack, $needle, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_substr_count($haystack, $needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_output_handler')) {
|
||||
function mb_output_handler($string, $status)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_output_handler($string, $status);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_http_input')) {
|
||||
function mb_http_input($type = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_http_input($type);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_convert_variables')) {
|
||||
function mb_convert_variables($to_encoding, $from_encoding, &...$vars)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_ord')) {
|
||||
function mb_ord($string, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_ord($string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_chr')) {
|
||||
function mb_chr($codepoint, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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_str_split')) {
|
||||
function mb_str_split($string, $length = 1, $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_str_split($string, $length, $encoding);
|
||||
}
|
||||
}
|
||||
if (\extension_loaded('mbstring')) {
|
||||
return;
|
||||
}
|
||||
if (!\defined('MB_CASE_UPPER')) {
|
||||
\define('MB_CASE_UPPER', 0);
|
||||
}
|
||||
if (!\defined('MB_CASE_LOWER')) {
|
||||
\define('MB_CASE_LOWER', 1);
|
||||
}
|
||||
if (!\defined('MB_CASE_TITLE')) {
|
||||
\define('MB_CASE_TITLE', 2);
|
||||
}
|
326
vendor/symfony/polyfill-mbstring/bootstrap80.php
vendored
Normal file
326
vendor/symfony/polyfill-mbstring/bootstrap80.php
vendored
Normal file
|
@ -0,0 +1,326 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
use RectorPrefix20220601\Symfony\Polyfill\Mbstring as p;
|
||||
if (!\function_exists('mb_convert_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $string
|
||||
* @param mixed[]|string|null $from_encoding
|
||||
* @return mixed[]|string|true
|
||||
*/
|
||||
function mb_convert_encoding($string, ?string $to_encoding, $from_encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader(?string $string) : string
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_internal_encoding')) {
|
||||
/**
|
||||
* @return string|bool
|
||||
*/
|
||||
function mb_internal_encoding(?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_internal_encoding($encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_language')) {
|
||||
/**
|
||||
* @return string|bool
|
||||
*/
|
||||
function mb_language(?string $language = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_language($language);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings() : array
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_list_encodings();
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases(?string $encoding) : array
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_encoding_aliases((string) $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_check_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $value
|
||||
*/
|
||||
function mb_check_encoding($value = null, ?string $encoding = null) : bool
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_check_encoding($value, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_detect_encoding')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $encodings
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_detect_encoding(?string $string, $encodings = null, ?bool $strict = \false)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_detect_order')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $encoding
|
||||
* @return mixed[]|bool
|
||||
*/
|
||||
function mb_detect_order($encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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_strlen')) {
|
||||
function mb_strlen(?string $string, ?string $encoding = null) : int
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strlen((string) $string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strpos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strtolower((string) $string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strtoupper((string) $string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_substitute_character')) {
|
||||
/**
|
||||
* @param string|int|null $substitute_character
|
||||
* @return string|int|bool
|
||||
*/
|
||||
function mb_substitute_character($substitute_character = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_stripos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_stristr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strrchr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strrichr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strripos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strrpos')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strstr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = \false, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_get_info')) {
|
||||
/**
|
||||
* @return mixed[]|string|int|true
|
||||
*/
|
||||
function mb_get_info(?string $type = 'all')
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_get_info((string) $type);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_http_output')) {
|
||||
/**
|
||||
* @return string|bool
|
||||
*/
|
||||
function mb_http_output(?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_http_output($encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_strwidth')) {
|
||||
function mb_strwidth(?string $string, ?string $encoding = null) : int
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_output_handler((string) $string, (int) $status);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_http_input')) {
|
||||
/**
|
||||
* @return mixed[]|string|true
|
||||
*/
|
||||
function mb_http_input(?string $type = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_http_input($type);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_convert_variables')) {
|
||||
/**
|
||||
* @param mixed[]|string|null $from_encoding
|
||||
* @return string|true
|
||||
* @param mixed $var
|
||||
* @param mixed ...$vars
|
||||
*/
|
||||
function mb_convert_variables(?string $to_encoding, $from_encoding, &$var, &...$vars)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_ord')) {
|
||||
/**
|
||||
* @return int|true
|
||||
*/
|
||||
function mb_ord(?string $string, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_ord((string) $string, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_chr')) {
|
||||
/**
|
||||
* @return string|true
|
||||
*/
|
||||
function mb_chr(?int $codepoint, ?string $encoding = null)
|
||||
{
|
||||
return \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_chr((int) $codepoint, $encoding);
|
||||
}
|
||||
}
|
||||
if (!\function_exists('mb_scrub')) {
|
||||
function mb_scrub(?string $string, ?string $encoding = null) : string
|
||||
{
|
||||
$encoding = $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 \RectorPrefix20220601\Symfony\Polyfill\Mbstring\Mbstring::mb_str_split((string) $string, (int) $length, $encoding);
|
||||
}
|
||||
}
|
||||
if (\extension_loaded('mbstring')) {
|
||||
return;
|
||||
}
|
||||
if (!\defined('MB_CASE_UPPER')) {
|
||||
\define('MB_CASE_UPPER', 0);
|
||||
}
|
||||
if (!\defined('MB_CASE_LOWER')) {
|
||||
\define('MB_CASE_LOWER', 1);
|
||||
}
|
||||
if (!\defined('MB_CASE_TITLE')) {
|
||||
\define('MB_CASE_TITLE', 2);
|
||||
}
|
51
vendor/symfony/polyfill-mbstring/composer.json
vendored
Normal file
51
vendor/symfony/polyfill-mbstring/composer.json
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"name": "symfony\/polyfill-mbstring",
|
||||
"type": "library",
|
||||
"description": "Symfony polyfill for the Mbstring extension",
|
||||
"keywords": [
|
||||
"polyfill",
|
||||
"shim",
|
||||
"compatibility",
|
||||
"portable",
|
||||
"mbstring"
|
||||
],
|
||||
"homepage": "https:\/\/symfony.com",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https:\/\/symfony.com\/contributors"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"provide": {
|
||||
"ext-mbstring": "*"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RectorPrefix20220601\\Symfony\\Polyfill\\Mbstring\\": ""
|
||||
},
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
]
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.23-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony\/polyfill",
|
||||
"url": "https:\/\/github.com\/symfony\/polyfill"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user