diff --git a/rules/Naming/Naming/VariableNaming.php b/rules/Naming/Naming/VariableNaming.php index 8e456cc1abf..8c4e8fca8ee 100644 --- a/rules/Naming/Naming/VariableNaming.php +++ b/rules/Naming/Naming/VariableNaming.php @@ -20,7 +20,6 @@ use Rector\Naming\AssignVariableNameResolver\PropertyFetchAssignVariableNameReso use Rector\Naming\Contract\AssignVariableNameResolverInterface; use Rector\NodeNameResolver\NodeNameResolver; use Rector\NodeTypeResolver\NodeTypeResolver; -use RectorPrefix202308\Symfony\Component\String\UnicodeString; /** * @api used in downgrade */ @@ -76,12 +75,9 @@ final class VariableNaming // adjust static to specific class if ($variableName === 'this' && $type instanceof ThisType) { $shortClassName = $this->nodeNameResolver->getShortName($type->getClassName()); - $variableName = \lcfirst($shortClassName); - } else { - $variableName = $this->nodeNameResolver->getShortName($variableName); + return \lcfirst($shortClassName); } - $variableNameUnicodeString = new UnicodeString($variableName); - return $variableNameUnicodeString->camel()->toString(); + return $this->nodeNameResolver->getShortName($variableName); } private function resolveFromNode(Node $node) : ?string { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 1916b58dfc7..1586454a4cb 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'e380cf8fdb65fe9929ed047dafdd49fadb00e01c'; + public const PACKAGE_VERSION = 'ef35a4957b1afbede20679d94529393f4e6d1286'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-08-04 17:41:55'; + public const RELEASE_DATE = '2023-08-04 17:46:16'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index 39649dcef80..6bc44778073 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit15f3e70791108ba750c465057c7145d0::getLoader(); +return ComposerAutoloaderInit7f8939978aa6ea55b7218d369d827372::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index f9a4d77c56b..7a294831f9b 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -661,16 +661,9 @@ return array( 'RectorPrefix202308\\OndraM\\CiDetector\\Env' => $vendorDir . '/ondram/ci-detector/src/Env.php', 'RectorPrefix202308\\OndraM\\CiDetector\\Exception\\CiNotDetectedException' => $vendorDir . '/ondram/ci-detector/src/Exception/CiNotDetectedException.php', 'RectorPrefix202308\\OndraM\\CiDetector\\TrinaryLogic' => $vendorDir . '/ondram/ci-detector/src/TrinaryLogic.php', - 'RectorPrefix202308\\Psr\\Cache\\CacheException' => $vendorDir . '/psr/cache/src/CacheException.php', - 'RectorPrefix202308\\Psr\\Cache\\CacheItemInterface' => $vendorDir . '/psr/cache/src/CacheItemInterface.php', - 'RectorPrefix202308\\Psr\\Cache\\CacheItemPoolInterface' => $vendorDir . '/psr/cache/src/CacheItemPoolInterface.php', - 'RectorPrefix202308\\Psr\\Cache\\InvalidArgumentException' => $vendorDir . '/psr/cache/src/InvalidArgumentException.php', 'RectorPrefix202308\\Psr\\Container\\ContainerExceptionInterface' => $vendorDir . '/psr/container/src/ContainerExceptionInterface.php', 'RectorPrefix202308\\Psr\\Container\\ContainerInterface' => $vendorDir . '/psr/container/src/ContainerInterface.php', 'RectorPrefix202308\\Psr\\Container\\NotFoundExceptionInterface' => $vendorDir . '/psr/container/src/NotFoundExceptionInterface.php', - 'RectorPrefix202308\\Psr\\EventDispatcher\\EventDispatcherInterface' => $vendorDir . '/psr/event-dispatcher/src/EventDispatcherInterface.php', - 'RectorPrefix202308\\Psr\\EventDispatcher\\ListenerProviderInterface' => $vendorDir . '/psr/event-dispatcher/src/ListenerProviderInterface.php', - 'RectorPrefix202308\\Psr\\EventDispatcher\\StoppableEventInterface' => $vendorDir . '/psr/event-dispatcher/src/StoppableEventInterface.php', 'RectorPrefix202308\\Psr\\Log\\AbstractLogger' => $vendorDir . '/psr/log/src/AbstractLogger.php', 'RectorPrefix202308\\Psr\\Log\\InvalidArgumentException' => $vendorDir . '/psr/log/src/InvalidArgumentException.php', 'RectorPrefix202308\\Psr\\Log\\LogLevel' => $vendorDir . '/psr/log/src/LogLevel.php', @@ -1199,40 +1192,13 @@ return array( 'RectorPrefix202308\\Symfony\\Component\\String\\Slugger\\AsciiSlugger' => $vendorDir . '/symfony/string/Slugger/AsciiSlugger.php', 'RectorPrefix202308\\Symfony\\Component\\String\\Slugger\\SluggerInterface' => $vendorDir . '/symfony/string/Slugger/SluggerInterface.php', 'RectorPrefix202308\\Symfony\\Component\\String\\UnicodeString' => $vendorDir . '/symfony/string/UnicodeString.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\CacheInterface' => $vendorDir . '/symfony/contracts/Cache/CacheInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\CacheTrait' => $vendorDir . '/symfony/contracts/Cache/CacheTrait.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\CallbackInterface' => $vendorDir . '/symfony/contracts/Cache/CallbackInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\TagAwareCacheInterface' => $vendorDir . '/symfony/contracts/Cache/TagAwareCacheInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\EventDispatcher\\Event' => $vendorDir . '/symfony/contracts/EventDispatcher/Event.php', - 'RectorPrefix202308\\Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface' => $vendorDir . '/symfony/contracts/EventDispatcher/EventDispatcherInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\ChunkInterface' => $vendorDir . '/symfony/contracts/HttpClient/ChunkInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/ClientExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/DecodingExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\ExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/ExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/HttpExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/RedirectionExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/ServerExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\TimeoutExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/TimeoutExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface' => $vendorDir . '/symfony/contracts/HttpClient/Exception/TransportExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\HttpClientInterface' => $vendorDir . '/symfony/contracts/HttpClient/HttpClientInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\ResponseInterface' => $vendorDir . '/symfony/contracts/HttpClient/ResponseInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\ResponseStreamInterface' => $vendorDir . '/symfony/contracts/HttpClient/ResponseStreamInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Test\\HttpClientTestCase' => $vendorDir . '/symfony/contracts/HttpClient/Test/HttpClientTestCase.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Test\\TestHttpServer' => $vendorDir . '/symfony/contracts/HttpClient/Test/TestHttpServer.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\Required' => $vendorDir . '/symfony/contracts/Service/Attribute/Required.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\SubscribedService' => $vendorDir . '/symfony/contracts/Service/Attribute/SubscribedService.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ResetInterface' => $vendorDir . '/symfony/contracts/Service/ResetInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceLocatorTrait' => $vendorDir . '/symfony/contracts/Service/ServiceLocatorTrait.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceProviderInterface' => $vendorDir . '/symfony/contracts/Service/ServiceProviderInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberInterface' => $vendorDir . '/symfony/contracts/Service/ServiceSubscriberInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberTrait' => $vendorDir . '/symfony/contracts/Service/ServiceSubscriberTrait.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Test\\ServiceLocatorTest' => $vendorDir . '/symfony/contracts/Service/Test/ServiceLocatorTest.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Test\\ServiceLocatorTestCase' => $vendorDir . '/symfony/contracts/Service/Test/ServiceLocatorTestCase.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\LocaleAwareInterface' => $vendorDir . '/symfony/contracts/Translation/LocaleAwareInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\Test\\TranslatorTest' => $vendorDir . '/symfony/contracts/Translation/Test/TranslatorTest.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\TranslatableInterface' => $vendorDir . '/symfony/contracts/Translation/TranslatableInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\TranslatorInterface' => $vendorDir . '/symfony/contracts/Translation/TranslatorInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\TranslatorTrait' => $vendorDir . '/symfony/contracts/Translation/TranslatorTrait.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\Required' => $vendorDir . '/symfony/service-contracts/Attribute/Required.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\SubscribedService' => $vendorDir . '/symfony/service-contracts/Attribute/SubscribedService.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ResetInterface' => $vendorDir . '/symfony/service-contracts/ResetInterface.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceLocatorTrait' => $vendorDir . '/symfony/service-contracts/ServiceLocatorTrait.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceProviderInterface' => $vendorDir . '/symfony/service-contracts/ServiceProviderInterface.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberInterface' => $vendorDir . '/symfony/service-contracts/ServiceSubscriberInterface.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberTrait' => $vendorDir . '/symfony/service-contracts/ServiceSubscriberTrait.php', 'RectorPrefix202308\\Symplify\\EasyParallel\\CommandLine\\WorkerCommandLineFactory' => $vendorDir . '/symplify/easy-parallel/src/CommandLine/WorkerCommandLineFactory.php', 'RectorPrefix202308\\Symplify\\EasyParallel\\Contract\\SerializableInterface' => $vendorDir . '/symplify/easy-parallel/src/Contract/SerializableInterface.php', 'RectorPrefix202308\\Symplify\\EasyParallel\\CpuCoreCountProvider' => $vendorDir . '/symplify/easy-parallel/src/CpuCoreCountProvider.php', diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index 2ad860e2e44..692ee3ca7c3 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -8,10 +8,10 @@ $baseDir = dirname($vendorDir); return array( 'ad155f8f1cf0d418fe49e248db8c661b' => $vendorDir . '/react/promise/src/functions_include.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', + '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', 'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => $vendorDir . '/symfony/string/Resources/functions.php', '9b38cf48e83f5d8f60375221cd213eee' => $vendorDir . '/phpstan/phpstan/bootstrap.php', - '2324d0e5cadd603331d27de142371f0b' => $vendorDir . '/symfony/contracts/Deprecation/function.php', 'd507e002f7fce7f0c6dbf1f22edcb902' => $vendorDir . '/tracy/tracy/src/Tracy/functions.php', '4508688f3cab21375725e8d11ca194a2' => $baseDir . '/src/constants.php', '30bca7fff093e8069bed7c55247e2bf8' => $baseDir . '/src/functions/node_helper.php', diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index ffac784918b..1890e6607f8 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -18,7 +18,7 @@ return array( 'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src', $vendorDir . '/rector/rector-downgrade-php/rules'), 'RectorPrefix202308\\Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'), 'RectorPrefix202308\\Symplify\\EasyParallel\\' => array($vendorDir . '/symplify/easy-parallel/src'), - 'RectorPrefix202308\\Symfony\\Contracts\\' => array($vendorDir . '/symfony/contracts'), + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\' => array($vendorDir . '/symfony/service-contracts'), 'RectorPrefix202308\\Symfony\\Component\\String\\' => array($vendorDir . '/symfony/string'), 'RectorPrefix202308\\Symfony\\Component\\Process\\' => array($vendorDir . '/symfony/process'), 'RectorPrefix202308\\Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'), @@ -35,9 +35,7 @@ return array( 'RectorPrefix202308\\React\\Cache\\' => array($vendorDir . '/react/cache/src'), 'RectorPrefix202308\\Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'), 'RectorPrefix202308\\Psr\\Log\\' => array($vendorDir . '/psr/log/src'), - 'RectorPrefix202308\\Psr\\EventDispatcher\\' => array($vendorDir . '/psr/event-dispatcher/src'), 'RectorPrefix202308\\Psr\\Container\\' => array($vendorDir . '/psr/container/src'), - 'RectorPrefix202308\\Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'), 'RectorPrefix202308\\OndraM\\CiDetector\\' => array($vendorDir . '/ondram/ci-detector/src'), 'RectorPrefix202308\\Illuminate\\Contracts\\' => array($vendorDir . '/illuminate/contracts'), 'RectorPrefix202308\\Illuminate\\Container\\' => array($vendorDir . '/illuminate/container'), diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 261fb230212..55e61d55e10 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit15f3e70791108ba750c465057c7145d0 +class ComposerAutoloaderInit7f8939978aa6ea55b7218d369d827372 { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInit15f3e70791108ba750c465057c7145d0 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit15f3e70791108ba750c465057c7145d0', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit7f8939978aa6ea55b7218d369d827372', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit15f3e70791108ba750c465057c7145d0', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit7f8939978aa6ea55b7218d369d827372', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit15f3e70791108ba750c465057c7145d0::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit7f8939978aa6ea55b7218d369d827372::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit15f3e70791108ba750c465057c7145d0::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit7f8939978aa6ea55b7218d369d827372::$files; $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 44b164b2d8e..630b37808df 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,15 +4,15 @@ namespace Composer\Autoload; -class ComposerStaticInit15f3e70791108ba750c465057c7145d0 +class ComposerStaticInit7f8939978aa6ea55b7218d369d827372 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', + '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => __DIR__ . '/..' . '/symfony/string/Resources/functions.php', '9b38cf48e83f5d8f60375221cd213eee' => __DIR__ . '/..' . '/phpstan/phpstan/bootstrap.php', - '2324d0e5cadd603331d27de142371f0b' => __DIR__ . '/..' . '/symfony/contracts/Deprecation/function.php', 'd507e002f7fce7f0c6dbf1f22edcb902' => __DIR__ . '/..' . '/tracy/tracy/src/Tracy/functions.php', '4508688f3cab21375725e8d11ca194a2' => __DIR__ . '/../..' . '/src/constants.php', '30bca7fff093e8069bed7c55247e2bf8' => __DIR__ . '/../..' . '/src/functions/node_helper.php', @@ -36,7 +36,7 @@ class ComposerStaticInit15f3e70791108ba750c465057c7145d0 'Rector\\' => 7, 'RectorPrefix202308\\Webmozart\\Assert\\' => 36, 'RectorPrefix202308\\Symplify\\EasyParallel\\' => 41, - 'RectorPrefix202308\\Symfony\\Contracts\\' => 37, + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\' => 45, 'RectorPrefix202308\\Symfony\\Component\\String\\' => 44, 'RectorPrefix202308\\Symfony\\Component\\Process\\' => 45, 'RectorPrefix202308\\Symfony\\Component\\Finder\\' => 44, @@ -53,9 +53,7 @@ class ComposerStaticInit15f3e70791108ba750c465057c7145d0 'RectorPrefix202308\\React\\Cache\\' => 31, 'RectorPrefix202308\\Psr\\SimpleCache\\' => 35, 'RectorPrefix202308\\Psr\\Log\\' => 27, - 'RectorPrefix202308\\Psr\\EventDispatcher\\' => 39, 'RectorPrefix202308\\Psr\\Container\\' => 33, - 'RectorPrefix202308\\Psr\\Cache\\' => 29, 'RectorPrefix202308\\OndraM\\CiDetector\\' => 37, 'RectorPrefix202308\\Illuminate\\Contracts\\' => 40, 'RectorPrefix202308\\Illuminate\\Container\\' => 40, @@ -129,9 +127,9 @@ class ComposerStaticInit15f3e70791108ba750c465057c7145d0 array ( 0 => __DIR__ . '/..' . '/symplify/easy-parallel/src', ), - 'RectorPrefix202308\\Symfony\\Contracts\\' => + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\' => array ( - 0 => __DIR__ . '/..' . '/symfony/contracts', + 0 => __DIR__ . '/..' . '/symfony/service-contracts', ), 'RectorPrefix202308\\Symfony\\Component\\String\\' => array ( @@ -197,18 +195,10 @@ class ComposerStaticInit15f3e70791108ba750c465057c7145d0 array ( 0 => __DIR__ . '/..' . '/psr/log/src', ), - 'RectorPrefix202308\\Psr\\EventDispatcher\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/event-dispatcher/src', - ), 'RectorPrefix202308\\Psr\\Container\\' => array ( 0 => __DIR__ . '/..' . '/psr/container/src', ), - 'RectorPrefix202308\\Psr\\Cache\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/cache/src', - ), 'RectorPrefix202308\\OndraM\\CiDetector\\' => array ( 0 => __DIR__ . '/..' . '/ondram/ci-detector/src', @@ -915,16 +905,9 @@ class ComposerStaticInit15f3e70791108ba750c465057c7145d0 'RectorPrefix202308\\OndraM\\CiDetector\\Env' => __DIR__ . '/..' . '/ondram/ci-detector/src/Env.php', 'RectorPrefix202308\\OndraM\\CiDetector\\Exception\\CiNotDetectedException' => __DIR__ . '/..' . '/ondram/ci-detector/src/Exception/CiNotDetectedException.php', 'RectorPrefix202308\\OndraM\\CiDetector\\TrinaryLogic' => __DIR__ . '/..' . '/ondram/ci-detector/src/TrinaryLogic.php', - 'RectorPrefix202308\\Psr\\Cache\\CacheException' => __DIR__ . '/..' . '/psr/cache/src/CacheException.php', - 'RectorPrefix202308\\Psr\\Cache\\CacheItemInterface' => __DIR__ . '/..' . '/psr/cache/src/CacheItemInterface.php', - 'RectorPrefix202308\\Psr\\Cache\\CacheItemPoolInterface' => __DIR__ . '/..' . '/psr/cache/src/CacheItemPoolInterface.php', - 'RectorPrefix202308\\Psr\\Cache\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/cache/src/InvalidArgumentException.php', 'RectorPrefix202308\\Psr\\Container\\ContainerExceptionInterface' => __DIR__ . '/..' . '/psr/container/src/ContainerExceptionInterface.php', 'RectorPrefix202308\\Psr\\Container\\ContainerInterface' => __DIR__ . '/..' . '/psr/container/src/ContainerInterface.php', 'RectorPrefix202308\\Psr\\Container\\NotFoundExceptionInterface' => __DIR__ . '/..' . '/psr/container/src/NotFoundExceptionInterface.php', - 'RectorPrefix202308\\Psr\\EventDispatcher\\EventDispatcherInterface' => __DIR__ . '/..' . '/psr/event-dispatcher/src/EventDispatcherInterface.php', - 'RectorPrefix202308\\Psr\\EventDispatcher\\ListenerProviderInterface' => __DIR__ . '/..' . '/psr/event-dispatcher/src/ListenerProviderInterface.php', - 'RectorPrefix202308\\Psr\\EventDispatcher\\StoppableEventInterface' => __DIR__ . '/..' . '/psr/event-dispatcher/src/StoppableEventInterface.php', 'RectorPrefix202308\\Psr\\Log\\AbstractLogger' => __DIR__ . '/..' . '/psr/log/src/AbstractLogger.php', 'RectorPrefix202308\\Psr\\Log\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/log/src/InvalidArgumentException.php', 'RectorPrefix202308\\Psr\\Log\\LogLevel' => __DIR__ . '/..' . '/psr/log/src/LogLevel.php', @@ -1453,40 +1436,13 @@ class ComposerStaticInit15f3e70791108ba750c465057c7145d0 'RectorPrefix202308\\Symfony\\Component\\String\\Slugger\\AsciiSlugger' => __DIR__ . '/..' . '/symfony/string/Slugger/AsciiSlugger.php', 'RectorPrefix202308\\Symfony\\Component\\String\\Slugger\\SluggerInterface' => __DIR__ . '/..' . '/symfony/string/Slugger/SluggerInterface.php', 'RectorPrefix202308\\Symfony\\Component\\String\\UnicodeString' => __DIR__ . '/..' . '/symfony/string/UnicodeString.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\CacheInterface' => __DIR__ . '/..' . '/symfony/contracts/Cache/CacheInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\CacheTrait' => __DIR__ . '/..' . '/symfony/contracts/Cache/CacheTrait.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\CallbackInterface' => __DIR__ . '/..' . '/symfony/contracts/Cache/CallbackInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Cache\\TagAwareCacheInterface' => __DIR__ . '/..' . '/symfony/contracts/Cache/TagAwareCacheInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\EventDispatcher\\Event' => __DIR__ . '/..' . '/symfony/contracts/EventDispatcher/Event.php', - 'RectorPrefix202308\\Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface' => __DIR__ . '/..' . '/symfony/contracts/EventDispatcher/EventDispatcherInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\ChunkInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/ChunkInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/ClientExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\DecodingExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/DecodingExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\ExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/ExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/HttpExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\RedirectionExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/RedirectionExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\ServerExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/ServerExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\TimeoutExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/TimeoutExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Exception\\TransportExceptionInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Exception/TransportExceptionInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\HttpClientInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/HttpClientInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\ResponseInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/ResponseInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\ResponseStreamInterface' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/ResponseStreamInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Test\\HttpClientTestCase' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Test/HttpClientTestCase.php', - 'RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\Test\\TestHttpServer' => __DIR__ . '/..' . '/symfony/contracts/HttpClient/Test/TestHttpServer.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\Required' => __DIR__ . '/..' . '/symfony/contracts/Service/Attribute/Required.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\SubscribedService' => __DIR__ . '/..' . '/symfony/contracts/Service/Attribute/SubscribedService.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ResetInterface' => __DIR__ . '/..' . '/symfony/contracts/Service/ResetInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceLocatorTrait' => __DIR__ . '/..' . '/symfony/contracts/Service/ServiceLocatorTrait.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceProviderInterface' => __DIR__ . '/..' . '/symfony/contracts/Service/ServiceProviderInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberInterface' => __DIR__ . '/..' . '/symfony/contracts/Service/ServiceSubscriberInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberTrait' => __DIR__ . '/..' . '/symfony/contracts/Service/ServiceSubscriberTrait.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Test\\ServiceLocatorTest' => __DIR__ . '/..' . '/symfony/contracts/Service/Test/ServiceLocatorTest.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Test\\ServiceLocatorTestCase' => __DIR__ . '/..' . '/symfony/contracts/Service/Test/ServiceLocatorTestCase.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\LocaleAwareInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/LocaleAwareInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\Test\\TranslatorTest' => __DIR__ . '/..' . '/symfony/contracts/Translation/Test/TranslatorTest.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\TranslatableInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatableInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\TranslatorInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorInterface.php', - 'RectorPrefix202308\\Symfony\\Contracts\\Translation\\TranslatorTrait' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorTrait.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\Required' => __DIR__ . '/..' . '/symfony/service-contracts/Attribute/Required.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\Attribute\\SubscribedService' => __DIR__ . '/..' . '/symfony/service-contracts/Attribute/SubscribedService.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ResetInterface' => __DIR__ . '/..' . '/symfony/service-contracts/ResetInterface.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceLocatorTrait' => __DIR__ . '/..' . '/symfony/service-contracts/ServiceLocatorTrait.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceProviderInterface' => __DIR__ . '/..' . '/symfony/service-contracts/ServiceProviderInterface.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberInterface' => __DIR__ . '/..' . '/symfony/service-contracts/ServiceSubscriberInterface.php', + 'RectorPrefix202308\\Symfony\\Contracts\\Service\\ServiceSubscriberTrait' => __DIR__ . '/..' . '/symfony/service-contracts/ServiceSubscriberTrait.php', 'RectorPrefix202308\\Symplify\\EasyParallel\\CommandLine\\WorkerCommandLineFactory' => __DIR__ . '/..' . '/symplify/easy-parallel/src/CommandLine/WorkerCommandLineFactory.php', 'RectorPrefix202308\\Symplify\\EasyParallel\\Contract\\SerializableInterface' => __DIR__ . '/..' . '/symplify/easy-parallel/src/Contract/SerializableInterface.php', 'RectorPrefix202308\\Symplify\\EasyParallel\\CpuCoreCountProvider' => __DIR__ . '/..' . '/symplify/easy-parallel/src/CpuCoreCountProvider.php', @@ -3015,9 +2971,9 @@ class ComposerStaticInit15f3e70791108ba750c465057c7145d0 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit15f3e70791108ba750c465057c7145d0::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit15f3e70791108ba750c465057c7145d0::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit15f3e70791108ba750c465057c7145d0::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit7f8939978aa6ea55b7218d369d827372::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit7f8939978aa6ea55b7218d369d827372::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit7f8939978aa6ea55b7218d369d827372::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 699a5a0466d..445d240b483 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1039,58 +1039,6 @@ ], "install-path": "..\/phpstan\/phpstan" }, - { - "name": "psr\/cache", - "version": "3.0.0", - "version_normalized": "3.0.0.0", - "source": { - "type": "git", - "url": "https:\/\/github.com\/php-fig\/cache.git", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" - }, - "dist": { - "type": "zip", - "url": "https:\/\/api.github.com\/repos\/php-fig\/cache\/zipball\/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "time": "2021-02-03T23:26:27+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "RectorPrefix202308\\Psr\\Cache\\": "src\/" - } - }, - "notification-url": "https:\/\/packagist.org\/downloads\/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https:\/\/www.php-fig.org\/" - } - ], - "description": "Common interface for caching libraries", - "keywords": [ - "cache", - "psr", - "psr-6" - ], - "support": { - "source": "https:\/\/github.com\/php-fig\/cache\/tree\/3.0.0" - }, - "install-path": "..\/psr\/cache" - }, { "name": "psr\/container", "version": "2.0.2", @@ -1147,59 +1095,6 @@ }, "install-path": "..\/psr\/container" }, - { - "name": "psr\/event-dispatcher", - "version": "1.0.0", - "version_normalized": "1.0.0.0", - "source": { - "type": "git", - "url": "https:\/\/github.com\/php-fig\/event-dispatcher.git", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" - }, - "dist": { - "type": "zip", - "url": "https:\/\/api.github.com\/repos\/php-fig\/event-dispatcher\/zipball\/dbefd12671e8a14ec7f180cab83036ed26714bb0", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", - "shasum": "" - }, - "require": { - "php": ">=7.2.0" - }, - "time": "2019-01-08T18:20:26+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "RectorPrefix202308\\Psr\\EventDispatcher\\": "src\/" - } - }, - "notification-url": "https:\/\/packagist.org\/downloads\/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http:\/\/www.php-fig.org\/" - } - ], - "description": "Standard interfaces for event handling.", - "keywords": [ - "events", - "psr", - "psr-14" - ], - "support": { - "issues": "https:\/\/github.com\/php-fig\/event-dispatcher\/issues", - "source": "https:\/\/github.com\/php-fig\/event-dispatcher\/tree\/1.0.0" - }, - "install-path": "..\/psr\/event-dispatcher" - }, { "name": "psr\/log", "version": "3.0.0", @@ -2437,103 +2332,6 @@ ], "install-path": "..\/symfony\/console" }, - { - "name": "symfony\/contracts", - "version": "v3.3.0", - "version_normalized": "3.3.0.0", - "source": { - "type": "git", - "url": "https:\/\/github.com\/symfony\/contracts.git", - "reference": "9e4b5e4e44e7620475dbceecf7c72c3883f3ea35" - }, - "dist": { - "type": "zip", - "url": "https:\/\/api.github.com\/repos\/symfony\/contracts\/zipball\/9e4b5e4e44e7620475dbceecf7c72c3883f3ea35", - "reference": "9e4b5e4e44e7620475dbceecf7c72c3883f3ea35", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "psr\/cache": "^3.0", - "psr\/container": "^2.0", - "psr\/event-dispatcher": "^1.0" - }, - "conflict": { - "ext-psr": "<1.1|>=2" - }, - "replace": { - "symfony\/cache-contracts": "self.version", - "symfony\/deprecation-contracts": "self.version", - "symfony\/event-dispatcher-contracts": "self.version", - "symfony\/http-client-contracts": "self.version", - "symfony\/service-contracts": "self.version", - "symfony\/translation-contracts": "self.version" - }, - "require-dev": { - "symfony\/polyfill-intl-idn": "^1.10" - }, - "time": "2023-05-30T17:17:10+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "Deprecation\/function.php" - ], - "psr-4": { - "RectorPrefix202308\\Symfony\\Contracts\\": "" - }, - "exclude-from-classmap": [ - "**\/Tests\/" - ] - }, - "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": "A set of abstractions extracted out of the Symfony components", - "homepage": "https:\/\/symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https:\/\/github.com\/symfony\/contracts\/tree\/v3.3.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\/contracts" - }, { "name": "symfony\/dependency-injection", "version": "v6.1.12", @@ -2629,6 +2427,76 @@ ], "install-path": "..\/symfony\/dependency-injection" }, + { + "name": "symfony\/deprecation-contracts", + "version": "v3.3.0", + "version_normalized": "3.3.0.0", + "source": { + "type": "git", + "url": "https:\/\/github.com\/symfony\/deprecation-contracts.git", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/symfony\/deprecation-contracts\/zipball\/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "time": "2023-05-23T14:45:45+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony\/contracts", + "url": "https:\/\/github.com\/symfony\/contracts" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "function.php" + ] + }, + "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": "A generic function and convention to trigger deprecation notices", + "homepage": "https:\/\/symfony.com", + "support": { + "source": "https:\/\/github.com\/symfony\/deprecation-contracts\/tree\/v3.3.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\/deprecation-contracts" + }, { "name": "symfony\/filesystem", "version": "v6.3.1", @@ -2999,6 +2867,91 @@ ], "install-path": "..\/symfony\/process" }, + { + "name": "symfony\/service-contracts", + "version": "v3.3.0", + "version_normalized": "3.3.0.0", + "source": { + "type": "git", + "url": "https:\/\/github.com\/symfony\/service-contracts.git", + "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/symfony\/service-contracts\/zipball\/40da9cc13ec349d9e4966ce18b5fbcd724ab10a4", + "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr\/container": "^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "time": "2023-05-23T14:45:45+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony\/contracts", + "url": "https:\/\/github.com\/symfony\/contracts" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "RectorPrefix202308\\Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "\/Test\/" + ] + }, + "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": "Generic abstractions related to writing services", + "homepage": "https:\/\/symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https:\/\/github.com\/symfony\/service-contracts\/tree\/v3.3.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\/service-contracts" + }, { "name": "symfony\/string", "version": "v6.3.2", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index bc0d0f2a37f..14a724aef95 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -2,4 +2,4 @@ namespace RectorPrefix202308; -return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '392dc165fce93b5bb5c637b67e59619223c931b0', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.1.0', 'version' => '3.1.0.0', 'reference' => '4bff79ddd77851fe3cdd11616ed3f92841ba5bd2', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => 'f9301a5b2fb1216b2b08f02ba04dc45423db6bff', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'fidry/cpu-core-counter' => array('pretty_version' => '0.5.1', 'version' => '0.5.1.0', 'reference' => 'b58e5a3933e541dc286cc91fc4f3898bbc6f1623', 'type' => 'library', 'install_path' => __DIR__ . '/../fidry/cpu-core-counter', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/container' => array('pretty_version' => 'v10.17.1', 'version' => '10.17.1.0', 'reference' => 'ddc26273085fad3c471b2602ad820e0097ff7939', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/container', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/contracts' => array('pretty_version' => 'v10.17.1', 'version' => '10.17.1.0', 'reference' => 'eb1a7e72e159136a832f2c0467de5570bdc208ae', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'nette/neon' => array('pretty_version' => 'v3.4.0', 'version' => '3.4.0.0', 'reference' => '372d945c156ee7f35c953339fb164538339e6283', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.10', 'version' => '3.2.10.0', 'reference' => 'a4175c62652f2300c8017fb7e640f9ccb11648d2', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.16.0', 'version' => '4.16.0.0', 'reference' => '19526a33fb561ef417e822e85f08a00db4059c17', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.23.1', 'version' => '1.23.1.0', 'reference' => '846ae76eef31c6d7790fac9bc399ecee45160b26', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.10.26', 'version' => '1.10.26.0', 'reference' => '5d660cbb7e1b89253a47147ae44044f49832351f', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'psr/simple-cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => '764e0b3939f5ca87cb904f570ef9be2d78a07865', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/simple-cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/cache' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.5', 'version' => '0.6.5.0', 'reference' => 'e71eb1aa55f057c7a4a0d08d06b0b0a484bead43', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'reference' => '3be0fc8f1eb37d6875cd6f0c6c7d0be81435de9f', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '6e7e587714fff7a83dcc7025aee42ab3b265ae05', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.10.0', 'version' => '2.10.0.0', 'reference' => 'f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.13.0', 'version' => '1.13.0.0', 'reference' => 'cff482bbad5848ecbe8b57da57e4e213b03619aa', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '6fbc9672905c7d5a885f2da2fc696f65840f4a66', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.15.x-dev', 1 => 'dev-main')), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'dbc34e9e73eac53684db3324dde9b6abfca745bb', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '254b63f1f03de37ebe347b2399ae416f8465d82d', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '04381624cfee50410f0fd06f4cedd21fbd883535', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'a0af12a8d67d0edefe6cffd22cdced62729a1dd9', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '5.0.3', 'version' => '5.0.3.0', 'reference' => '912dc2fbe3e3c1e7873313cc801b100b6c68c87b', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/config' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => 'b47ca238b03e7b0d7880ffd1cf06e8d637ca1467', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => 'aa5d64ad3f63f2e48964fc81ee45cb318a723898', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.3.0', 'version' => '3.3.0.0', 'reference' => '9e4b5e4e44e7620475dbceecf7c72c3883f3ea35', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.12', 'version' => '6.1.12.0', 'reference' => '360c9d0948e1fe675336346d5862e8e55b378d90', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/filesystem' => array('pretty_version' => 'v6.3.1', 'version' => '6.3.1.0', 'reference' => 'edd36776956f2a6fcf577edb5b05eb0e3bdc52ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.3.3', 'version' => '6.3.3.0', 'reference' => '9915db259f67d21eefee768c1abcf1cc61b1fc9e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '19bd1e4fcd5b91116f14d8533c57831ed00571b6', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/process' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => 'c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => '53d1a83225002635bca3482fcbf963001313fb68', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symplify/easy-parallel' => array('pretty_version' => '11.1.27', 'version' => '11.1.27.0', 'reference' => '28911142f6a0f4127271f745e2403bb84fcd2b87', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.26', 'version' => '11.1.26.0', 'reference' => '3e66b3fec678b74a076395ec629d535fb95293b5', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.10.3', 'version' => '2.10.3.0', 'reference' => 'ec6637866d6836ef6f8de2bab63ae7708b23bcd7', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); +return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '392dc165fce93b5bb5c637b67e59619223c931b0', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.1.0', 'version' => '3.1.0.0', 'reference' => '4bff79ddd77851fe3cdd11616ed3f92841ba5bd2', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => 'f9301a5b2fb1216b2b08f02ba04dc45423db6bff', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'fidry/cpu-core-counter' => array('pretty_version' => '0.5.1', 'version' => '0.5.1.0', 'reference' => 'b58e5a3933e541dc286cc91fc4f3898bbc6f1623', 'type' => 'library', 'install_path' => __DIR__ . '/../fidry/cpu-core-counter', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/container' => array('pretty_version' => 'v10.17.1', 'version' => '10.17.1.0', 'reference' => 'ddc26273085fad3c471b2602ad820e0097ff7939', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/container', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/contracts' => array('pretty_version' => 'v10.17.1', 'version' => '10.17.1.0', 'reference' => 'eb1a7e72e159136a832f2c0467de5570bdc208ae', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'nette/neon' => array('pretty_version' => 'v3.4.0', 'version' => '3.4.0.0', 'reference' => '372d945c156ee7f35c953339fb164538339e6283', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.10', 'version' => '3.2.10.0', 'reference' => 'a4175c62652f2300c8017fb7e640f9ccb11648d2', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.16.0', 'version' => '4.16.0.0', 'reference' => '19526a33fb561ef417e822e85f08a00db4059c17', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.23.1', 'version' => '1.23.1.0', 'reference' => '846ae76eef31c6d7790fac9bc399ecee45160b26', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.10.26', 'version' => '1.10.26.0', 'reference' => '5d660cbb7e1b89253a47147ae44044f49832351f', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'psr/simple-cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => '764e0b3939f5ca87cb904f570ef9be2d78a07865', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/simple-cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/cache' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.5', 'version' => '0.6.5.0', 'reference' => 'e71eb1aa55f057c7a4a0d08d06b0b0a484bead43', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'reference' => '3be0fc8f1eb37d6875cd6f0c6c7d0be81435de9f', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '6e7e587714fff7a83dcc7025aee42ab3b265ae05', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.10.0', 'version' => '2.10.0.0', 'reference' => 'f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.13.0', 'version' => '1.13.0.0', 'reference' => 'cff482bbad5848ecbe8b57da57e4e213b03619aa', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '6fbc9672905c7d5a885f2da2fc696f65840f4a66', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.15.x-dev', 1 => 'dev-main')), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'dbc34e9e73eac53684db3324dde9b6abfca745bb', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '254b63f1f03de37ebe347b2399ae416f8465d82d', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '04381624cfee50410f0fd06f4cedd21fbd883535', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'a0af12a8d67d0edefe6cffd22cdced62729a1dd9', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '5.0.3', 'version' => '5.0.3.0', 'reference' => '912dc2fbe3e3c1e7873313cc801b100b6c68c87b', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/config' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => 'b47ca238b03e7b0d7880ffd1cf06e8d637ca1467', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => 'aa5d64ad3f63f2e48964fc81ee45cb318a723898', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.12', 'version' => '6.1.12.0', 'reference' => '360c9d0948e1fe675336346d5862e8e55b378d90', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v3.3.0', 'version' => '3.3.0.0', 'reference' => '7c3aff79d10325257a001fcf92d991f24fc967cf', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/filesystem' => array('pretty_version' => 'v6.3.1', 'version' => '6.3.1.0', 'reference' => 'edd36776956f2a6fcf577edb5b05eb0e3bdc52ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.3.3', 'version' => '6.3.3.0', 'reference' => '9915db259f67d21eefee768c1abcf1cc61b1fc9e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '19bd1e4fcd5b91116f14d8533c57831ed00571b6', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/process' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => 'c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('pretty_version' => 'v3.3.0', 'version' => '3.3.0.0', 'reference' => '40da9cc13ec349d9e4966ce18b5fbcd724ab10a4', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/service-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.3.2', 'version' => '6.3.2.0', 'reference' => '53d1a83225002635bca3482fcbf963001313fb68', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.27', 'version' => '11.1.27.0', 'reference' => '28911142f6a0f4127271f745e2403bb84fcd2b87', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.26', 'version' => '11.1.26.0', 'reference' => '3e66b3fec678b74a076395ec629d535fb95293b5', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.10.3', 'version' => '2.10.3.0', 'reference' => 'ec6637866d6836ef6f8de2bab63ae7708b23bcd7', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); diff --git a/vendor/psr/cache/CHANGELOG.md b/vendor/psr/cache/CHANGELOG.md deleted file mode 100644 index 58ddab05aa1..00000000000 --- a/vendor/psr/cache/CHANGELOG.md +++ /dev/null @@ -1,16 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file, in reverse chronological order by release. - -## 1.0.1 - 2016-08-06 - -### Fixed - -- Make spacing consistent in phpdoc annotations php-fig/cache#9 - chalasr -- Fix grammar in phpdoc annotations php-fig/cache#10 - chalasr -- Be more specific in docblocks that `getItems()` and `deleteItems()` take an array of strings (`string[]`) compared to just `array` php-fig/cache#8 - GrahamCampbell -- For `expiresAt()` and `expiresAfter()` in CacheItemInterface fix docblock to specify null as a valid parameters as well as an implementation of DateTimeInterface php-fig/cache#7 - GrahamCampbell - -## 1.0.0 - 2015-12-11 - -Initial stable release; reflects accepted PSR-6 specification diff --git a/vendor/psr/cache/LICENSE.txt b/vendor/psr/cache/LICENSE.txt deleted file mode 100644 index b1c2c97b9d4..00000000000 --- a/vendor/psr/cache/LICENSE.txt +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015 PHP Framework Interoperability Group - -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. diff --git a/vendor/psr/cache/README.md b/vendor/psr/cache/README.md deleted file mode 100644 index 9855a318bd4..00000000000 --- a/vendor/psr/cache/README.md +++ /dev/null @@ -1,12 +0,0 @@ -Caching Interface -============== - -This repository holds all interfaces related to [PSR-6 (Caching Interface)][psr-url]. - -Note that this is not a Caching implementation of its own. It is merely interfaces that describe the components of a Caching mechanism. - -The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. - -[psr-url]: https://www.php-fig.org/psr/psr-6/ -[package-url]: https://packagist.org/packages/psr/cache -[implementation-url]: https://packagist.org/providers/psr/cache-implementation diff --git a/vendor/psr/cache/composer.json b/vendor/psr/cache/composer.json deleted file mode 100644 index a0b3f85ff79..00000000000 --- a/vendor/psr/cache/composer.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "psr\/cache", - "description": "Common interface for caching libraries", - "keywords": [ - "psr", - "psr-6", - "cache" - ], - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https:\/\/www.php-fig.org\/" - } - ], - "require": { - "php": ">=8.0.0" - }, - "autoload": { - "psr-4": { - "RectorPrefix202308\\Psr\\Cache\\": "src\/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - } -} \ No newline at end of file diff --git a/vendor/psr/cache/src/CacheException.php b/vendor/psr/cache/src/CacheException.php deleted file mode 100644 index f3d54ad4f41..00000000000 --- a/vendor/psr/cache/src/CacheException.php +++ /dev/null @@ -1,10 +0,0 @@ -=7.2.0" - }, - "autoload": { - "psr-4": { - "RectorPrefix202308\\Psr\\EventDispatcher\\": "src\/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - } -} \ No newline at end of file diff --git a/vendor/psr/event-dispatcher/src/EventDispatcherInterface.php b/vendor/psr/event-dispatcher/src/EventDispatcherInterface.php deleted file mode 100644 index a95c6c24a89..00000000000 --- a/vendor/psr/event-dispatcher/src/EventDispatcherInterface.php +++ /dev/null @@ -1,21 +0,0 @@ -completionValue = $relevantToken; return; } - if (($nullsafeVariable1 = $option) ? $nullsafeVariable1->acceptValue() : null) { + if (($nullsafeVariable10 = $option) ? $nullsafeVariable10->acceptValue() : null) { $this->completionType = self::TYPE_OPTION_VALUE; $this->completionName = $option->getName(); $this->completionValue = $optionValue ?: (\strncmp($optionToken, '--', \strlen('--')) !== 0 ? \substr($optionToken, 2) : ''); @@ -80,7 +80,7 @@ final class CompletionInput extends ArgvInput if ('-' === $previousToken[0] && '' !== \trim($previousToken, '-')) { // check if previous option accepted a value $previousOption = $this->getOptionFromToken($previousToken); - if (($nullsafeVariable2 = $previousOption) ? $nullsafeVariable2->acceptValue() : null) { + if (($nullsafeVariable11 = $previousOption) ? $nullsafeVariable11->acceptValue() : null) { $this->completionType = self::TYPE_OPTION_VALUE; $this->completionName = $previousOption->getName(); $this->completionValue = $relevantToken; diff --git a/vendor/symfony/contracts/CHANGELOG.md b/vendor/symfony/contracts/CHANGELOG.md deleted file mode 100644 index d944ba18707..00000000000 --- a/vendor/symfony/contracts/CHANGELOG.md +++ /dev/null @@ -1,85 +0,0 @@ -CHANGELOG -========= - -3.3 ---- - - * Add option `crypto_method` to `HttpClientInterface` to define the minimum TLS version to accept - -3.2 ---- - - * Allow `ServiceSubscriberInterface::getSubscribedServices()` to return `SubscribedService[]` - -3.0 ---- - - * Bump to PHP 8 minimum - * Add native return types - * Remove deprecated features - -2.5 ---- - - * Add `SubscribedService` attribute, deprecate current `ServiceSubscriberTrait` usage - -2.4 ---- - - * Add `HttpClientInterface::withOptions()` - * Add `TranslatorInterface::getLocale()` - -2.3.0 ------ - - * added `Translation\TranslatableInterface` to enable value-objects to be translated - * made `Translation\TranslatorTrait::getLocale()` fallback to intl's `Locale::getDefault()` when available - -2.2.0 ------ - - * added `Service\Attribute\Required` attribute for PHP 8 - -2.1.3 ------ - - * fixed compat with PHP 8 - -2.1.0 ------ - - * added "symfony/deprecation-contracts" - -2.0.1 ------ - - * added `/json` endpoints to the test mock HTTP server - -2.0.0 ------ - - * bumped minimum PHP version to 7.2 and added explicit type hints - * made "psr/event-dispatcher" a required dependency of "symfony/event-dispatcher-contracts" - * made "symfony/http-client-contracts" not experimental anymore - -1.1.9 ------ - - * fixed compat with PHP 8 - -1.1.0 ------ - - * added `HttpClient` namespace with contracts for implementing flexible HTTP clients - * added `EventDispatcherInterface` and `Event` in namespace `EventDispatcher` - * added `ServiceProviderInterface` in namespace `Service` - -1.0.0 ------ - - * added `Service\ResetInterface` to provide a way to reset an object to its initial state - * added `Translation\TranslatorInterface` and `Translation\TranslatorTrait` - * added `Cache` contract to extend PSR-6 with tag invalidation, callback-based computation and stampede protection - * added `Service\ServiceSubscriberInterface` to declare the dependencies of a class that consumes a service locator - * added `Service\ServiceSubscriberTrait` to implement `Service\ServiceSubscriberInterface` using methods' return types - * added `Service\ServiceLocatorTrait` to help implement PSR-11 service locators diff --git a/vendor/symfony/contracts/Cache/CacheInterface.php b/vendor/symfony/contracts/Cache/CacheInterface.php deleted file mode 100644 index 55bfdf05b50..00000000000 --- a/vendor/symfony/contracts/Cache/CacheInterface.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Cache; - -use RectorPrefix202308\Psr\Cache\CacheItemInterface; -use RectorPrefix202308\Psr\Cache\InvalidArgumentException; -/** - * Covers most simple to advanced caching needs. - * - * @author Nicolas Grekas - */ -interface CacheInterface -{ - /** - * Fetches a value from the pool or computes it if not found. - * - * On cache misses, a callback is called that should return the missing value. - * This callback is given a PSR-6 CacheItemInterface instance corresponding to the - * requested key, that could be used e.g. for expiration control. It could also - * be an ItemInterface instance when its additional features are needed. - * - * @template T - * - * @param string $key The key of the item to retrieve from the cache - * @param (callable(CacheItemInterface,bool):T)|(callable(ItemInterface,bool):T)|CallbackInterface $callback - * @param float|null $beta A float that, as it grows, controls the likeliness of triggering - * early expiration. 0 disables it, INF forces immediate expiration. - * The default (or providing null) is implementation dependent but should - * typically be 1.0, which should provide optimal stampede protection. - * See https://en.wikipedia.org/wiki/Cache_stampede#Probabilistic_early_expiration - * @param array &$metadata The metadata of the cached item {@see ItemInterface::getMetadata()} - * - * @return T - * - * @throws InvalidArgumentException When $key is not valid or when $beta is negative - */ - public function get(string $key, callable $callback, float $beta = null, array &$metadata = null) : mixed; - /** - * Removes an item from the pool. - * - * @param string $key The key to delete - * - * @return bool True if the item was successfully removed, false if there was any error - * - * @throws InvalidArgumentException When $key is not valid - */ - public function delete(string $key) : bool; -} diff --git a/vendor/symfony/contracts/Cache/CacheTrait.php b/vendor/symfony/contracts/Cache/CacheTrait.php deleted file mode 100644 index 5768530a688..00000000000 --- a/vendor/symfony/contracts/Cache/CacheTrait.php +++ /dev/null @@ -1,61 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Cache; - -use RectorPrefix202308\Psr\Cache\CacheItemPoolInterface; -use RectorPrefix202308\Psr\Cache\InvalidArgumentException; -use RectorPrefix202308\Psr\Log\LoggerInterface; -// Help opcache.preload discover always-needed symbols -\class_exists(InvalidArgumentException::class); -/** - * An implementation of CacheInterface for PSR-6 CacheItemPoolInterface classes. - * - * @author Nicolas Grekas - */ -trait CacheTrait -{ - public function get(string $key, callable $callback, float $beta = null, array &$metadata = null) : mixed - { - return $this->doGet($this, $key, $callback, $beta, $metadata); - } - public function delete(string $key) : bool - { - return $this->deleteItem($key); - } - private function doGet(CacheItemPoolInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null, LoggerInterface $logger = null) : mixed - { - if (0 > ($beta ??= 1.0)) { - throw new class(\sprintf('Argument "$beta" provided to "%s::get()" must be a positive number, %f given.', static::class, $beta)) extends \InvalidArgumentException implements InvalidArgumentException - { - }; - } - $item = $pool->getItem($key); - $recompute = !$item->isHit() || \INF === $beta; - $metadata = $item instanceof ItemInterface ? $item->getMetadata() : []; - if (!$recompute && $metadata) { - $expiry = $metadata[ItemInterface::METADATA_EXPIRY] ?? \false; - $ctime = $metadata[ItemInterface::METADATA_CTIME] ?? \false; - if ($recompute = $ctime && $expiry && $expiry <= ($now = \microtime(\true)) - $ctime / 1000 * $beta * \log(\random_int(1, \PHP_INT_MAX) / \PHP_INT_MAX)) { - // force applying defaultLifetime to expiry - $item->expiresAt(null); - $logger?->info('Item "{key}" elected for early recomputation {delta}s before its expiration', ['key' => $key, 'delta' => \sprintf('%.1f', $expiry - $now)]); - } - } - if ($recompute) { - $save = \true; - $item->set($callback($item, $save)); - if ($save) { - $pool->save($item); - } - } - return $item->get(); - } -} diff --git a/vendor/symfony/contracts/Cache/CallbackInterface.php b/vendor/symfony/contracts/Cache/CallbackInterface.php deleted file mode 100644 index 399625cc474..00000000000 --- a/vendor/symfony/contracts/Cache/CallbackInterface.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Cache; - -use RectorPrefix202308\Psr\Cache\CacheItemInterface; -/** - * Computes and returns the cached value of an item. - * - * @author Nicolas Grekas - * - * @template T - */ -interface CallbackInterface -{ - /** - * @param CacheItemInterface|ItemInterface $item The item to compute the value for - * @param bool &$save Should be set to false when the value should not be saved in the pool - * - * @return T The computed value for the passed item - */ - public function __invoke(CacheItemInterface $item, bool &$save) : mixed; -} diff --git a/vendor/symfony/contracts/Cache/README.md b/vendor/symfony/contracts/Cache/README.md deleted file mode 100644 index ffe0833afa3..00000000000 --- a/vendor/symfony/contracts/Cache/README.md +++ /dev/null @@ -1,9 +0,0 @@ -Symfony Cache Contracts -======================= - -A set of abstractions extracted out of the Symfony components. - -Can be used to build on semantics that the Symfony components proved useful and -that already have battle tested implementations. - -See https://github.com/symfony/contracts/blob/main/README.md for more information. diff --git a/vendor/symfony/contracts/Cache/TagAwareCacheInterface.php b/vendor/symfony/contracts/Cache/TagAwareCacheInterface.php deleted file mode 100644 index d1db2c50f0d..00000000000 --- a/vendor/symfony/contracts/Cache/TagAwareCacheInterface.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Cache; - -use RectorPrefix202308\Psr\Cache\InvalidArgumentException; -/** - * Allows invalidating cached items using tags. - * - * @author Nicolas Grekas - */ -interface TagAwareCacheInterface extends CacheInterface -{ - /** - * Invalidates cached items using tags. - * - * When implemented on a PSR-6 pool, invalidation should not apply - * to deferred items. Instead, they should be committed as usual. - * This allows replacing old tagged values by new ones without - * race conditions. - * - * @param string[] $tags An array of tags to invalidate - * - * @return bool True on success - * - * @throws InvalidArgumentException When $tags is not valid - */ - public function invalidateTags(array $tags) : bool; -} diff --git a/vendor/symfony/contracts/Cache/composer.json b/vendor/symfony/contracts/Cache/composer.json deleted file mode 100644 index 92c7ea2aad7..00000000000 --- a/vendor/symfony/contracts/Cache/composer.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "symfony\/cache-contracts", - "type": "library", - "description": "Generic abstractions related to caching", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "homepage": "https:\/\/symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https:\/\/symfony.com\/contributors" - } - ], - "require": { - "php": ">=8.1", - "psr\/cache": "^3.0" - }, - "autoload": { - "psr-4": { - "RectorPrefix202308\\Symfony\\Contracts\\Cache\\": "" - } - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony\/contracts", - "url": "https:\/\/github.com\/symfony\/contracts" - } - } -} \ No newline at end of file diff --git a/vendor/symfony/contracts/EventDispatcher/CHANGELOG.md b/vendor/symfony/contracts/EventDispatcher/CHANGELOG.md deleted file mode 100644 index 7932e26132d..00000000000 --- a/vendor/symfony/contracts/EventDispatcher/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -CHANGELOG -========= - -The changelog is maintained for all Symfony contracts at the following URL: -https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/contracts/EventDispatcher/Event.php b/vendor/symfony/contracts/EventDispatcher/Event.php deleted file mode 100644 index 0ec31eb73c2..00000000000 --- a/vendor/symfony/contracts/EventDispatcher/Event.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\EventDispatcher; - -use RectorPrefix202308\Psr\EventDispatcher\StoppableEventInterface; -/** - * Event is the base class for classes containing event data. - * - * This class contains no event data. It is used by events that do not pass - * state information to an event handler when an event is raised. - * - * You can call the method stopPropagation() to abort the execution of - * further listeners in your event listener. - * - * @author Guilherme Blanco - * @author Jonathan Wage - * @author Roman Borschel - * @author Bernhard Schussek - * @author Nicolas Grekas - */ -class Event implements StoppableEventInterface -{ - /** - * @var bool - */ - private $propagationStopped = \false; - public function isPropagationStopped() : bool - { - return $this->propagationStopped; - } - /** - * Stops the propagation of the event to further event listeners. - * - * If multiple event listeners are connected to the same event, no - * further event listener will be triggered once any trigger calls - * stopPropagation(). - */ - public function stopPropagation() : void - { - $this->propagationStopped = \true; - } -} diff --git a/vendor/symfony/contracts/EventDispatcher/EventDispatcherInterface.php b/vendor/symfony/contracts/EventDispatcher/EventDispatcherInterface.php deleted file mode 100644 index f219b999c0f..00000000000 --- a/vendor/symfony/contracts/EventDispatcher/EventDispatcherInterface.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\EventDispatcher; - -use RectorPrefix202308\Psr\EventDispatcher\EventDispatcherInterface as PsrEventDispatcherInterface; -/** - * Allows providing hooks on domain-specific lifecycles by dispatching events. - */ -interface EventDispatcherInterface extends PsrEventDispatcherInterface -{ - /** - * Dispatches an event to all registered listeners. - * - * @template T of object - * - * @param T $event The event to pass to the event handlers/listeners - * @param string|null $eventName The name of the event to dispatch. If not supplied, - * the class of $event should be used instead. - * - * @return T The passed $event MUST be returned - */ - public function dispatch(object $event, string $eventName = null) : object; -} diff --git a/vendor/symfony/contracts/EventDispatcher/LICENSE b/vendor/symfony/contracts/EventDispatcher/LICENSE deleted file mode 100644 index 7536caeae80..00000000000 --- a/vendor/symfony/contracts/EventDispatcher/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present 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. diff --git a/vendor/symfony/contracts/EventDispatcher/README.md b/vendor/symfony/contracts/EventDispatcher/README.md deleted file mode 100644 index 332b961cb88..00000000000 --- a/vendor/symfony/contracts/EventDispatcher/README.md +++ /dev/null @@ -1,9 +0,0 @@ -Symfony EventDispatcher Contracts -================================= - -A set of abstractions extracted out of the Symfony components. - -Can be used to build on semantics that the Symfony components proved useful and -that already have battle tested implementations. - -See https://github.com/symfony/contracts/blob/main/README.md for more information. diff --git a/vendor/symfony/contracts/EventDispatcher/composer.json b/vendor/symfony/contracts/EventDispatcher/composer.json deleted file mode 100644 index 5b260884d48..00000000000 --- a/vendor/symfony/contracts/EventDispatcher/composer.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "symfony\/event-dispatcher-contracts", - "type": "library", - "description": "Generic abstractions related to dispatching event", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "homepage": "https:\/\/symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https:\/\/symfony.com\/contributors" - } - ], - "require": { - "php": ">=8.1", - "psr\/event-dispatcher": "^1" - }, - "autoload": { - "psr-4": { - "RectorPrefix202308\\Symfony\\Contracts\\EventDispatcher\\": "" - } - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony\/contracts", - "url": "https:\/\/github.com\/symfony\/contracts" - } - } -} \ No newline at end of file diff --git a/vendor/symfony/contracts/HttpClient/CHANGELOG.md b/vendor/symfony/contracts/HttpClient/CHANGELOG.md deleted file mode 100644 index 7932e26132d..00000000000 --- a/vendor/symfony/contracts/HttpClient/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -CHANGELOG -========= - -The changelog is maintained for all Symfony contracts at the following URL: -https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/contracts/HttpClient/ChunkInterface.php b/vendor/symfony/contracts/HttpClient/ChunkInterface.php deleted file mode 100644 index 873799ee93c..00000000000 --- a/vendor/symfony/contracts/HttpClient/ChunkInterface.php +++ /dev/null @@ -1,63 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient; - -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; -/** - * The interface of chunks returned by ResponseStreamInterface::current(). - * - * When the chunk is first, last or timeout, the content MUST be empty. - * When an unchecked timeout or a network error occurs, a TransportExceptionInterface - * MUST be thrown by the destructor unless one was already thrown by another method. - * - * @author Nicolas Grekas - */ -interface ChunkInterface -{ - /** - * Tells when the idle timeout has been reached. - * - * @throws TransportExceptionInterface on a network error - */ - public function isTimeout() : bool; - /** - * Tells when headers just arrived. - * - * @throws TransportExceptionInterface on a network error or when the idle timeout is reached - */ - public function isFirst() : bool; - /** - * Tells when the body just completed. - * - * @throws TransportExceptionInterface on a network error or when the idle timeout is reached - */ - public function isLast() : bool; - /** - * Returns a [status code, headers] tuple when a 1xx status code was just received. - * - * @throws TransportExceptionInterface on a network error or when the idle timeout is reached - */ - public function getInformationalStatus() : ?array; - /** - * Returns the content of the response chunk. - * - * @throws TransportExceptionInterface on a network error or when the idle timeout is reached - */ - public function getContent() : string; - /** - * Returns the offset of the chunk in the response body. - */ - public function getOffset() : int; - /** - * In case of error, returns the message that describes it. - */ - public function getError() : ?string; -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/ClientExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/ClientExceptionInterface.php deleted file mode 100644 index 43b138092dc..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/ClientExceptionInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -/** - * When a 4xx response is returned. - * - * @author Nicolas Grekas - */ -interface ClientExceptionInterface extends HttpExceptionInterface -{ -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/DecodingExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/DecodingExceptionInterface.php deleted file mode 100644 index 60fb49b882e..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/DecodingExceptionInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -/** - * When a content-type cannot be decoded to the expected representation. - * - * @author Nicolas Grekas - */ -interface DecodingExceptionInterface extends ExceptionInterface -{ -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/ExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/ExceptionInterface.php deleted file mode 100644 index 61bcd422c35..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/ExceptionInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -/** - * The base interface for all exceptions in the contract. - * - * @author Nicolas Grekas - */ -interface ExceptionInterface extends \Throwable -{ -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/HttpExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/HttpExceptionInterface.php deleted file mode 100644 index 8be842d8164..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/HttpExceptionInterface.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -use RectorPrefix202308\Symfony\Contracts\HttpClient\ResponseInterface; -/** - * Base interface for HTTP-related exceptions. - * - * @author Anton Chernikov - */ -interface HttpExceptionInterface extends ExceptionInterface -{ - public function getResponse() : ResponseInterface; -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/RedirectionExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/RedirectionExceptionInterface.php deleted file mode 100644 index 0b0d07dd730..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/RedirectionExceptionInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -/** - * When a 3xx response is returned and the "max_redirects" option has been reached. - * - * @author Nicolas Grekas - */ -interface RedirectionExceptionInterface extends HttpExceptionInterface -{ -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/ServerExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/ServerExceptionInterface.php deleted file mode 100644 index 8e51ebf8cde..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/ServerExceptionInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -/** - * When a 5xx response is returned. - * - * @author Nicolas Grekas - */ -interface ServerExceptionInterface extends HttpExceptionInterface -{ -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/TimeoutExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/TimeoutExceptionInterface.php deleted file mode 100644 index 4cbd9810d39..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/TimeoutExceptionInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -/** - * When an idle timeout occurs. - * - * @author Nicolas Grekas - */ -interface TimeoutExceptionInterface extends TransportExceptionInterface -{ -} diff --git a/vendor/symfony/contracts/HttpClient/Exception/TransportExceptionInterface.php b/vendor/symfony/contracts/HttpClient/Exception/TransportExceptionInterface.php deleted file mode 100644 index ff09631f8b8..00000000000 --- a/vendor/symfony/contracts/HttpClient/Exception/TransportExceptionInterface.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Exception; - -/** - * When any error happens at the transport level. - * - * @author Nicolas Grekas - */ -interface TransportExceptionInterface extends ExceptionInterface -{ -} diff --git a/vendor/symfony/contracts/HttpClient/HttpClientInterface.php b/vendor/symfony/contracts/HttpClient/HttpClientInterface.php deleted file mode 100644 index 4437d34d1b5..00000000000 --- a/vendor/symfony/contracts/HttpClient/HttpClientInterface.php +++ /dev/null @@ -1,115 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient; - -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Test\HttpClientTestCase; -/** - * Provides flexible methods for requesting HTTP resources synchronously or asynchronously. - * - * @see HttpClientTestCase for a reference test suite - * - * @author Nicolas Grekas - */ -interface HttpClientInterface -{ - public const OPTIONS_DEFAULTS = [ - 'auth_basic' => null, - // array|string - an array containing the username as first value, and optionally the - // password as the second one; or string like username:password - enabling HTTP Basic - // authentication (RFC 7617) - 'auth_bearer' => null, - // string - a token enabling HTTP Bearer authorization (RFC 6750) - 'query' => [], - // string[] - associative array of query string values to merge with the request's URL - 'headers' => [], - // iterable|string[]|string[][] - headers names provided as keys or as part of values - 'body' => '', - // array|string|resource|\Traversable|\Closure - the callback SHOULD yield a string - // smaller than the amount requested as argument; the empty string signals EOF; if - // an array is passed, it is meant as a form payload of field names and values - 'json' => null, - // mixed - if set, implementations MUST set the "body" option to the JSON-encoded - // value and set the "content-type" header to a JSON-compatible value if it is not - // explicitly defined in the headers option - typically "application/json" - 'user_data' => null, - // mixed - any extra data to attach to the request (scalar, callable, object...) that - // MUST be available via $response->getInfo('user_data') - not used internally - 'max_redirects' => 20, - // int - the maximum number of redirects to follow; a value lower than or equal to 0 - // means redirects should not be followed; "Authorization" and "Cookie" headers MUST - // NOT follow except for the initial host name - 'http_version' => null, - // string - defaults to the best supported version, typically 1.1 or 2.0 - 'base_uri' => null, - // string - the URI to resolve relative URLs, following rules in RFC 3986, section 2 - 'buffer' => \true, - // bool|resource|\Closure - whether the content of the response should be buffered or not, - // or a stream resource where the response body should be written, - // or a closure telling if/where the response should be buffered based on its headers - 'on_progress' => null, - // callable(int $dlNow, int $dlSize, array $info) - throwing any exceptions MUST abort - // the request; it MUST be called on DNS resolution, on arrival of headers and on - // completion; it SHOULD be called on upload/download of data and at least 1/s - 'resolve' => [], - // string[] - a map of host to IP address that SHOULD replace DNS resolution - 'proxy' => null, - // string - by default, the proxy-related env vars handled by curl SHOULD be honored - 'no_proxy' => null, - // string - a comma separated list of hosts that do not require a proxy to be reached - 'timeout' => null, - // float - the idle timeout (in seconds) - defaults to ini_get('default_socket_timeout') - 'max_duration' => 0, - // float - the maximum execution time (in seconds) for the request+response as a whole; - // a value lower than or equal to 0 means it is unlimited - 'bindto' => '0', - // string - the interface or the local socket to bind to - 'verify_peer' => \true, - // see https://php.net/context.ssl for the following options - 'verify_host' => \true, - 'cafile' => null, - 'capath' => null, - 'local_cert' => null, - 'local_pk' => null, - 'passphrase' => null, - 'ciphers' => null, - 'peer_fingerprint' => null, - 'capture_peer_cert_chain' => \false, - 'crypto_method' => \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT, - // STREAM_CRYPTO_METHOD_TLSv*_CLIENT - minimum TLS version - 'extra' => [], - ]; - /** - * Requests an HTTP resource. - * - * Responses MUST be lazy, but their status code MUST be - * checked even if none of their public methods are called. - * - * Implementations are not required to support all options described above; they can also - * support more custom options; but in any case, they MUST throw a TransportExceptionInterface - * when an unsupported option is passed. - * - * @throws TransportExceptionInterface When an unsupported option is passed - */ - public function request(string $method, string $url, array $options = []) : ResponseInterface; - /** - * Yields responses chunk by chunk as they complete. - * - * @param ResponseInterface|iterable $responses One or more responses created by the current HTTP client - * @param float|null $timeout The idle timeout before yielding timeout chunks - */ - public function stream($responses, float $timeout = null) : ResponseStreamInterface; - /** - * Returns a new instance of the client with new default options. - * @return static - */ - public function withOptions(array $options); -} diff --git a/vendor/symfony/contracts/HttpClient/LICENSE b/vendor/symfony/contracts/HttpClient/LICENSE deleted file mode 100644 index 7536caeae80..00000000000 --- a/vendor/symfony/contracts/HttpClient/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present 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. diff --git a/vendor/symfony/contracts/HttpClient/README.md b/vendor/symfony/contracts/HttpClient/README.md deleted file mode 100644 index 24d72f566a8..00000000000 --- a/vendor/symfony/contracts/HttpClient/README.md +++ /dev/null @@ -1,9 +0,0 @@ -Symfony HttpClient Contracts -============================ - -A set of abstractions extracted out of the Symfony components. - -Can be used to build on semantics that the Symfony components proved useful and -that already have battle tested implementations. - -See https://github.com/symfony/contracts/blob/main/README.md for more information. diff --git a/vendor/symfony/contracts/HttpClient/ResponseInterface.php b/vendor/symfony/contracts/HttpClient/ResponseInterface.php deleted file mode 100644 index f889002a463..00000000000 --- a/vendor/symfony/contracts/HttpClient/ResponseInterface.php +++ /dev/null @@ -1,102 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient; - -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\ExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; -/** - * A (lazily retrieved) HTTP response. - * - * @author Nicolas Grekas - */ -interface ResponseInterface -{ - /** - * Gets the HTTP status code of the response. - * - * @throws TransportExceptionInterface when a network error occurs - */ - public function getStatusCode() : int; - /** - * Gets the HTTP headers of the response. - * - * @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes - * - * @return string[][] The headers of the response keyed by header names in lowercase - * - * @throws TransportExceptionInterface When a network error occurs - * @throws RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached - * @throws ClientExceptionInterface On a 4xx when $throw is true - * @throws ServerExceptionInterface On a 5xx when $throw is true - */ - public function getHeaders(bool $throw = \true) : array; - /** - * Gets the response body as a string. - * - * @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes - * - * @throws TransportExceptionInterface When a network error occurs - * @throws RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached - * @throws ClientExceptionInterface On a 4xx when $throw is true - * @throws ServerExceptionInterface On a 5xx when $throw is true - */ - public function getContent(bool $throw = \true) : string; - /** - * Gets the response body decoded as array, typically from a JSON payload. - * - * @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes - * - * @throws DecodingExceptionInterface When the body cannot be decoded to an array - * @throws TransportExceptionInterface When a network error occurs - * @throws RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached - * @throws ClientExceptionInterface On a 4xx when $throw is true - * @throws ServerExceptionInterface On a 5xx when $throw is true - */ - public function toArray(bool $throw = \true) : array; - /** - * Closes the response stream and all related buffers. - * - * No further chunk will be yielded after this method has been called. - */ - public function cancel() : void; - /** - * Returns info coming from the transport layer. - * - * This method SHOULD NOT throw any ExceptionInterface and SHOULD be non-blocking. - * The returned info is "live": it can be empty and can change from one call to - * another, as the request/response progresses. - * - * The following info MUST be returned: - * - canceled (bool) - true if the response was canceled using ResponseInterface::cancel(), false otherwise - * - error (string|null) - the error message when the transfer was aborted, null otherwise - * - http_code (int) - the last response code or 0 when it is not known yet - * - http_method (string) - the HTTP verb of the last request - * - redirect_count (int) - the number of redirects followed while executing the request - * - redirect_url (string|null) - the resolved location of redirect responses, null otherwise - * - response_headers (array) - an array modelled after the special $http_response_header variable - * - start_time (float) - the time when the request was sent or 0.0 when it's pending - * - url (string) - the last effective URL of the request - * - user_data (mixed) - the value of the "user_data" request option, null if not set - * - * When the "capture_peer_cert_chain" option is true, the "peer_certificate_chain" - * attribute SHOULD list the peer certificates as an array of OpenSSL X.509 resources. - * - * Other info SHOULD be named after curl_getinfo()'s associative return value. - * - * @return mixed An array of all available info, or one of them when $type is - * provided, or null when an unsupported type is requested - */ - public function getInfo(string $type = null); -} diff --git a/vendor/symfony/contracts/HttpClient/ResponseStreamInterface.php b/vendor/symfony/contracts/HttpClient/ResponseStreamInterface.php deleted file mode 100644 index 0ede354136d..00000000000 --- a/vendor/symfony/contracts/HttpClient/ResponseStreamInterface.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient; - -/** - * Yields response chunks, returned by HttpClientInterface::stream(). - * - * @author Nicolas Grekas - * - * @extends \Iterator - */ -interface ResponseStreamInterface extends \Iterator -{ - public function key() : ResponseInterface; - public function current() : ChunkInterface; -} diff --git a/vendor/symfony/contracts/HttpClient/Test/Fixtures/web/index.php b/vendor/symfony/contracts/HttpClient/Test/Fixtures/web/index.php deleted file mode 100644 index 82ec1c03792..00000000000 --- a/vendor/symfony/contracts/HttpClient/Test/Fixtures/web/index.php +++ /dev/null @@ -1,159 +0,0 @@ - $v) { - switch ($k) { - default: - if (!\str_starts_with($k, 'HTTP_')) { - continue 2; - } - // no break - case 'SERVER_NAME': - case 'SERVER_PROTOCOL': - case 'REQUEST_URI': - case 'REQUEST_METHOD': - case 'PHP_AUTH_USER': - case 'PHP_AUTH_PW': - $vars[$k] = $v; - } -} -$json = \json_encode($vars, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE); -switch ($vars['REQUEST_URI']) { - default: - exit; - case '/head': - \header('Content-Length: ' . \strlen($json), \true); - break; - case '/': - case '/?a=a&b=b': - case 'http://127.0.0.1:8057/': - case 'http://localhost:8057/': - \ob_start('ob_gzhandler'); - break; - case '/103': - \header('HTTP/1.1 103 Early Hints'); - \header('Link: ; rel=preload; as=style', \false); - \header('Link: ; rel=preload; as=script', \false); - \flush(); - \usleep(1000); - echo "HTTP/1.1 200 OK\r\n"; - echo "Date: Fri, 26 May 2017 10:02:11 GMT\r\n"; - echo "Content-Length: 13\r\n"; - echo "\r\n"; - echo 'Here the body'; - exit; - case '/404': - \header('Content-Type: application/json', \true, 404); - break; - case '/404-gzipped': - \header('Content-Type: text/plain', \true, 404); - \ob_start('ob_gzhandler'); - @\ob_flush(); - \flush(); - \usleep(300000); - echo 'some text'; - exit; - case '/301': - if ('Basic Zm9vOmJhcg==' === $vars['HTTP_AUTHORIZATION']) { - \header('Location: http://127.0.0.1:8057/302', \true, 301); - } - break; - case '/301/bad-tld': - \header('Location: http://foo.example.', \true, 301); - break; - case '/301/invalid': - \header('Location: //?foo=bar', \true, 301); - break; - case '/301/proxy': - case 'http://localhost:8057/301/proxy': - case 'http://127.0.0.1:8057/301/proxy': - \header('Location: http://localhost:8057/', \true, 301); - break; - case '/302': - if (!isset($vars['HTTP_AUTHORIZATION'])) { - \header('Location: http://localhost:8057/', \true, 302); - } - break; - case '/302/relative': - \header('Location: ..', \true, 302); - break; - case '/304': - \header('Content-Length: 10', \true, 304); - echo '12345'; - return; - case '/307': - \header('Location: http://localhost:8057/post', \true, 307); - break; - case '/length-broken': - \header('Content-Length: 1000'); - break; - case '/post': - $output = \json_encode($_POST + ['REQUEST_METHOD' => $vars['REQUEST_METHOD']], \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE); - \header('Content-Type: application/json', \true); - \header('Content-Length: ' . \strlen($output)); - echo $output; - exit; - case '/timeout-header': - \usleep(300000); - break; - case '/timeout-body': - echo '<1>'; - @\ob_flush(); - \flush(); - \usleep(500000); - echo '<2>'; - exit; - case '/timeout-long': - \ignore_user_abort(\false); - \sleep(1); - while (\true) { - echo '<1>'; - @\ob_flush(); - \flush(); - \usleep(500); - } - exit; - case '/chunked': - \header('Transfer-Encoding: chunked'); - echo "8\r\nSymfony \r\n5\r\nis aw\r\n6\r\nesome!\r\n0\r\n\r\n"; - exit; - case '/chunked-broken': - \header('Transfer-Encoding: chunked'); - echo "8\r\nSymfony \r\n5\r\nis aw\r\n6\r\ne"; - exit; - case '/gzip-broken': - \header('Content-Encoding: gzip'); - echo \str_repeat('-', 1000); - exit; - case '/max-duration': - \ignore_user_abort(\false); - while (\true) { - echo '<1>'; - @\ob_flush(); - \flush(); - \usleep(500); - } - exit; - case '/json': - \header('Content-Type: application/json'); - echo \json_encode(['documents' => [['id' => '/json/1'], ['id' => '/json/2'], ['id' => '/json/3']]]); - exit; - case '/json/1': - case '/json/2': - case '/json/3': - \header('Content-Type: application/json'); - echo \json_encode(['title' => $vars['REQUEST_URI']]); - exit; -} -\header('Content-Type: application/json', \true); -echo $json; diff --git a/vendor/symfony/contracts/HttpClient/Test/HttpClientTestCase.php b/vendor/symfony/contracts/HttpClient/Test/HttpClientTestCase.php deleted file mode 100644 index e9a3a2d45c5..00000000000 --- a/vendor/symfony/contracts/HttpClient/Test/HttpClientTestCase.php +++ /dev/null @@ -1,807 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Test; - -use PHPUnit\Framework\TestCase; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\TimeoutExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; -use RectorPrefix202308\Symfony\Contracts\HttpClient\HttpClientInterface; -/** - * A reference test suite for HttpClientInterface implementations. - */ -abstract class HttpClientTestCase extends TestCase -{ - public static function setUpBeforeClass() : void - { - TestHttpServer::start(); - } - protected abstract function getHttpClient(string $testCase) : HttpClientInterface; - public function testGetRequest() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057', ['headers' => ['Foo' => 'baR'], 'user_data' => $data = new \stdClass()]); - $this->assertSame([], $response->getInfo('response_headers')); - $this->assertSame($data, $response->getInfo()['user_data']); - $this->assertSame(200, $response->getStatusCode()); - $info = $response->getInfo(); - $this->assertNull($info['error']); - $this->assertSame(0, $info['redirect_count']); - $this->assertSame('HTTP/1.1 200 OK', $info['response_headers'][0]); - $this->assertSame('Host: localhost:8057', $info['response_headers'][1]); - $this->assertSame('http://localhost:8057/', $info['url']); - $headers = $response->getHeaders(); - $this->assertSame('localhost:8057', $headers['host'][0]); - $this->assertSame(['application/json'], $headers['content-type']); - $body = \json_decode($response->getContent(), \true); - $this->assertSame($body, $response->toArray()); - $this->assertSame('HTTP/1.1', $body['SERVER_PROTOCOL']); - $this->assertSame('/', $body['REQUEST_URI']); - $this->assertSame('GET', $body['REQUEST_METHOD']); - $this->assertSame('localhost:8057', $body['HTTP_HOST']); - $this->assertSame('baR', $body['HTTP_FOO']); - $response = $client->request('GET', 'http://localhost:8057/length-broken'); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testHeadRequest() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('HEAD', 'http://localhost:8057/head', ['headers' => ['Foo' => 'baR'], 'user_data' => $data = new \stdClass(), 'buffer' => \false]); - $this->assertSame([], $response->getInfo('response_headers')); - $this->assertSame(200, $response->getStatusCode()); - $info = $response->getInfo(); - $this->assertSame('HTTP/1.1 200 OK', $info['response_headers'][0]); - $this->assertSame('Host: localhost:8057', $info['response_headers'][1]); - $headers = $response->getHeaders(); - $this->assertSame('localhost:8057', $headers['host'][0]); - $this->assertSame(['application/json'], $headers['content-type']); - $this->assertTrue(0 < $headers['content-length'][0]); - $this->assertSame('', $response->getContent()); - } - public function testNonBufferedGetRequest() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057', ['buffer' => \false, 'headers' => ['Foo' => 'baR']]); - $body = $response->toArray(); - $this->assertSame('baR', $body['HTTP_FOO']); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testBufferSink() - { - $sink = \fopen('php://temp', 'w+'); - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057', ['buffer' => $sink, 'headers' => ['Foo' => 'baR']]); - $body = $response->toArray(); - $this->assertSame('baR', $body['HTTP_FOO']); - \rewind($sink); - $sink = \stream_get_contents($sink); - $this->assertSame($sink, $response->getContent()); - } - public function testConditionalBuffering() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057'); - $firstContent = $response->getContent(); - $secondContent = $response->getContent(); - $this->assertSame($firstContent, $secondContent); - $response = $client->request('GET', 'http://localhost:8057', ['buffer' => function () { - return \false; - }]); - $response->getContent(); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testReentrantBufferCallback() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057', ['buffer' => function () use(&$response) { - $response->cancel(); - return \true; - }]); - $this->assertSame(200, $response->getStatusCode()); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testThrowingBufferCallback() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057', ['buffer' => function () { - throw new \Exception('Boo.'); - }]); - $this->assertSame(200, $response->getStatusCode()); - $this->expectException(TransportExceptionInterface::class); - $this->expectExceptionMessage('Boo'); - $response->getContent(); - } - public function testUnsupportedOption() - { - $client = $this->getHttpClient(__FUNCTION__); - $this->expectException(\InvalidArgumentException::class); - $client->request('GET', 'http://localhost:8057', ['capture_peer_cert' => 1.0]); - } - public function testHttpVersion() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057', ['http_version' => 1.0]); - $this->assertSame(200, $response->getStatusCode()); - $this->assertSame('HTTP/1.0 200 OK', $response->getInfo('response_headers')[0]); - $body = $response->toArray(); - $this->assertSame('HTTP/1.0', $body['SERVER_PROTOCOL']); - $this->assertSame('GET', $body['REQUEST_METHOD']); - $this->assertSame('/', $body['REQUEST_URI']); - } - public function testChunkedEncoding() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/chunked'); - $this->assertSame(['chunked'], $response->getHeaders()['transfer-encoding']); - $this->assertSame('Symfony is awesome!', $response->getContent()); - $response = $client->request('GET', 'http://localhost:8057/chunked-broken'); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testClientError() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/404'); - $client->stream($response)->valid(); - $this->assertSame(404, $response->getInfo('http_code')); - try { - $response->getHeaders(); - $this->fail(ClientExceptionInterface::class . ' expected'); - } catch (ClientExceptionInterface) { - } - try { - $response->getContent(); - $this->fail(ClientExceptionInterface::class . ' expected'); - } catch (ClientExceptionInterface) { - } - $this->assertSame(404, $response->getStatusCode()); - $this->assertSame(['application/json'], $response->getHeaders(\false)['content-type']); - $this->assertNotEmpty($response->getContent(\false)); - $response = $client->request('GET', 'http://localhost:8057/404'); - try { - foreach ($client->stream($response) as $chunk) { - $this->assertTrue($chunk->isFirst()); - } - $this->fail(ClientExceptionInterface::class . ' expected'); - } catch (ClientExceptionInterface) { - } - } - public function testIgnoreErrors() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/404'); - $this->assertSame(404, $response->getStatusCode()); - } - public function testDnsError() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/301/bad-tld'); - try { - $response->getStatusCode(); - $this->fail(TransportExceptionInterface::class . ' expected'); - } catch (TransportExceptionInterface) { - $this->addToAssertionCount(1); - } - try { - $response->getStatusCode(); - $this->fail(TransportExceptionInterface::class . ' still expected'); - } catch (TransportExceptionInterface) { - $this->addToAssertionCount(1); - } - $response = $client->request('GET', 'http://localhost:8057/301/bad-tld'); - try { - foreach ($client->stream($response) as $r => $chunk) { - } - $this->fail(TransportExceptionInterface::class . ' expected'); - } catch (TransportExceptionInterface) { - $this->addToAssertionCount(1); - } - $this->assertSame($response, $r); - $this->assertNotNull($chunk->getError()); - $this->expectException(TransportExceptionInterface::class); - foreach ($client->stream($response) as $chunk) { - } - } - public function testInlineAuth() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://foo:bar%3Dbar@localhost:8057'); - $body = $response->toArray(); - $this->assertSame('foo', $body['PHP_AUTH_USER']); - $this->assertSame('bar=bar', $body['PHP_AUTH_PW']); - } - public function testBadRequestBody() - { - $client = $this->getHttpClient(__FUNCTION__); - $this->expectException(TransportExceptionInterface::class); - $response = $client->request('POST', 'http://localhost:8057/', ['body' => function () { - (yield []); - }]); - $response->getStatusCode(); - } - public function test304() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/304', ['headers' => ['If-Match' => '"abc"'], 'buffer' => \false]); - $this->assertSame(304, $response->getStatusCode()); - $this->assertSame('', $response->getContent(\false)); - } - /** - * @testWith [[]] - * [["Content-Length: 7"]] - */ - public function testRedirects(array $headers = []) - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('POST', 'http://localhost:8057/301', ['auth_basic' => 'foo:bar', 'headers' => $headers, 'body' => function () { - (yield 'foo=bar'); - }]); - $body = $response->toArray(); - $this->assertSame('GET', $body['REQUEST_METHOD']); - $this->assertSame('Basic Zm9vOmJhcg==', $body['HTTP_AUTHORIZATION']); - $this->assertSame('http://localhost:8057/', $response->getInfo('url')); - $this->assertSame(2, $response->getInfo('redirect_count')); - $this->assertNull($response->getInfo('redirect_url')); - $expected = ['HTTP/1.1 301 Moved Permanently', 'Location: http://127.0.0.1:8057/302', 'Content-Type: application/json', 'HTTP/1.1 302 Found', 'Location: http://localhost:8057/', 'Content-Type: application/json', 'HTTP/1.1 200 OK', 'Content-Type: application/json']; - $filteredHeaders = \array_values(\array_filter($response->getInfo('response_headers'), function ($h) { - return \in_array(\substr($h, 0, 4), ['HTTP', 'Loca', 'Cont'], \true) && 'Content-Encoding: gzip' !== $h; - })); - $this->assertSame($expected, $filteredHeaders); - } - public function testInvalidRedirect() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/301/invalid'); - $this->assertSame(301, $response->getStatusCode()); - $this->assertSame(['//?foo=bar'], $response->getHeaders(\false)['location']); - $this->assertSame(0, $response->getInfo('redirect_count')); - $this->assertNull($response->getInfo('redirect_url')); - $this->expectException(RedirectionExceptionInterface::class); - $response->getHeaders(); - } - public function testRelativeRedirects() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/302/relative'); - $body = $response->toArray(); - $this->assertSame('/', $body['REQUEST_URI']); - $this->assertNull($response->getInfo('redirect_url')); - $response = $client->request('GET', 'http://localhost:8057/302/relative', ['max_redirects' => 0]); - $this->assertSame(302, $response->getStatusCode()); - $this->assertSame('http://localhost:8057/', $response->getInfo('redirect_url')); - } - public function testRedirect307() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('POST', 'http://localhost:8057/307', ['body' => function () { - (yield 'foo=bar'); - }, 'max_redirects' => 0]); - $this->assertSame(307, $response->getStatusCode()); - $response = $client->request('POST', 'http://localhost:8057/307', ['body' => 'foo=bar']); - $body = $response->toArray(); - $this->assertSame(['foo' => 'bar', 'REQUEST_METHOD' => 'POST'], $body); - } - public function testMaxRedirects() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/301', ['max_redirects' => 1, 'auth_basic' => 'foo:bar']); - try { - $response->getHeaders(); - $this->fail(RedirectionExceptionInterface::class . ' expected'); - } catch (RedirectionExceptionInterface) { - } - $this->assertSame(302, $response->getStatusCode()); - $this->assertSame(1, $response->getInfo('redirect_count')); - $this->assertSame('http://localhost:8057/', $response->getInfo('redirect_url')); - $expected = ['HTTP/1.1 301 Moved Permanently', 'Location: http://127.0.0.1:8057/302', 'Content-Type: application/json', 'HTTP/1.1 302 Found', 'Location: http://localhost:8057/', 'Content-Type: application/json']; - $filteredHeaders = \array_values(\array_filter($response->getInfo('response_headers'), function ($h) { - return \in_array(\substr($h, 0, 4), ['HTTP', 'Loca', 'Cont'], \true); - })); - $this->assertSame($expected, $filteredHeaders); - } - public function testStream() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057'); - $chunks = $client->stream($response); - $result = []; - foreach ($chunks as $r => $chunk) { - if ($chunk->isTimeout()) { - $result[] = 't'; - } elseif ($chunk->isLast()) { - $result[] = 'l'; - } elseif ($chunk->isFirst()) { - $result[] = 'f'; - } - } - $this->assertSame($response, $r); - $this->assertSame(['f', 'l'], $result); - $chunk = null; - $i = 0; - foreach ($client->stream($response) as $chunk) { - ++$i; - } - $this->assertSame(1, $i); - $this->assertTrue($chunk->isLast()); - } - public function testAddToStream() - { - $client = $this->getHttpClient(__FUNCTION__); - $r1 = $client->request('GET', 'http://localhost:8057'); - $completed = []; - $pool = [$r1]; - while ($pool) { - $chunks = $client->stream($pool); - $pool = []; - foreach ($chunks as $r => $chunk) { - if (!$chunk->isLast()) { - continue; - } - if ($r1 === $r) { - $r2 = $client->request('GET', 'http://localhost:8057'); - $pool[] = $r2; - } - $completed[] = $r; - } - } - $this->assertSame([$r1, $r2], $completed); - } - public function testCompleteTypeError() - { - $client = $this->getHttpClient(__FUNCTION__); - $this->expectException(\TypeError::class); - $client->stream(123); - } - public function testOnProgress() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('POST', 'http://localhost:8057/post', ['headers' => ['Content-Length' => 14], 'body' => 'foo=0123456789', 'on_progress' => function (...$state) use(&$steps) { - $steps[] = $state; - }]); - $body = $response->toArray(); - $this->assertSame(['foo' => '0123456789', 'REQUEST_METHOD' => 'POST'], $body); - $this->assertSame([0, 0], \array_slice($steps[0], 0, 2)); - $lastStep = \array_slice($steps, -1)[0]; - $this->assertSame([57, 57], \array_slice($lastStep, 0, 2)); - $this->assertSame('http://localhost:8057/post', $steps[0][2]['url']); - } - public function testPostJson() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('POST', 'http://localhost:8057/post', ['json' => ['foo' => 'bar']]); - $body = $response->toArray(); - $this->assertStringContainsString('json', $body['content-type']); - unset($body['content-type']); - $this->assertSame(['foo' => 'bar', 'REQUEST_METHOD' => 'POST'], $body); - } - public function testPostArray() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('POST', 'http://localhost:8057/post', ['body' => ['foo' => 'bar']]); - $this->assertSame(['foo' => 'bar', 'REQUEST_METHOD' => 'POST'], $response->toArray()); - } - public function testPostResource() - { - $client = $this->getHttpClient(__FUNCTION__); - $h = \fopen('php://temp', 'w+'); - \fwrite($h, 'foo=0123456789'); - \rewind($h); - $response = $client->request('POST', 'http://localhost:8057/post', ['body' => $h]); - $body = $response->toArray(); - $this->assertSame(['foo' => '0123456789', 'REQUEST_METHOD' => 'POST'], $body); - } - public function testPostCallback() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('POST', 'http://localhost:8057/post', ['body' => function () { - (yield 'foo'); - (yield ''); - (yield '='); - (yield '0123456789'); - }]); - $this->assertSame(['foo' => '0123456789', 'REQUEST_METHOD' => 'POST'], $response->toArray()); - } - public function testCancel() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-header'); - $response->cancel(); - $this->expectException(TransportExceptionInterface::class); - $response->getHeaders(); - } - public function testInfoOnCanceledResponse() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-header'); - $this->assertFalse($response->getInfo('canceled')); - $response->cancel(); - $this->assertTrue($response->getInfo('canceled')); - } - public function testCancelInStream() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/404'); - foreach ($client->stream($response) as $chunk) { - $response->cancel(); - } - $this->expectException(TransportExceptionInterface::class); - foreach ($client->stream($response) as $chunk) { - } - } - public function testOnProgressCancel() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-body', ['on_progress' => function ($dlNow) { - if (0 < $dlNow) { - throw new \Exception('Aborting the request.'); - } - }]); - try { - foreach ($client->stream([$response]) as $chunk) { - } - $this->fail(ClientExceptionInterface::class . ' expected'); - } catch (TransportExceptionInterface $e) { - $this->assertSame('Aborting the request.', $e->getPrevious()->getMessage()); - } - $this->assertNotNull($response->getInfo('error')); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testOnProgressError() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-body', ['on_progress' => function ($dlNow) { - if (0 < $dlNow) { - throw new \Error('BUG.'); - } - }]); - try { - foreach ($client->stream([$response]) as $chunk) { - } - $this->fail('Error expected'); - } catch (\Error $e) { - $this->assertSame('BUG.', $e->getMessage()); - } - $this->assertNotNull($response->getInfo('error')); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testResolve() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://symfony.com:8057/', ['resolve' => ['symfony.com' => '127.0.0.1']]); - $this->assertSame(200, $response->getStatusCode()); - $this->assertSame(200, $client->request('GET', 'http://symfony.com:8057/')->getStatusCode()); - $response = null; - $this->expectException(TransportExceptionInterface::class); - $client->request('GET', 'http://symfony.com:8057/', ['timeout' => 1]); - } - public function testIdnResolve() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://0-------------------------------------------------------------0.com:8057/', ['resolve' => ['0-------------------------------------------------------------0.com' => '127.0.0.1']]); - $this->assertSame(200, $response->getStatusCode()); - $response = $client->request('GET', 'http://Bücher.example:8057/', ['resolve' => ['xn--bcher-kva.example' => '127.0.0.1']]); - $this->assertSame(200, $response->getStatusCode()); - } - public function testNotATimeout() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-header', ['timeout' => 0.9]); - \sleep(1); - $this->assertSame(200, $response->getStatusCode()); - } - public function testTimeoutOnAccess() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-header', ['timeout' => 0.1]); - $this->expectException(TransportExceptionInterface::class); - $response->getHeaders(); - } - public function testTimeoutIsNotAFatalError() - { - \usleep(300000); - // wait for the previous test to release the server - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-body', ['timeout' => 0.25]); - try { - $response->getContent(); - $this->fail(TimeoutExceptionInterface::class . ' expected'); - } catch (TimeoutExceptionInterface $e) { - } - for ($i = 0; $i < 10; ++$i) { - try { - $this->assertSame('<1><2>', $response->getContent()); - break; - } catch (TimeoutExceptionInterface $e) { - } - } - if (10 === $i) { - throw $e; - } - } - public function testTimeoutOnStream() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-body'); - $this->assertSame(200, $response->getStatusCode()); - $chunks = $client->stream([$response], 0.2); - $result = []; - foreach ($chunks as $r => $chunk) { - if ($chunk->isTimeout()) { - $result[] = 't'; - } else { - $result[] = $chunk->getContent(); - } - } - $this->assertSame(['<1>', 't'], $result); - $chunks = $client->stream([$response]); - foreach ($chunks as $r => $chunk) { - $this->assertSame('<2>', $chunk->getContent()); - $this->assertSame('<1><2>', $r->getContent()); - return; - } - $this->fail('The response should have completed'); - } - public function testUncheckedTimeoutThrows() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/timeout-body'); - $chunks = $client->stream([$response], 0.1); - $this->expectException(TransportExceptionInterface::class); - foreach ($chunks as $r => $chunk) { - } - } - public function testTimeoutWithActiveConcurrentStream() - { - $p1 = TestHttpServer::start(8067); - $p2 = TestHttpServer::start(8077); - $client = $this->getHttpClient(__FUNCTION__); - $streamingResponse = $client->request('GET', 'http://localhost:8067/max-duration'); - $blockingResponse = $client->request('GET', 'http://localhost:8077/timeout-body', ['timeout' => 0.25]); - $this->assertSame(200, $streamingResponse->getStatusCode()); - $this->assertSame(200, $blockingResponse->getStatusCode()); - $this->expectException(TransportExceptionInterface::class); - try { - $blockingResponse->getContent(); - } finally { - $p1->stop(); - $p2->stop(); - } - } - public function testTimeoutOnInitialize() - { - $p1 = TestHttpServer::start(8067); - $p2 = TestHttpServer::start(8077); - $client = $this->getHttpClient(__FUNCTION__); - $start = \microtime(\true); - $responses = []; - $responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]); - $responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]); - $responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]); - $responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]); - try { - foreach ($responses as $response) { - try { - $response->getContent(); - $this->fail(TransportExceptionInterface::class . ' expected'); - } catch (TransportExceptionInterface) { - } - } - $responses = []; - $duration = \microtime(\true) - $start; - $this->assertLessThan(1.0, $duration); - } finally { - $p1->stop(); - $p2->stop(); - } - } - public function testTimeoutOnDestruct() - { - $p1 = TestHttpServer::start(8067); - $p2 = TestHttpServer::start(8077); - $client = $this->getHttpClient(__FUNCTION__); - $start = \microtime(\true); - $responses = []; - $responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]); - $responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]); - $responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]); - $responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]); - try { - while ($response = \array_shift($responses)) { - try { - unset($response); - $this->fail(TransportExceptionInterface::class . ' expected'); - } catch (TransportExceptionInterface) { - } - } - $duration = \microtime(\true) - $start; - $this->assertLessThan(1.0, $duration); - } finally { - $p1->stop(); - $p2->stop(); - } - } - public function testDestruct() - { - $client = $this->getHttpClient(__FUNCTION__); - $start = \microtime(\true); - $client->request('GET', 'http://localhost:8057/timeout-long'); - $client = null; - $duration = \microtime(\true) - $start; - $this->assertGreaterThan(1, $duration); - $this->assertLessThan(4, $duration); - } - public function testGetContentAfterDestruct() - { - $client = $this->getHttpClient(__FUNCTION__); - try { - $client->request('GET', 'http://localhost:8057/404'); - $this->fail(ClientExceptionInterface::class . ' expected'); - } catch (ClientExceptionInterface $e) { - $this->assertSame('GET', $e->getResponse()->toArray(\false)['REQUEST_METHOD']); - } - } - public function testGetEncodedContentAfterDestruct() - { - $client = $this->getHttpClient(__FUNCTION__); - try { - $client->request('GET', 'http://localhost:8057/404-gzipped'); - $this->fail(ClientExceptionInterface::class . ' expected'); - } catch (ClientExceptionInterface $e) { - $this->assertSame('some text', $e->getResponse()->getContent(\false)); - } - } - public function testProxy() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/', ['proxy' => 'http://localhost:8057']); - $body = $response->toArray(); - $this->assertSame('localhost:8057', $body['HTTP_HOST']); - $this->assertMatchesRegularExpression('#^http://(localhost|127\\.0\\.0\\.1):8057/$#', $body['REQUEST_URI']); - $response = $client->request('GET', 'http://localhost:8057/', ['proxy' => 'http://foo:b%3Dar@localhost:8057']); - $body = $response->toArray(); - $this->assertSame('Basic Zm9vOmI9YXI=', $body['HTTP_PROXY_AUTHORIZATION']); - $_SERVER['http_proxy'] = 'http://localhost:8057'; - try { - $response = $client->request('GET', 'http://localhost:8057/'); - $body = $response->toArray(); - $this->assertSame('localhost:8057', $body['HTTP_HOST']); - $this->assertMatchesRegularExpression('#^http://(localhost|127\\.0\\.0\\.1):8057/$#', $body['REQUEST_URI']); - } finally { - unset($_SERVER['http_proxy']); - } - $response = $client->request('GET', 'http://localhost:8057/301/proxy', ['proxy' => 'http://localhost:8057']); - $body = $response->toArray(); - $this->assertSame('localhost:8057', $body['HTTP_HOST']); - $this->assertMatchesRegularExpression('#^http://(localhost|127\\.0\\.0\\.1):8057/$#', $body['REQUEST_URI']); - } - public function testNoProxy() - { - \putenv('no_proxy=' . ($_SERVER['no_proxy'] = 'example.com, localhost')); - try { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/', ['proxy' => 'http://localhost:8057']); - $body = $response->toArray(); - $this->assertSame('HTTP/1.1', $body['SERVER_PROTOCOL']); - $this->assertSame('/', $body['REQUEST_URI']); - $this->assertSame('GET', $body['REQUEST_METHOD']); - } finally { - \putenv('no_proxy'); - unset($_SERVER['no_proxy']); - } - } - /** - * @requires extension zlib - */ - public function testAutoEncodingRequest() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057'); - $this->assertSame(200, $response->getStatusCode()); - $headers = $response->getHeaders(); - $this->assertSame(['Accept-Encoding'], $headers['vary']); - $this->assertStringContainsString('gzip', $headers['content-encoding'][0]); - $body = $response->toArray(); - $this->assertStringContainsString('gzip', $body['HTTP_ACCEPT_ENCODING']); - } - public function testBaseUri() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', '../404', ['base_uri' => 'http://localhost:8057/abc/']); - $this->assertSame(404, $response->getStatusCode()); - $this->assertSame(['application/json'], $response->getHeaders(\false)['content-type']); - } - public function testQuery() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/?a=a', ['query' => ['b' => 'b']]); - $body = $response->toArray(); - $this->assertSame('GET', $body['REQUEST_METHOD']); - $this->assertSame('/?a=a&b=b', $body['REQUEST_URI']); - } - public function testInformationalResponse() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/103'); - $this->assertSame('Here the body', $response->getContent()); - $this->assertSame(200, $response->getStatusCode()); - } - public function testInformationalResponseStream() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/103'); - $chunks = []; - foreach ($client->stream($response) as $chunk) { - $chunks[] = $chunk; - } - $this->assertSame(103, $chunks[0]->getInformationalStatus()[0]); - $this->assertSame(['; rel=preload; as=style', '; rel=preload; as=script'], $chunks[0]->getInformationalStatus()[1]['link']); - $this->assertTrue($chunks[1]->isFirst()); - $this->assertSame('Here the body', $chunks[2]->getContent()); - $this->assertTrue($chunks[3]->isLast()); - $this->assertNull($chunks[3]->getInformationalStatus()); - $this->assertSame(['date', 'content-length'], \array_keys($response->getHeaders())); - $this->assertContains('Link: ; rel=preload; as=style', $response->getInfo('response_headers')); - } - /** - * @requires extension zlib - */ - public function testUserlandEncodingRequest() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057', ['headers' => ['Accept-Encoding' => 'gzip']]); - $headers = $response->getHeaders(); - $this->assertSame(['Accept-Encoding'], $headers['vary']); - $this->assertStringContainsString('gzip', $headers['content-encoding'][0]); - $body = $response->getContent(); - $this->assertSame("\x1f", $body[0]); - $body = \json_decode(\gzdecode($body), \true); - $this->assertSame('gzip', $body['HTTP_ACCEPT_ENCODING']); - } - /** - * @requires extension zlib - */ - public function testGzipBroken() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/gzip-broken'); - $this->expectException(TransportExceptionInterface::class); - $response->getContent(); - } - public function testMaxDuration() - { - $client = $this->getHttpClient(__FUNCTION__); - $response = $client->request('GET', 'http://localhost:8057/max-duration', ['max_duration' => 0.1]); - $start = \microtime(\true); - try { - $response->getContent(); - } catch (TransportExceptionInterface) { - $this->addToAssertionCount(1); - } - $duration = \microtime(\true) - $start; - $this->assertLessThan(10, $duration); - } - public function testWithOptions() - { - $client = $this->getHttpClient(__FUNCTION__); - $client2 = $client->withOptions(['base_uri' => 'http://localhost:8057/']); - $this->assertNotSame($client, $client2); - $this->assertSame($client::class, $client2::class); - $response = $client2->request('GET', '/'); - $this->assertSame(200, $response->getStatusCode()); - } -} diff --git a/vendor/symfony/contracts/HttpClient/Test/TestHttpServer.php b/vendor/symfony/contracts/HttpClient/Test/TestHttpServer.php deleted file mode 100644 index 46fa3f790b3..00000000000 --- a/vendor/symfony/contracts/HttpClient/Test/TestHttpServer.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\HttpClient\Test; - -use RectorPrefix202308\Symfony\Component\Process\PhpExecutableFinder; -use RectorPrefix202308\Symfony\Component\Process\Process; -class TestHttpServer -{ - private static $process = []; - public static function start(int $port = 8057) : Process - { - if (isset(self::$process[$port])) { - self::$process[$port]->stop(); - } else { - \register_shutdown_function(static function () use($port) { - self::$process[$port]->stop(); - }); - } - $finder = new PhpExecutableFinder(); - $process = new Process(\array_merge([$finder->find(\false)], $finder->findArguments(), ['-dopcache.enable=0', '-dvariables_order=EGPCS', '-S', '127.0.0.1:' . $port])); - $process->setWorkingDirectory(__DIR__ . '/Fixtures/web'); - $process->start(); - self::$process[$port] = $process; - do { - \usleep(50000); - } while (!@\fopen('http://127.0.0.1:' . $port, 'r')); - return $process; - } -} diff --git a/vendor/symfony/contracts/HttpClient/composer.json b/vendor/symfony/contracts/HttpClient/composer.json deleted file mode 100644 index f854f8e056e..00000000000 --- a/vendor/symfony/contracts/HttpClient/composer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "symfony\/http-client-contracts", - "type": "library", - "description": "Generic abstractions related to HTTP clients", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "homepage": "https:\/\/symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https:\/\/symfony.com\/contributors" - } - ], - "require": { - "php": ">=8.1" - }, - "autoload": { - "psr-4": { - "RectorPrefix202308\\Symfony\\Contracts\\HttpClient\\": "" - }, - "exclude-from-classmap": [ - "\/Test\/" - ] - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony\/contracts", - "url": "https:\/\/github.com\/symfony\/contracts" - } - } -} \ No newline at end of file diff --git a/vendor/symfony/contracts/LICENSE b/vendor/symfony/contracts/LICENSE deleted file mode 100644 index 7536caeae80..00000000000 --- a/vendor/symfony/contracts/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present 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. diff --git a/vendor/symfony/contracts/README.md b/vendor/symfony/contracts/README.md deleted file mode 100644 index 617a78f28ec..00000000000 --- a/vendor/symfony/contracts/README.md +++ /dev/null @@ -1,54 +0,0 @@ -Symfony Contracts -================= - -A set of abstractions extracted out of the Symfony components. - -Can be used to build on semantics that the Symfony components proved useful - and -that already have battle tested implementations. - -Design Principles ------------------ - - * contracts are split by domain, each into their own sub-namespaces; - * contracts are small and consistent sets of PHP interfaces, traits, normative - docblocks and reference test suites when applicable; - * all contracts must have a proven implementation to enter this repository; - * they must be backward compatible with existing Symfony components. - -Packages that implement specific contracts should list them in the "provide" -section of their "composer.json" file, using the `symfony/*-implementation` -convention (e.g. `"provide": { "symfony/cache-implementation": "1.0" }`). - -FAQ ---- - -### How to use this package? - -The abstractions in this package are useful to achieve loose coupling and -interoperability. By using the provided interfaces as type hints, you are able -to reuse any implementations that match their contracts. It could be a Symfony -component, or another one provided by the PHP community at large. - -Depending on their semantics, some interfaces can be combined with autowiring to -seamlessly inject a service in your classes. - -Others might be useful as labeling interfaces, to hint about a specific behavior -that could be enabled when using autoconfiguration or manual service tagging (or -any other means provided by your framework.) - -### How is this different from PHP-FIG's PSRs? - -When applicable, the provided contracts are built on top of PHP-FIG's PSRs. But -the group has different goals and different processes. Here, we're focusing on -providing abstractions that are useful on their own while still compatible with -implementations provided by Symfony. Although not the main target, we hope that -the declared contracts will directly or indirectly contribute to the PHP-FIG. - -Resources ---------- - - * [Documentation](https://symfony.com/doc/current/components/contracts.html) - * [Contributing](https://symfony.com/doc/current/contributing/index.html) - * [Report issues](https://github.com/symfony/symfony/issues) and - [send Pull Requests](https://github.com/symfony/symfony/pulls) - in the [main Symfony repository](https://github.com/symfony/symfony) diff --git a/vendor/symfony/contracts/Service/CHANGELOG.md b/vendor/symfony/contracts/Service/CHANGELOG.md deleted file mode 100644 index 7932e26132d..00000000000 --- a/vendor/symfony/contracts/Service/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -CHANGELOG -========= - -The changelog is maintained for all Symfony contracts at the following URL: -https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/contracts/Service/LICENSE b/vendor/symfony/contracts/Service/LICENSE deleted file mode 100644 index 7536caeae80..00000000000 --- a/vendor/symfony/contracts/Service/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present 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. diff --git a/vendor/symfony/contracts/Translation/CHANGELOG.md b/vendor/symfony/contracts/Translation/CHANGELOG.md deleted file mode 100644 index 7932e26132d..00000000000 --- a/vendor/symfony/contracts/Translation/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -CHANGELOG -========= - -The changelog is maintained for all Symfony contracts at the following URL: -https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/contracts/Translation/LICENSE b/vendor/symfony/contracts/Translation/LICENSE deleted file mode 100644 index 7536caeae80..00000000000 --- a/vendor/symfony/contracts/Translation/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018-present 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. diff --git a/vendor/symfony/contracts/Translation/LocaleAwareInterface.php b/vendor/symfony/contracts/Translation/LocaleAwareInterface.php deleted file mode 100644 index cc7723786f9..00000000000 --- a/vendor/symfony/contracts/Translation/LocaleAwareInterface.php +++ /dev/null @@ -1,27 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Translation; - -interface LocaleAwareInterface -{ - /** - * Sets the current locale. - * - * @return void - * - * @throws \InvalidArgumentException If the locale contains invalid characters - */ - public function setLocale(string $locale); - /** - * Returns the current locale. - */ - public function getLocale() : string; -} diff --git a/vendor/symfony/contracts/Translation/README.md b/vendor/symfony/contracts/Translation/README.md deleted file mode 100644 index b211d5849c8..00000000000 --- a/vendor/symfony/contracts/Translation/README.md +++ /dev/null @@ -1,9 +0,0 @@ -Symfony Translation Contracts -============================= - -A set of abstractions extracted out of the Symfony components. - -Can be used to build on semantics that the Symfony components proved useful and -that already have battle tested implementations. - -See https://github.com/symfony/contracts/blob/main/README.md for more information. diff --git a/vendor/symfony/contracts/Translation/Test/TranslatorTest.php b/vendor/symfony/contracts/Translation/Test/TranslatorTest.php deleted file mode 100644 index 4d9f5cb1d25..00000000000 --- a/vendor/symfony/contracts/Translation/Test/TranslatorTest.php +++ /dev/null @@ -1,306 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Translation\Test; - -use PHPUnit\Framework\TestCase; -use RectorPrefix202308\Symfony\Contracts\Translation\TranslatorInterface; -use RectorPrefix202308\Symfony\Contracts\Translation\TranslatorTrait; -/** - * Test should cover all languages mentioned on http://translate.sourceforge.net/wiki/l10n/pluralforms - * and Plural forms mentioned on http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms. - * - * See also https://developer.mozilla.org/en/Localization_and_Plurals which mentions 15 rules having a maximum of 6 forms. - * The mozilla code is also interesting to check for. - * - * As mentioned by chx http://drupal.org/node/1273968 we can cover all by testing number from 0 to 199 - * - * The goal to cover all languages is to far fetched so this test case is smaller. - * - * @author Clemens Tolboom clemens@build2be.nl - */ -class TranslatorTest extends TestCase -{ - private $defaultLocale; - protected function setUp() : void - { - $this->defaultLocale = \Locale::getDefault(); - \Locale::setDefault('en'); - } - protected function tearDown() : void - { - \Locale::setDefault($this->defaultLocale); - } - public function getTranslator() : TranslatorInterface - { - return new class implements TranslatorInterface - { - use TranslatorTrait; - }; - } - /** - * @dataProvider getTransTests - */ - public function testTrans($expected, $id, $parameters) - { - $translator = $this->getTranslator(); - $this->assertEquals($expected, $translator->trans($id, $parameters)); - } - /** - * @dataProvider getTransChoiceTests - */ - public function testTransChoiceWithExplicitLocale($expected, $id, $number) - { - $translator = $this->getTranslator(); - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number])); - } - /** - * @requires extension intl - * - * @dataProvider getTransChoiceTests - */ - public function testTransChoiceWithDefaultLocale($expected, $id, $number) - { - $translator = $this->getTranslator(); - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number])); - } - /** - * @dataProvider getTransChoiceTests - */ - public function testTransChoiceWithEnUsPosix($expected, $id, $number) - { - $translator = $this->getTranslator(); - $translator->setLocale('en_US_POSIX'); - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number])); - } - public function testGetSetLocale() - { - $translator = $this->getTranslator(); - $this->assertEquals('en', $translator->getLocale()); - } - /** - * @requires extension intl - */ - public function testGetLocaleReturnsDefaultLocaleIfNotSet() - { - $translator = $this->getTranslator(); - \Locale::setDefault('pt_BR'); - $this->assertEquals('pt_BR', $translator->getLocale()); - \Locale::setDefault('en'); - $this->assertEquals('en', $translator->getLocale()); - } - public static function getTransTests() - { - return [['Symfony is great!', 'Symfony is great!', []], ['Symfony is awesome!', 'Symfony is %what%!', ['%what%' => 'awesome']]]; - } - public static function getTransChoiceTests() - { - return [ - ['There are no apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['There is one apple', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 1], - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 10], - ['There are 0 apples', 'There is 1 apple|There are %count% apples', 0], - ['There is 1 apple', 'There is 1 apple|There are %count% apples', 1], - ['There are 10 apples', 'There is 1 apple|There are %count% apples', 10], - // custom validation messages may be coded with a fixed value - ['There are 2 apples', 'There are 2 apples', 2], - ]; - } - /** - * @dataProvider getInterval - */ - public function testInterval($expected, $number, $interval) - { - $translator = $this->getTranslator(); - $this->assertEquals($expected, $translator->trans($interval . ' foo|[1,Inf[ bar', ['%count%' => $number])); - } - public static function getInterval() - { - return [['foo', 3, '{1,2, 3 ,4}'], ['bar', 10, '{1,2, 3 ,4}'], ['bar', 3, '[1,2]'], ['foo', 1, '[1,2]'], ['foo', 2, '[1,2]'], ['bar', 1, ']1,2['], ['bar', 2, ']1,2['], ['foo', \log(0), '[-Inf,2['], ['foo', -\log(0), '[-2,+Inf]']]; - } - /** - * @dataProvider getChooseTests - */ - public function testChoose($expected, $id, $number, $locale = null) - { - $translator = $this->getTranslator(); - $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number], null, $locale)); - } - public function testReturnMessageIfExactlyOneStandardRuleIsGiven() - { - $translator = $this->getTranslator(); - $this->assertEquals('There are two apples', $translator->trans('There are two apples', ['%count%' => 2])); - } - /** - * @dataProvider getNonMatchingMessages - */ - public function testThrowExceptionIfMatchingMessageCannotBeFound($id, $number) - { - $this->expectException(\InvalidArgumentException::class); - $translator = $this->getTranslator(); - $translator->trans($id, ['%count%' => $number]); - } - public static function getNonMatchingMessages() - { - return [['{0} There are no apples|{1} There is one apple', 2], ['{1} There is one apple|]1,Inf] There are %count% apples', 0], ['{1} There is one apple|]2,Inf] There are %count% apples', 2], ['{0} There are no apples|There is one apple', 2]]; - } - public static function getChooseTests() - { - return [ - ['There are no apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['There are no apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['There are no apples', '{0}There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['There is one apple', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 1], - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 10], - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf]There are %count% apples', 10], - ['There are 10 apples', '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples', 10], - ['There are 0 apples', 'There is one apple|There are %count% apples', 0], - ['There is one apple', 'There is one apple|There are %count% apples', 1], - ['There are 10 apples', 'There is one apple|There are %count% apples', 10], - ['There are 0 apples', 'one: There is one apple|more: There are %count% apples', 0], - ['There is one apple', 'one: There is one apple|more: There are %count% apples', 1], - ['There are 10 apples', 'one: There is one apple|more: There are %count% apples', 10], - ['There are no apples', '{0} There are no apples|one: There is one apple|more: There are %count% apples', 0], - ['There is one apple', '{0} There are no apples|one: There is one apple|more: There are %count% apples', 1], - ['There are 10 apples', '{0} There are no apples|one: There is one apple|more: There are %count% apples', 10], - ['', '{0}|{1} There is one apple|]1,Inf] There are %count% apples', 0], - ['', '{0} There are no apples|{1}|]1,Inf] There are %count% apples', 1], - // Indexed only tests which are Gettext PoFile* compatible strings. - ['There are 0 apples', 'There is one apple|There are %count% apples', 0], - ['There is one apple', 'There is one apple|There are %count% apples', 1], - ['There are 2 apples', 'There is one apple|There are %count% apples', 2], - // Tests for float numbers - ['There is almost one apple', '{0} There are no apples|]0,1[ There is almost one apple|{1} There is one apple|[1,Inf] There is more than one apple', 0.7], - ['There is one apple', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 1], - ['There is more than one apple', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 1.7], - ['There are no apples', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 0], - ['There are no apples', '{0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 0.0], - ['There are no apples', '{0.0} There are no apples|]0,1[There are %count% apples|{1} There is one apple|[1,Inf] There is more than one apple', 0], - // Test texts with new-lines - // with double-quotes and \n in id & double-quotes and actual newlines in text - ["This is a text with a\n new-line in it. Selector = 0.", '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 0], - // with double-quotes and \n in id and single-quotes and actual newlines in text - ["This is a text with a\n new-line in it. Selector = 1.", '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 1], - ["This is a text with a\n new-line in it. Selector > 1.", '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 5], - // with double-quotes and id split across lines - ['This is a text with a - new-line in it. Selector = 1.', '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 1], - // with single-quotes and id split across lines - ['This is a text with a - new-line in it. Selector > 1.', '{0}This is a text with a - new-line in it. Selector = 0.|{1}This is a text with a - new-line in it. Selector = 1.|[1,Inf]This is a text with a - new-line in it. Selector > 1.', 5], - // with single-quotes and \n in text - ['This is a text with a\\nnew-line in it. Selector = 0.', '{0}This is a text with a\\nnew-line in it. Selector = 0.|{1}This is a text with a\\nnew-line in it. Selector = 1.|[1,Inf]This is a text with a\\nnew-line in it. Selector > 1.', 0], - // with double-quotes and id split across lines - ["This is a text with a\nnew-line in it. Selector = 1.", "{0}This is a text with a\nnew-line in it. Selector = 0.|{1}This is a text with a\nnew-line in it. Selector = 1.|[1,Inf]This is a text with a\nnew-line in it. Selector > 1.", 1], - // escape pipe - ['This is a text with | in it. Selector = 0.', '{0}This is a text with || in it. Selector = 0.|{1}This is a text with || in it. Selector = 1.', 0], - // Empty plural set (2 plural forms) from a .PO file - ['', '|', 1], - // Empty plural set (3 plural forms) from a .PO file - ['', '||', 1], - // Floating values - ['1.5 liters', '%count% liter|%count% liters', 1.5], - ['1.5 litre', '%count% litre|%count% litres', 1.5, 'fr'], - // Negative values - ['-1 degree', '%count% degree|%count% degrees', -1], - ['-1 degré', '%count% degré|%count% degrés', -1], - ['-1.5 degrees', '%count% degree|%count% degrees', -1.5], - ['-1.5 degré', '%count% degré|%count% degrés', -1.5, 'fr'], - ['-2 degrees', '%count% degree|%count% degrees', -2], - ['-2 degrés', '%count% degré|%count% degrés', -2], - ]; - } - /** - * @dataProvider failingLangcodes - */ - public function testFailedLangcodes($nplural, $langCodes) - { - $matrix = $this->generateTestData($langCodes); - $this->validateMatrix($nplural, $matrix, \false); - } - /** - * @dataProvider successLangcodes - */ - public function testLangcodes($nplural, $langCodes) - { - $matrix = $this->generateTestData($langCodes); - $this->validateMatrix($nplural, $matrix); - } - /** - * This array should contain all currently known langcodes. - * - * As it is impossible to have this ever complete we should try as hard as possible to have it almost complete. - */ - public static function successLangcodes() : array - { - return [['1', ['ay', 'bo', 'cgg', 'dz', 'id', 'ja', 'jbo', 'ka', 'kk', 'km', 'ko', 'ky']], ['2', ['nl', 'fr', 'en', 'de', 'de_GE', 'hy', 'hy_AM', 'en_US_POSIX']], ['3', ['be', 'bs', 'cs', 'hr']], ['4', ['cy', 'mt', 'sl']], ['6', ['ar']]]; - } - /** - * This array should be at least empty within the near future. - * - * This both depends on a complete list trying to add above as understanding - * the plural rules of the current failing languages. - * - * @return array with nplural together with langcodes - */ - public static function failingLangcodes() : array - { - return [['1', ['fa']], ['2', ['jbo']], ['3', ['cbs']], ['4', ['gd', 'kw']], ['5', ['ga']]]; - } - /** - * We validate only on the plural coverage. Thus the real rules is not tested. - * - * @param string $nplural Plural expected - * @param array $matrix Containing langcodes and their plural index values - */ - protected function validateMatrix(string $nplural, array $matrix, bool $expectSuccess = \true) - { - foreach ($matrix as $langCode => $data) { - $indexes = \array_flip($data); - if ($expectSuccess) { - $this->assertCount($nplural, $indexes, "Langcode '{$langCode}' has '{$nplural}' plural forms."); - } else { - $this->assertNotEquals((int) $nplural, \count($indexes), "Langcode '{$langCode}' has '{$nplural}' plural forms."); - } - } - } - protected function generateTestData($langCodes) - { - $translator = new class - { - use TranslatorTrait { - getPluralizationRule as public; - } - }; - $matrix = []; - foreach ($langCodes as $langCode) { - for ($count = 0; $count < 200; ++$count) { - $plural = $translator->getPluralizationRule($count, $langCode); - $matrix[$langCode][$count] = $plural; - } - } - return $matrix; - } -} diff --git a/vendor/symfony/contracts/Translation/TranslatableInterface.php b/vendor/symfony/contracts/Translation/TranslatableInterface.php deleted file mode 100644 index 7ad79d97878..00000000000 --- a/vendor/symfony/contracts/Translation/TranslatableInterface.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Translation; - -/** - * @author Nicolas Grekas - */ -interface TranslatableInterface -{ - public function trans(TranslatorInterface $translator, string $locale = null) : string; -} diff --git a/vendor/symfony/contracts/Translation/TranslatorInterface.php b/vendor/symfony/contracts/Translation/TranslatorInterface.php deleted file mode 100644 index a1f79418f73..00000000000 --- a/vendor/symfony/contracts/Translation/TranslatorInterface.php +++ /dev/null @@ -1,66 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Translation; - -/** - * @author Fabien Potencier - */ -interface TranslatorInterface -{ - /** - * Translates the given message. - * - * When a number is provided as a parameter named "%count%", the message is parsed for plural - * forms and a translation is chosen according to this number using the following rules: - * - * Given a message with different plural translations separated by a - * pipe (|), this method returns the correct portion of the message based - * on the given number, locale and the pluralization rules in the message - * itself. - * - * The message supports two different types of pluralization rules: - * - * interval: {0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples - * indexed: There is one apple|There are %count% apples - * - * The indexed solution can also contain labels (e.g. one: There is one apple). - * This is purely for making the translations more clear - it does not - * affect the functionality. - * - * The two methods can also be mixed: - * {0} There are no apples|one: There is one apple|more: There are %count% apples - * - * An interval can represent a finite set of numbers: - * {1,2,3,4} - * - * An interval can represent numbers between two numbers: - * [1, +Inf] - * ]-1,2[ - * - * The left delimiter can be [ (inclusive) or ] (exclusive). - * The right delimiter can be [ (exclusive) or ] (inclusive). - * Beside numbers, you can use -Inf and +Inf for the infinite. - * - * @see https://en.wikipedia.org/wiki/ISO_31-11 - * - * @param string $id The message id (may also be an object that can be cast to string) - * @param array $parameters An array of parameters for the message - * @param string|null $domain The domain for the message or null to use the default - * @param string|null $locale The locale or null to use the default - * - * @throws \InvalidArgumentException If the locale contains invalid characters - */ - public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null) : string; - /** - * Returns the default locale. - */ - public function getLocale() : string; -} diff --git a/vendor/symfony/contracts/Translation/TranslatorTrait.php b/vendor/symfony/contracts/Translation/TranslatorTrait.php deleted file mode 100644 index 887bd4ae5e1..00000000000 --- a/vendor/symfony/contracts/Translation/TranslatorTrait.php +++ /dev/null @@ -1,221 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace RectorPrefix202308\Symfony\Contracts\Translation; - -use RectorPrefix202308\Symfony\Component\Translation\Exception\InvalidArgumentException; -/** - * A trait to help implement TranslatorInterface and LocaleAwareInterface. - * - * @author Fabien Potencier - */ -trait TranslatorTrait -{ - /** - * @var string|null - */ - private $locale; - /** - * @return void - */ - public function setLocale(string $locale) - { - $this->locale = $locale; - } - public function getLocale() : string - { - return $this->locale ?: (\class_exists(\Locale::class) ? \Locale::getDefault() : 'en'); - } - public function trans(?string $id, array $parameters = [], string $domain = null, string $locale = null) : string - { - if (null === $id || '' === $id) { - return ''; - } - if (!isset($parameters['%count%']) || !\is_numeric($parameters['%count%'])) { - return \strtr($id, $parameters); - } - $number = (float) $parameters['%count%']; - $locale = $locale ?: $this->getLocale(); - $parts = []; - if (\preg_match('/^\\|++$/', $id)) { - $parts = \explode('|', $id); - } elseif (\preg_match_all('/(?:\\|\\||[^\\|])++/', $id, $matches)) { - $parts = $matches[0]; - } - $intervalRegexp = <<<'EOF' -/^(?P - ({\s* - (\-?\d+(\.\d+)?[\s*,\s*\-?\d+(\.\d+)?]*) - \s*}) - - | - - (?P[\[\]]) - \s* - (?P-Inf|\-?\d+(\.\d+)?) - \s*,\s* - (?P\+?Inf|\-?\d+(\.\d+)?) - \s* - (?P[\[\]]) -)\s*(?P.*?)$/xs -EOF; - $standardRules = []; - foreach ($parts as $part) { - $part = \trim(\str_replace('||', '|', $part)); - // try to match an explicit rule, then fallback to the standard ones - if (\preg_match($intervalRegexp, $part, $matches)) { - if ($matches[2]) { - foreach (\explode(',', $matches[3]) as $n) { - if ($number == $n) { - return \strtr($matches['message'], $parameters); - } - } - } else { - $leftNumber = '-Inf' === $matches['left'] ? -\INF : (float) $matches['left']; - $rightNumber = \is_numeric($matches['right']) ? (float) $matches['right'] : \INF; - if (('[' === $matches['left_delimiter'] ? $number >= $leftNumber : $number > $leftNumber) && (']' === $matches['right_delimiter'] ? $number <= $rightNumber : $number < $rightNumber)) { - return \strtr($matches['message'], $parameters); - } - } - } elseif (\preg_match('/^\\w+\\:\\s*(.*?)$/', $part, $matches)) { - $standardRules[] = $matches[1]; - } else { - $standardRules[] = $part; - } - } - $position = $this->getPluralizationRule($number, $locale); - if (!isset($standardRules[$position])) { - // when there's exactly one rule given, and that rule is a standard - // rule, use this rule - if (1 === \count($parts) && isset($standardRules[0])) { - return \strtr($standardRules[0], $parameters); - } - $message = \sprintf('Unable to choose a translation for "%s" with locale "%s" for value "%d". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %%count%% apples").', $id, $locale, $number); - if (\class_exists(InvalidArgumentException::class)) { - throw new InvalidArgumentException($message); - } - throw new \InvalidArgumentException($message); - } - return \strtr($standardRules[$position], $parameters); - } - /** - * Returns the plural position to use for the given locale and number. - * - * The plural rules are derived from code of the Zend Framework (2010-09-25), - * which is subject to the new BSD license (http://framework.zend.com/license/new-bsd). - * Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) - */ - private function getPluralizationRule(float $number, string $locale) : int - { - $number = \abs($number); - switch ('pt_BR' !== $locale && 'en_US_POSIX' !== $locale && \strlen($locale) > 3 ? \substr($locale, 0, \strrpos($locale, '_')) : $locale) { - case 'af': - case 'bn': - case 'bg': - case 'ca': - case 'da': - case 'de': - case 'el': - case 'en': - case 'en_US_POSIX': - case 'eo': - case 'es': - case 'et': - case 'eu': - case 'fa': - case 'fi': - case 'fo': - case 'fur': - case 'fy': - case 'gl': - case 'gu': - case 'ha': - case 'he': - case 'hu': - case 'is': - case 'it': - case 'ku': - case 'lb': - case 'ml': - case 'mn': - case 'mr': - case 'nah': - case 'nb': - case 'ne': - case 'nl': - case 'nn': - case 'no': - case 'oc': - case 'om': - case 'or': - case 'pa': - case 'pap': - case 'ps': - case 'pt': - case 'so': - case 'sq': - case 'sv': - case 'sw': - case 'ta': - case 'te': - case 'tk': - case 'ur': - case 'zu': - return 1 == $number ? 0 : 1; - case 'am': - case 'bh': - case 'fil': - case 'fr': - case 'gun': - case 'hi': - case 'hy': - case 'ln': - case 'mg': - case 'nso': - case 'pt_BR': - case 'ti': - case 'wa': - return $number < 2 ? 0 : 1; - case 'be': - case 'bs': - case 'hr': - case 'ru': - case 'sh': - case 'sr': - case 'uk': - return 1 == $number % 10 && 11 != $number % 100 ? 0 : ($number % 10 >= 2 && $number % 10 <= 4 && ($number % 100 < 10 || $number % 100 >= 20) ? 1 : 2); - case 'cs': - case 'sk': - return 1 == $number ? 0 : ($number >= 2 && $number <= 4 ? 1 : 2); - case 'ga': - return 1 == $number ? 0 : (2 == $number ? 1 : 2); - case 'lt': - return 1 == $number % 10 && 11 != $number % 100 ? 0 : ($number % 10 >= 2 && ($number % 100 < 10 || $number % 100 >= 20) ? 1 : 2); - case 'sl': - return 1 == $number % 100 ? 0 : (2 == $number % 100 ? 1 : (3 == $number % 100 || 4 == $number % 100 ? 2 : 3)); - case 'mk': - return 1 == $number % 10 ? 0 : 1; - case 'mt': - return 1 == $number ? 0 : (0 == $number || $number % 100 > 1 && $number % 100 < 11 ? 1 : ($number % 100 > 10 && $number % 100 < 20 ? 2 : 3)); - case 'lv': - return 0 == $number ? 0 : (1 == $number % 10 && 11 != $number % 100 ? 1 : 2); - case 'pl': - return 1 == $number ? 0 : ($number % 10 >= 2 && $number % 10 <= 4 && ($number % 100 < 12 || $number % 100 > 14) ? 1 : 2); - case 'cy': - return 1 == $number ? 0 : (2 == $number ? 1 : (8 == $number || 11 == $number ? 2 : 3)); - case 'ro': - return 1 == $number ? 0 : (0 == $number || $number % 100 > 0 && $number % 100 < 20 ? 1 : 2); - case 'ar': - return 0 == $number ? 0 : (1 == $number ? 1 : (2 == $number ? 2 : ($number % 100 >= 3 && $number % 100 <= 10 ? 3 : ($number % 100 >= 11 && $number % 100 <= 99 ? 4 : 5)))); - default: - return 0; - } - } -} diff --git a/vendor/symfony/contracts/Translation/composer.json b/vendor/symfony/contracts/Translation/composer.json deleted file mode 100644 index 52f7d9a985f..00000000000 --- a/vendor/symfony/contracts/Translation/composer.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "symfony\/translation-contracts", - "type": "library", - "description": "Generic abstractions related to translation", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "homepage": "https:\/\/symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https:\/\/symfony.com\/contributors" - } - ], - "require": { - "php": ">=8.1" - }, - "autoload": { - "psr-4": { - "RectorPrefix202308\\Symfony\\Contracts\\Translation\\": "" - }, - "exclude-from-classmap": [ - "\/Test\/" - ] - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony\/contracts", - "url": "https:\/\/github.com\/symfony\/contracts" - } - } -} \ No newline at end of file diff --git a/vendor/symfony/contracts/composer.json b/vendor/symfony/contracts/composer.json deleted file mode 100644 index f418e1c3fac..00000000000 --- a/vendor/symfony/contracts/composer.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "symfony\/contracts", - "type": "library", - "description": "A set of abstractions extracted out of the Symfony components", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "homepage": "https:\/\/symfony.com", - "license": "MIT", - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https:\/\/symfony.com\/contributors" - } - ], - "require": { - "php": ">=8.1", - "psr\/cache": "^3.0", - "psr\/container": "^2.0", - "psr\/event-dispatcher": "^1.0" - }, - "require-dev": { - "symfony\/polyfill-intl-idn": "^1.10" - }, - "conflict": { - "ext-psr": "<1.1|>=2" - }, - "replace": { - "symfony\/cache-contracts": "self.version", - "symfony\/deprecation-contracts": "self.version", - "symfony\/event-dispatcher-contracts": "self.version", - "symfony\/http-client-contracts": "self.version", - "symfony\/service-contracts": "self.version", - "symfony\/translation-contracts": "self.version" - }, - "autoload": { - "psr-4": { - "RectorPrefix202308\\Symfony\\Contracts\\": "" - }, - "files": [ - "Deprecation\/function.php" - ], - "exclude-from-classmap": [ - "**\/Tests\/" - ] - }, - "minimum-stability": "dev", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - } - } -} \ No newline at end of file diff --git a/vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php b/vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php index ab3fa5e7bbf..cda7952f538 100644 --- a/vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php +++ b/vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php @@ -115,9 +115,9 @@ class AnalyzeServiceReferencesPass extends AbstractRecursivePass if ($value instanceof Reference) { $targetId = $this->getDefinitionId((string) $value); $targetDefinition = null !== $targetId ? $this->container->getDefinition($targetId) : null; - $this->graph->connect($this->currentId, $this->currentDefinition, $targetId, $targetDefinition, $value, $this->lazy || $this->hasProxyDumper && (($nullsafeVariable3 = $targetDefinition) ? $nullsafeVariable3->isLazy() : null), ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE === $value->getInvalidBehavior(), $this->byConstructor); + $this->graph->connect($this->currentId, $this->currentDefinition, $targetId, $targetDefinition, $value, $this->lazy || $this->hasProxyDumper && (($nullsafeVariable1 = $targetDefinition) ? $nullsafeVariable1->isLazy() : null), ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE === $value->getInvalidBehavior(), $this->byConstructor); if ($inExpression) { - $this->graph->connect('.internal.reference_in_expression', null, $targetId, $targetDefinition, $value, $this->lazy || (($nullsafeVariable4 = $targetDefinition) ? $nullsafeVariable4->isLazy() : null), \true); + $this->graph->connect('.internal.reference_in_expression', null, $targetId, $targetDefinition, $value, $this->lazy || (($nullsafeVariable2 = $targetDefinition) ? $nullsafeVariable2->isLazy() : null), \true); } return $value; } diff --git a/vendor/symfony/dependency-injection/Compiler/DecoratorServicePass.php b/vendor/symfony/dependency-injection/Compiler/DecoratorServicePass.php index 65b99401567..774dbcea1db 100644 --- a/vendor/symfony/dependency-injection/Compiler/DecoratorServicePass.php +++ b/vendor/symfony/dependency-injection/Compiler/DecoratorServicePass.php @@ -71,7 +71,7 @@ class DecoratorServicePass extends AbstractRecursivePass } else { throw new ServiceNotFoundException($inner, $id); } - if (($nullsafeVariable10 = $decoratedDefinition) ? $nullsafeVariable10->isSynthetic() : null) { + if (($nullsafeVariable3 = $decoratedDefinition) ? $nullsafeVariable3->isSynthetic() : null) { throw new InvalidArgumentException(\sprintf('A synthetic service cannot be decorated: service "%s" cannot decorate "%s".', $id, $inner)); } if (isset($decoratingDefinitions[$inner])) { diff --git a/vendor/symfony/dependency-injection/Dumper/PhpDumper.php b/vendor/symfony/dependency-injection/Dumper/PhpDumper.php index 61d0c808638..8f6844c302a 100644 --- a/vendor/symfony/dependency-injection/Dumper/PhpDumper.php +++ b/vendor/symfony/dependency-injection/Dumper/PhpDumper.php @@ -1635,7 +1635,7 @@ EOF; if ($value->hasErrors() && ($e = $value->getErrors())) { return \sprintf('throw new RuntimeException(%s)', $this->export(\reset($e))); } - if (($nullsafeVariable11 = $this->definitionVariables) ? $nullsafeVariable11->contains($value) : null) { + if (($nullsafeVariable12 = $this->definitionVariables) ? $nullsafeVariable12->contains($value) : null) { return $this->dumpValue($this->definitionVariables[$value], $interpolate); } if ($value->getMethodCalls()) { diff --git a/vendor/symfony/contracts/Cache/CHANGELOG.md b/vendor/symfony/deprecation-contracts/CHANGELOG.md similarity index 100% rename from vendor/symfony/contracts/Cache/CHANGELOG.md rename to vendor/symfony/deprecation-contracts/CHANGELOG.md diff --git a/vendor/symfony/contracts/Deprecation/LICENSE b/vendor/symfony/deprecation-contracts/LICENSE similarity index 100% rename from vendor/symfony/contracts/Deprecation/LICENSE rename to vendor/symfony/deprecation-contracts/LICENSE diff --git a/vendor/symfony/contracts/Deprecation/README.md b/vendor/symfony/deprecation-contracts/README.md similarity index 100% rename from vendor/symfony/contracts/Deprecation/README.md rename to vendor/symfony/deprecation-contracts/README.md diff --git a/vendor/symfony/contracts/Deprecation/composer.json b/vendor/symfony/deprecation-contracts/composer.json similarity index 100% rename from vendor/symfony/contracts/Deprecation/composer.json rename to vendor/symfony/deprecation-contracts/composer.json diff --git a/vendor/symfony/contracts/Deprecation/function.php b/vendor/symfony/deprecation-contracts/function.php similarity index 72% rename from vendor/symfony/contracts/Deprecation/function.php rename to vendor/symfony/deprecation-contracts/function.php index eae98307998..d4371504a03 100644 --- a/vendor/symfony/contracts/Deprecation/function.php +++ b/vendor/symfony/deprecation-contracts/function.php @@ -1,7 +1,5 @@ */ - function trigger_deprecation(string $package, string $version, string $message, ...$args) : void + function trigger_deprecation(string $package, string $version, string $message, ...$args): void { - // @\trigger_error(($package || $version ? "Since {$package} {$version}: " : '') . ($args ? \vsprintf($message, $args) : $message), \E_USER_DEPRECATED); + @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED); } } diff --git a/vendor/symfony/contracts/Service/Attribute/Required.php b/vendor/symfony/service-contracts/Attribute/Required.php similarity index 100% rename from vendor/symfony/contracts/Service/Attribute/Required.php rename to vendor/symfony/service-contracts/Attribute/Required.php diff --git a/vendor/symfony/contracts/Service/Attribute/SubscribedService.php b/vendor/symfony/service-contracts/Attribute/SubscribedService.php similarity index 100% rename from vendor/symfony/contracts/Service/Attribute/SubscribedService.php rename to vendor/symfony/service-contracts/Attribute/SubscribedService.php diff --git a/vendor/symfony/contracts/Deprecation/CHANGELOG.md b/vendor/symfony/service-contracts/CHANGELOG.md similarity index 100% rename from vendor/symfony/contracts/Deprecation/CHANGELOG.md rename to vendor/symfony/service-contracts/CHANGELOG.md diff --git a/vendor/symfony/contracts/Cache/LICENSE b/vendor/symfony/service-contracts/LICENSE similarity index 100% rename from vendor/symfony/contracts/Cache/LICENSE rename to vendor/symfony/service-contracts/LICENSE diff --git a/vendor/symfony/contracts/Service/README.md b/vendor/symfony/service-contracts/README.md similarity index 100% rename from vendor/symfony/contracts/Service/README.md rename to vendor/symfony/service-contracts/README.md diff --git a/vendor/symfony/contracts/Service/ResetInterface.php b/vendor/symfony/service-contracts/ResetInterface.php similarity index 100% rename from vendor/symfony/contracts/Service/ResetInterface.php rename to vendor/symfony/service-contracts/ResetInterface.php diff --git a/vendor/symfony/contracts/Service/ServiceLocatorTrait.php b/vendor/symfony/service-contracts/ServiceLocatorTrait.php similarity index 100% rename from vendor/symfony/contracts/Service/ServiceLocatorTrait.php rename to vendor/symfony/service-contracts/ServiceLocatorTrait.php diff --git a/vendor/symfony/contracts/Service/ServiceProviderInterface.php b/vendor/symfony/service-contracts/ServiceProviderInterface.php similarity index 100% rename from vendor/symfony/contracts/Service/ServiceProviderInterface.php rename to vendor/symfony/service-contracts/ServiceProviderInterface.php diff --git a/vendor/symfony/contracts/Service/ServiceSubscriberInterface.php b/vendor/symfony/service-contracts/ServiceSubscriberInterface.php similarity index 100% rename from vendor/symfony/contracts/Service/ServiceSubscriberInterface.php rename to vendor/symfony/service-contracts/ServiceSubscriberInterface.php diff --git a/vendor/symfony/contracts/Service/ServiceSubscriberTrait.php b/vendor/symfony/service-contracts/ServiceSubscriberTrait.php similarity index 100% rename from vendor/symfony/contracts/Service/ServiceSubscriberTrait.php rename to vendor/symfony/service-contracts/ServiceSubscriberTrait.php diff --git a/vendor/symfony/contracts/Service/Test/ServiceLocatorTest.php b/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php similarity index 100% rename from vendor/symfony/contracts/Service/Test/ServiceLocatorTest.php rename to vendor/symfony/service-contracts/Test/ServiceLocatorTest.php diff --git a/vendor/symfony/contracts/Service/Test/ServiceLocatorTestCase.php b/vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php similarity index 100% rename from vendor/symfony/contracts/Service/Test/ServiceLocatorTestCase.php rename to vendor/symfony/service-contracts/Test/ServiceLocatorTestCase.php diff --git a/vendor/symfony/contracts/Service/composer.json b/vendor/symfony/service-contracts/composer.json similarity index 100% rename from vendor/symfony/contracts/Service/composer.json rename to vendor/symfony/service-contracts/composer.json diff --git a/vendor/tracy/tracy/src/Tracy/Helpers.php b/vendor/tracy/tracy/src/Tracy/Helpers.php index b2d85d8a077..4fdb85adf44 100644 --- a/vendor/tracy/tracy/src/Tracy/Helpers.php +++ b/vendor/tracy/tracy/src/Tracy/Helpers.php @@ -421,7 +421,7 @@ XX $skip[$refId] = \true; } foreach ($val as $k => $v) { - $refId = ($nullsafeVariable5 = \ReflectionReference::fromArrayElement($val, $k)) ? $nullsafeVariable5->getId() : null; + $refId = ($nullsafeVariable13 = \ReflectionReference::fromArrayElement($val, $k)) ? $nullsafeVariable13->getId() : null; self::traverseValue($v, $callback, $skip, $refId); } }