diff --git a/vendor/autoload.php b/vendor/autoload.php index e103bc50bfb2..a13c84436aa5 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit1f2f780a746bd4ed47698aadad0bf6cd::getLoader(); +return ComposerAutoloaderInit466df9ae5fdd4f32b9bfd4ec384bf238::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 955e97f9dc32..5612c4d0e44c 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -1701,13 +1701,6 @@ 'Rector\\Doctrine\\ValueObject\\ArgName' => $vendorDir . '/rector/rector-doctrine/src/ValueObject/ArgName.php', 'Rector\\Doctrine\\ValueObject\\AssignToPropertyFetch' => $vendorDir . '/rector/rector-doctrine/src/ValueObject/AssignToPropertyFetch.php', 'Rector\\Doctrine\\ValueObject\\DefaultAnnotationArgValue' => $vendorDir . '/rector/rector-doctrine/src/ValueObject/DefaultAnnotationArgValue.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php', - 'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php', - 'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php', 'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php', 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php', 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php', diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 3e0b60959eac..06e80a3bd915 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit1f2f780a746bd4ed47698aadad0bf6cd +class ComposerAutoloaderInit466df9ae5fdd4f32b9bfd4ec384bf238 { private static $loader; @@ -22,17 +22,17 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit1f2f780a746bd4ed47698aadad0bf6cd', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit466df9ae5fdd4f32b9bfd4ec384bf238', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit1f2f780a746bd4ed47698aadad0bf6cd', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit466df9ae5fdd4f32b9bfd4ec384bf238', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit466df9ae5fdd4f32b9bfd4ec384bf238::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit466df9ae5fdd4f32b9bfd4ec384bf238::$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 e8454b1afa1f..0b23c230d458 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd +class ComposerStaticInit466df9ae5fdd4f32b9bfd4ec384bf238 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -1943,13 +1943,6 @@ class ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd 'Rector\\Doctrine\\ValueObject\\ArgName' => __DIR__ . '/..' . '/rector/rector-doctrine/src/ValueObject/ArgName.php', 'Rector\\Doctrine\\ValueObject\\AssignToPropertyFetch' => __DIR__ . '/..' . '/rector/rector-doctrine/src/ValueObject/AssignToPropertyFetch.php', 'Rector\\Doctrine\\ValueObject\\DefaultAnnotationArgValue' => __DIR__ . '/..' . '/rector/rector-doctrine/src/ValueObject/DefaultAnnotationArgValue.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php', - 'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php', - 'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php', - 'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php', - 'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php', 'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php', 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php', 'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php', @@ -3069,9 +3062,9 @@ class ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit1f2f780a746bd4ed47698aadad0bf6cd::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit466df9ae5fdd4f32b9bfd4ec384bf238::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit466df9ae5fdd4f32b9bfd4ec384bf238::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit466df9ae5fdd4f32b9bfd4ec384bf238::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index e85da97073a4..c2bc67328c9e 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1920,12 +1920,12 @@ "source": { "type": "git", "url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git", - "reference": "f4b61e5dba41bc71810e2e2069ef6921cf1a1f77" + "reference": "58a1e247eb3266209cc7e5c3e1f614344a9679e3" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/f4b61e5dba41bc71810e2e2069ef6921cf1a1f77", - "reference": "f4b61e5dba41bc71810e2e2069ef6921cf1a1f77", + "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/58a1e247eb3266209cc7e5c3e1f614344a9679e3", + "reference": "58a1e247eb3266209cc7e5c3e1f614344a9679e3", "shasum": "" }, "require": { @@ -1949,7 +1949,7 @@ "tomasvotruba\/type-coverage": "^0.2", "tomasvotruba\/unused-public": "^0.1" }, - "time": "2023-05-31T02:33:58+00:00", + "time": "2023-05-31T08:29:44+00:00", "default-branch": true, "type": "rector-extension", "extra": { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index a68deb80f819..168b23c4a76b 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -2,4 +2,4 @@ namespace RectorPrefix202305; -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.6', 'version' => '2.0.6.0', 'reference' => 'd9d313a36c872fd6ee06d9a6cbcf713eaa40f024', '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), '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.9', 'version' => '3.2.9.0', 'reference' => 'c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.15.5', 'version' => '4.15.5.0', 'reference' => '11e2663a5bc9db5d714eedb4277ee300403b4a9e', '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.21.3', 'version' => '1.21.3.0', 'reference' => 'b0c366dd2cea79407d635839d25423ba07c55dd6', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.10.15', 'version' => '1.10.15.0', 'reference' => '762c4dac4da6f8756eebb80e528c3a47855da9bd', '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')), '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.10.0', 'version' => '1.10.0.0', 'reference' => 'a5427e7dfa47713e438016905605819d101f238c', '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/promise-timer' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => 'aa7a73c74b8d8c0f622f5982ff7b0351bc29e495', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.12.0', 'version' => '1.12.0.0', 'reference' => '81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', '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' => '7f0656f46f812aa55b6975ceed0ec1db2642387d', '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' => 'f4b61e5dba41bc71810e2e2069ef6921cf1a1f77', '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' => 'e276dee74295a7d0cf62c330c64dee663ddc685a', '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' => '2348d4facdbd5f32d24d7e0204d867dffb0e5784', '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.0', 'version' => '6.3.0.0', 'reference' => 'a5e00dec161b08c946a2c16eed02adbeedf827ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => '8788808b07cf0bdd6e4b7fdd23d8ddb1470c83b7', '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.0', 'version' => '6.3.0.0', 'reference' => '97b698e1d77d356304def77a8d0cd73090b359ea', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'd9b01ba073c44cef617c7907ce2419f8d00d75e2', '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.0', 'version' => '6.3.0.0', 'reference' => '8741e3ed7fe2e91ec099e02446fb86667a0f1628', '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.0', 'version' => '6.3.0.0', 'reference' => 'f2e190ee75ff0f5eced645ec0be5c66fac81f51f', '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.2', 'version' => '2.10.2.0', 'reference' => '882fee7cf4258a602ad4a37461e837ed2ca1406b', '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.6', 'version' => '2.0.6.0', 'reference' => 'd9d313a36c872fd6ee06d9a6cbcf713eaa40f024', '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), '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.9', 'version' => '3.2.9.0', 'reference' => 'c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.15.5', 'version' => '4.15.5.0', 'reference' => '11e2663a5bc9db5d714eedb4277ee300403b4a9e', '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.21.3', 'version' => '1.21.3.0', 'reference' => 'b0c366dd2cea79407d635839d25423ba07c55dd6', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.10.15', 'version' => '1.10.15.0', 'reference' => '762c4dac4da6f8756eebb80e528c3a47855da9bd', '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')), '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.10.0', 'version' => '1.10.0.0', 'reference' => 'a5427e7dfa47713e438016905605819d101f238c', '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/promise-timer' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => 'aa7a73c74b8d8c0f622f5982ff7b0351bc29e495', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.12.0', 'version' => '1.12.0.0', 'reference' => '81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', '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' => '7f0656f46f812aa55b6975ceed0ec1db2642387d', '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' => '58a1e247eb3266209cc7e5c3e1f614344a9679e3', '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' => 'e276dee74295a7d0cf62c330c64dee663ddc685a', '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' => '2348d4facdbd5f32d24d7e0204d867dffb0e5784', '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.0', 'version' => '6.3.0.0', 'reference' => 'a5e00dec161b08c946a2c16eed02adbeedf827ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => '8788808b07cf0bdd6e4b7fdd23d8ddb1470c83b7', '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.0', 'version' => '6.3.0.0', 'reference' => '97b698e1d77d356304def77a8d0cd73090b359ea', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'd9b01ba073c44cef617c7907ce2419f8d00d75e2', '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.0', 'version' => '6.3.0.0', 'reference' => '8741e3ed7fe2e91ec099e02446fb86667a0f1628', '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.0', 'version' => '6.3.0.0', 'reference' => 'f2e190ee75ff0f5eced645ec0be5c66fac81f51f', '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.2', 'version' => '2.10.2.0', 'reference' => '882fee7cf4258a602ad4a37461e837ed2ca1406b', '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/rector/extension-installer/src/GeneratedConfig.php b/vendor/rector/extension-installer/src/GeneratedConfig.php index aaccd4f5125f..afd3cfa170d4 100644 --- a/vendor/rector/extension-installer/src/GeneratedConfig.php +++ b/vendor/rector/extension-installer/src/GeneratedConfig.php @@ -9,7 +9,7 @@ */ final class GeneratedConfig { - public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7f0656f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f4b61e5'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e276dee'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2348d4f')); + public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7f0656f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 58a1e24'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e276dee'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2348d4f')); private function __construct() { } diff --git a/vendor/rector/rector-downgrade-php/config/set/downgrade-php56.php b/vendor/rector/rector-downgrade-php/config/set/downgrade-php56.php deleted file mode 100644 index b0e09a77d662..000000000000 --- a/vendor/rector/rector-downgrade-php/config/set/downgrade-php56.php +++ /dev/null @@ -1,20 +0,0 @@ -phpVersion(PhpVersion::PHP_55); - $rectorConfig->rule(DowngradeArgumentUnpackingRector::class); - $rectorConfig->rule(DowngradeUseFunctionRector::class); - $rectorConfig->rule(DowngradeExponentialAssignmentOperatorRector::class); - $rectorConfig->rule(DowngradeExponentialOperatorRector::class); - $rectorConfig->rule(DowngradeArrayFilterUseConstantRector::class); -}; diff --git a/vendor/rector/rector-downgrade-php/config/set/level/down-to-php55.php b/vendor/rector/rector-downgrade-php/config/set/level/down-to-php55.php deleted file mode 100644 index ce719e942e3b..000000000000 --- a/vendor/rector/rector-downgrade-php/config/set/level/down-to-php55.php +++ /dev/null @@ -1,11 +0,0 @@ -sets([DowngradeLevelSetList::DOWN_TO_PHP_56, DowngradeSetList::PHP_56]); -}; diff --git a/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md b/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md index 47de9e823876..92d61fd2c09d 100644 --- a/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md +++ b/vendor/rector/rector-downgrade-php/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 107 Rules Overview +# 98 Rules Overview ## ArrowFunctionToAnonymousFunctionRector @@ -67,24 +67,9 @@ Remove anonymous class
-## DowngradeArbitraryExpressionArgsToEmptyAndIssetRector - -Downgrade arbitrary expression arguments to `empty()` and `isset()` - -- class: [`Rector\DowngradePhp55\Rector\Isset_\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector`](../rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php) - -```diff --if (isset(some_function())) { -+if (some_function() !== null) { - // ... - } -``` - -
- ## DowngradeArbitraryExpressionsSupportRector -Replace arbitrary expressions used with new or instanceof. +Replace arbitrary expressions used with new or instanceof - class: [`Rector\DowngradePhp80\Rector\New_\DowngradeArbitraryExpressionsSupportRector`](../rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php) @@ -100,25 +85,6 @@ Replace arbitrary expressions used with new or instanceof.
-## DowngradeArgumentUnpackingRector - -Replace argument unpacking by `call_user_func_array()` - -- class: [`Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector`](../rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php) - -```diff - class SomeClass - { - public function run(array $items) - { -- some_function(...$items); -+ call_user_func_array('some_function', $items); - } - } -``` - -
- ## DowngradeArrayFilterNullableCallbackRector Unset nullable callback on array_filter @@ -139,30 +105,6 @@ Unset nullable callback on array_filter
-## DowngradeArrayFilterUseConstantRector - -Replace use ARRAY_FILTER_USE_BOTH and ARRAY_FILTER_USE_KEY to loop to filter it - -- class: [`Rector\DowngradePhp56\Rector\FuncCall\DowngradeArrayFilterUseConstantRector`](../rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php) - -```diff - $arr = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4]; - --var_dump(array_filter($arr, function($v, $k) { -- return $k == 'b' || $v == 4; --}, ARRAY_FILTER_USE_BOTH)); -+$result = []; -+foreach ($arr as $k => $v) { -+ if ($v === 4 || $k === 'b') { -+ $result[$k] = $v; -+ } -+} -+ -+var_dump($result); -``` - -
- ## DowngradeArrayIsListRector Replace `array_is_list()` function @@ -319,19 +261,6 @@ return static function (RectorConfig $rectorConfig): void {
-## DowngradeBoolvalRector - -Replace `boolval()` by type casting to boolean - -- class: [`Rector\DowngradePhp55\Rector\FuncCall\DowngradeBoolvalRector`](../rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php) - -```diff --$bool = boolval($value); -+$bool = (bool) $value; -``` - -
- ## DowngradeCatchThrowableRector Make catch clauses catching `Throwable` also catch `Exception` to support exception hierarchies in PHP 5. @@ -350,28 +279,6 @@ Make catch clauses catching `Throwable` also catch `Exception` to support except
-## DowngradeClassConstantToStringRector - -Replace ::class constant by string class names - -- class: [`Rector\DowngradePhp55\Rector\ClassConstFetch\DowngradeClassConstantToStringRector`](../rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php) - -```diff - class AnotherClass - { - } - class SomeClass - { - public function run() - { -- return \AnotherClass::class; -+ return 'AnotherClass'; - } - } -``` - -
- ## DowngradeClassConstantVisibilityRector Downgrade class constant visibility @@ -431,9 +338,9 @@ Converts `Closure::fromCallable()` to compatible alternative. - class: [`Rector\DowngradePhp71\Rector\StaticCall\DowngradeClosureFromCallableRector`](../rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php) ```diff --\Closure::fromCallable('callable'); +-$someClosure = \Closure::fromCallable('callable'); +$callable = 'callable'; -+function () use ($callable) { ++$someClosure = function () use ($callable) { + return $callable(...func_get_args()); +}; ``` @@ -588,32 +495,6 @@ Downgrade enum to constant list class
-## DowngradeExponentialAssignmentOperatorRector - -Remove exponential assignment operator **= - -- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector`](../rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php) - -```diff --$a **= 3; -+$a = pow($a, 3); -``` - -
- -## DowngradeExponentialOperatorRector - -Changes ** (exp) operator to pow(val, val2) - -- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector`](../rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php) - -```diff --1**2; -+pow(1, 2); -``` - -
- ## DowngradeFinalizePublicClassConstantRector Remove final from class constants @@ -663,22 +544,6 @@ Remove indentation from heredoc/nowdoc
-## DowngradeForeachListRector - -Downgrade `list()` support in foreach constructs - -- class: [`Rector\DowngradePhp55\Rector\Foreach_\DowngradeForeachListRector`](../rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php) - -```diff --foreach ($array as $key => list($item1, $item2)) { -+foreach ($array as $key => arrayItem) { -+ list($item1, $item2) = $arrayItem; - var_dump($item1, $item2); - } -``` - -
- ## DowngradeFreadFwriteFalsyToNegationRector Changes `fread()` or `fwrite()` compare to false to negation check @@ -2076,21 +1941,6 @@ Remove parentheses around expressions allowed by Uniform variable syntax RFC whe
-## DowngradeUseFunctionRector - -Replace imports of functions and constants - -- class: [`Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector`](../rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php) - -```diff --use function Foo\Bar\baz; -- --$var = baz(); -+$var = \Foo\Bar\baz(); -``` - -
- ## DowngradeVoidTypeDeclarationRector Remove "void" return type, add a `"@return` void" tag instead diff --git a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php deleted file mode 100644 index bc6d0b665ec6..000000000000 --- a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php +++ /dev/null @@ -1,47 +0,0 @@ -unpack) { - return \true; - } - } - return \false; - } - /** - * @param Arg[] $args - * @return Arg[] - */ - public function unpack(array $args) : array - { - $unpackedArgList = new \Rector\DowngradePhp56\NodeManipulator\UnpackedArgList($args); - return $unpackedArgList->toArray(); - } - /** - * @param Arg[] $args - */ - public function canBeInlined(array $args) : bool - { - foreach ($args as $arg) { - if (!$arg->unpack) { - continue; - } - if ($arg->value instanceof Array_) { - continue; - } - return \false; - } - return \true; - } -} diff --git a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php deleted file mode 100644 index 33be99b2509f..000000000000 --- a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php +++ /dev/null @@ -1,82 +0,0 @@ - - */ - private $args = []; - /** - * @var int - */ - private $pointer = 0; - /** - * @param Arg[] $args - */ - public function __construct(array $args = []) - { - foreach ($args as $arg) { - $this->addArg($arg); - } - } - /** - * @return Arg[] - */ - public function toArray() : array - { - return $this->args; - } - private function addArg(Arg $arg) : void - { - $this->args[$this->pointer] = $this->args[$this->pointer] ?? new Arg(new Array_()); - if ($arg->unpack) { - $arg->unpack = \false; - $this->unpack($arg); - return; - } - $this->addAsItem($arg); - } - private function unpack(Arg $arg) : void - { - if ($arg->value instanceof Array_) { - foreach ($arg->value->items as $arrayItem) { - if (!$arrayItem instanceof ArrayItem) { - continue; - } - $this->addArrayItem($arrayItem); - } - return; - } - $this->addNextArg($arg); - } - private function addAsItem(Arg $arg) : void - { - $this->addArrayItem(new ArrayItem($arg->value)); - } - private function addArrayItem(ArrayItem $arrayItem) : void - { - /** @var Array_ $array */ - $array = $this->args[$this->pointer]->value; - $array->items[] = $arrayItem; - } - private function addNextArg(Arg $arg) : void - { - $this->next(); - $this->args[$this->pointer] = $arg; - ++$this->pointer; - } - private function next() : void - { - /** @var Array_ $array */ - $array = $this->args[$this->pointer]->value; - if ($array->items !== []) { - ++$this->pointer; - } - } -} diff --git a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php deleted file mode 100644 index 9ba3cc90adcc..000000000000 --- a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php +++ /dev/null @@ -1,181 +0,0 @@ -argManipulator = $argManipulator; - } - public function getRuleDefinition() : RuleDefinition - { - return new RuleDefinition('Replace argument unpacking by call_user_func_array()', [new CodeSample(<<<'CODE_SAMPLE' -class SomeClass -{ - public function run(array $items) - { - some_function(...$items); - } -} -CODE_SAMPLE -, <<<'CODE_SAMPLE' -class SomeClass -{ - public function run(array $items) - { - call_user_func_array('some_function', $items); - } -} -CODE_SAMPLE -)]); - } - /** - * @return array> - */ - public function getNodeTypes() : array - { - return [CallLike::class]; - } - /** - * @param CallLike $node - */ - public function refactor(Node $node) : ?Node - { - $args = $node->getArgs(); - if ($this->shouldSkip($args)) { - return null; - } - if ($node instanceof FuncCall) { - return $this->createCallUserFuncArrayFuncCall($this->funcCallToCallbackArg($node), $args); - } - if ($node instanceof MethodCall) { - return $this->createCallUserFuncArrayFuncCall($this->methodCallToCallbackArg($node), $args); - } - if ($node instanceof New_) { - return $this->createReflectionInstantiation($node, $args); - } - if ($node instanceof StaticCall) { - return $this->createCallUserFuncArrayFuncCall($this->staticCallToCallbackArg($node), $args); - } - return null; - } - /** - * @param Arg[] $args - */ - private function shouldSkip(array $args) : bool - { - return !$this->argManipulator->hasUnpackedArg($args); - } - private function funcCallToCallbackArg(FuncCall $funcCall) : Arg - { - $callback = $funcCall->name instanceof Name ? new String_($funcCall->name->toString()) : $funcCall->name; - return new Arg($callback); - } - private function methodCallToCallbackArg(MethodCall $methodCall) : Arg - { - $object = $methodCall->var; - $method = $methodCall->name instanceof Identifier ? new String_($methodCall->name->toString()) : $methodCall->name; - $array = new Array_([new ArrayItem($object), new ArrayItem($method)]); - return new Arg($array); - } - private function staticCallToCallbackArg(StaticCall $staticCall) : Arg - { - if ($staticCall->class instanceof Name) { - $class = $staticCall->class->isSpecialClassName() ? new String_($staticCall->class->toString()) : new ClassConstFetch($staticCall->class, 'class'); - } else { - $class = $staticCall->class; - } - $method = $staticCall->name instanceof Identifier ? new String_($staticCall->name->toString()) : $staticCall->name; - $array = new Array_([new ArrayItem($class), new ArrayItem($method)]); - return new Arg($array); - } - /** - * @param Arg[] $args - */ - private function createCallUserFuncArrayFuncCall(Arg $arg, array $args) : FuncCall - { - return new FuncCall(new Name('call_user_func_array'), [$arg, $this->mergeArgs($args)]); - } - /** - * @param Arg[] $args - */ - private function mergeArgs(array $args) : Arg - { - $unpackedArgs = $this->argManipulator->unpack($args); - if (\count($unpackedArgs) === 1) { - return $unpackedArgs[0]; - } - return new Arg(new FuncCall(new Name('array_merge'), $unpackedArgs)); - } - /** - * @param Arg[] $args - */ - private function createReflectionInstantiation(New_ $new, array $args) : ?Expr - { - if ($this->argManipulator->canBeInlined($args)) { - $unpackedArgs = $this->argManipulator->unpack($args); - Assert::minCount($unpackedArgs, 1); - /** @var Array_ $array */ - $array = $unpackedArgs[0]->value; - $arrayItems = \array_filter($array->items); - $new->args = \array_map(static function (ArrayItem $arrayItem) : Arg { - return new Arg($arrayItem->value); - }, $arrayItems); - return $new; - } - if ($new->class instanceof Name) { - switch (\strtolower($new->class->toString())) { - case 'self': - $class = new FuncCall(new Name('get_class')); - break; - case 'static': - $class = new FuncCall(new Name('get_called_class')); - break; - case 'parent': - $class = new FuncCall(new Name('get_parent_class')); - break; - default: - $class = new ClassConstFetch($new->class, 'class'); - break; - } - } elseif ($new->class instanceof Expr) { - $class = $new->class; - } else { - return null; - } - $newReflection = new New_(new FullyQualified('ReflectionClass'), [new Arg($class)]); - return new MethodCall($newReflection, 'newInstanceArgs', [$this->mergeArgs($args)]); - } -} diff --git a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php deleted file mode 100644 index 71e7c1099329..000000000000 --- a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php +++ /dev/null @@ -1,195 +0,0 @@ -variableNaming = $variableNaming; - $this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser; - $this->nodesToAddCollector = $nodesToAddCollector; - } - public function getRuleDefinition() : RuleDefinition - { - return new RuleDefinition('Replace use ARRAY_FILTER_USE_BOTH and ARRAY_FILTER_USE_KEY to loop to filter it', [new CodeSample(<<<'CODE_SAMPLE' -$arr = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4]; - -var_dump(array_filter($arr, function($v, $k) { - return $k == 'b' || $v == 4; -}, ARRAY_FILTER_USE_BOTH)); -CODE_SAMPLE -, <<<'CODE_SAMPLE' -$arr = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4]; - -$result = []; -foreach ($arr as $k => $v) { - if ($v === 4 || $k === 'b') { - $result[$k] = $v; - } -} - -var_dump($result); -CODE_SAMPLE -)]); - } - /** - * @return array> - */ - public function getNodeTypes() : array - { - return [FuncCall::class]; - } - /** - * @param FuncCall $node - */ - public function refactor(Node $node) : ?Node - { - $args = $node->getArgs(); - if ($this->shouldSkip($node, $args)) { - return null; - } - if ($args[1]->value instanceof Closure) { - return $this->processClosure($node, $args); - } - return null; - } - /** - * @param Arg[] $args - */ - private function processClosure(FuncCall $funcCall, array $args) : ?Variable - { - /** @var Closure $closure */ - $closure = $args[1]->value; - /** @var Return_[] $returns */ - $returns = $this->betterNodeFinder->findInstancesOfInFunctionLikeScoped($closure, Return_::class); - if ($returns === []) { - return null; - } - $scope = $funcCall->getAttribute(AttributeKey::SCOPE); - $variable = new Variable($this->variableNaming->createCountedValueName('result', $scope)); - $this->nodesToAddCollector->addNodeBeforeNode(new Expression(new Assign($variable, new Array_([]))), $funcCall); - /** @var ConstFetch $constant */ - $constant = $args[2]->value; - $foreach = $this->nodeNameResolver->isName($constant, 'ARRAY_FILTER_USE_KEY') ? $this->applyArrayFilterUseKey($args, $closure, $variable) : $this->applyArrayFilterUseBoth($args, $closure, $variable); - $this->nodesToAddCollector->addNodeBeforeNode($foreach, $funcCall); - return $variable; - } - /** - * @param Arg[] $args - */ - private function applyArrayFilterUseBoth(array $args, Closure $closure, Variable $variable) : Foreach_ - { - $arrayValue = $args[0]->value; - $value = $closure->params[0]->var; - $key = $closure->params[1]->var; - $foreach = new Foreach_($arrayValue, $value, ['keyVar' => $key]); - $stmts = []; - $this->simpleCallableNodeTraverser->traverseNodesWithCallable($closure->stmts, static function (Node $subNode) use($variable, $key, $value, &$stmts) { - if (!$subNode instanceof Stmt) { - return null; - } - if (!$subNode instanceof Return_) { - $stmts[] = $subNode; - return null; - } - if (!$subNode->expr instanceof Expr) { - $stmts[] = $subNode; - return null; - } - $assign = new Assign(new ArrayDimFetch($variable, $key), $value); - $stmts[] = new If_($subNode->expr, ['stmts' => [new Expression($assign)]]); - return null; - }); - $foreach->stmts = $stmts; - return $foreach; - } - /** - * @param Arg[] $args - */ - private function applyArrayFilterUseKey(array $args, Closure $closure, Variable $variable) : Foreach_ - { - $arrayValue = $args[0]->value; - $funcCall = $this->nodeFactory->createFuncCall('array_keys', [$arrayValue]); - $key = $closure->params[0]->var; - $foreach = new Foreach_($funcCall, $key); - $stmts = []; - $this->simpleCallableNodeTraverser->traverseNodesWithCallable($closure->stmts, static function (Node $subNode) use($variable, $key, $arrayValue, &$stmts) { - if (!$subNode instanceof Stmt) { - return null; - } - if (!$subNode instanceof Return_) { - $stmts[] = $subNode; - return null; - } - if (!$subNode->expr instanceof Expr) { - $stmts[] = $subNode; - return null; - } - $assign = new Assign(new ArrayDimFetch($variable, $key), new ArrayDimFetch($arrayValue, $key)); - $stmts[] = new If_($subNode->expr, ['stmts' => [new Expression($assign)]]); - return null; - }); - $foreach->stmts = $stmts; - return $foreach; - } - /** - * @param Arg[] $args - */ - private function shouldSkip(FuncCall $funcCall, array $args) : bool - { - if (!$this->nodeNameResolver->isName($funcCall, 'array_filter')) { - return \true; - } - if (!isset($args[2])) { - return \true; - } - if (!$args[2]->value instanceof ConstFetch) { - return \true; - } - return !$this->nodeNameResolver->isNames($args[2]->value, ['ARRAY_FILTER_USE_KEY', 'ARRAY_FILTER_USE_BOTH']); - } -} diff --git a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php deleted file mode 100644 index 96132dc93c4e..000000000000 --- a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php +++ /dev/null @@ -1,38 +0,0 @@ -> - */ - public function getNodeTypes() : array - { - return [Pow::class]; - } - /** - * @param Pow $node - */ - public function refactor(Node $node) : Assign - { - $powFuncCall = $this->nodeFactory->createFuncCall('pow', [$node->var, $node->expr]); - return new Assign($node->var, $powFuncCall); - } -} diff --git a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php deleted file mode 100644 index fcef50e8ef0e..000000000000 --- a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php +++ /dev/null @@ -1,37 +0,0 @@ -> - */ - public function getNodeTypes() : array - { - return [Pow::class]; - } - /** - * @param Pow $node - */ - public function refactor(Node $node) : FuncCall - { - return $this->nodeFactory->createFuncCall('pow', [$node->left, $node->right]); - } -} diff --git a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php b/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php deleted file mode 100644 index 4472213388f9..000000000000 --- a/vendor/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php +++ /dev/null @@ -1,119 +0,0 @@ -useImportsResolver = $useImportsResolver; - } - public function getRuleDefinition() : RuleDefinition - { - return new RuleDefinition('Replace imports of functions and constants', [new CodeSample(<<<'CODE_SAMPLE' -use function Foo\Bar\baz; - -$var = baz(); -CODE_SAMPLE -, <<<'CODE_SAMPLE' -$var = \Foo\Bar\baz(); -CODE_SAMPLE -)]); - } - /** - * @return array> - */ - public function getNodeTypes() : array - { - return [Use_::class, ConstFetch::class, FuncCall::class]; - } - /** - * @param Use_|ConstFetch|FuncCall $node - */ - public function refactor(Node $node) : ?Node - { - if ($node instanceof Use_) { - $this->refactorUse($node); - return null; - } - if ($this->isAlreadyFullyQualified($node)) { - return null; - } - $uses = $this->useImportsResolver->resolveForNode($node); - $name = $this->getFullyQualifiedName($uses, $node); - if ($name === null) { - return null; - } - $node->name = new FullyQualified($name); - return $node; - } - private function refactorUse(Use_ $use) : void - { - if ($use->type === Use_::TYPE_FUNCTION || $use->type === Use_::TYPE_CONSTANT) { - $this->removeNode($use); - } - } - /** - * @param \PhpParser\Node\Expr\ConstFetch|\PhpParser\Node\Expr\FuncCall $node - */ - private function isAlreadyFullyQualified($node) : bool - { - $oldTokens = $this->file->getOldTokens(); - $startTokenPos = $node->getStartTokenPos(); - $name = $oldTokens[$startTokenPos][1] ?? null; - if (!\is_string($name)) { - return \false; - } - return \strncmp($name, '\\', \strlen('\\')) === 0; - } - /** - * @param Use_[]|GroupUse[] $useNodes - * @param \PhpParser\Node\Expr\ConstFetch|\PhpParser\Node\Expr\FuncCall $node - */ - private function getFullyQualifiedName(array $useNodes, $node) : ?string - { - if (!$node->name instanceof Name) { - return null; - } - $name = $node->name->toLowerString(); - $typeFilter = $node instanceof ConstFetch ? Use_::TYPE_CONSTANT : Use_::TYPE_FUNCTION; - foreach ($useNodes as $useNode) { - $prefix = $this->useImportsResolver->resolvePrefix($useNode); - if ($useNode->type !== $typeFilter) { - continue; - } - foreach ($useNode->uses as $useUse) { - if ($name === $prefix . $useUse->name->toLowerString()) { - return $prefix . $useUse->name->toString(); - } - $alias = $useUse->getAlias(); - if ($name === $alias->toLowerString()) { - return $prefix . $useUse->name->toString(); - } - } - } - return null; - } -} diff --git a/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php index cfbf83986366..4016610ddb0b 100644 --- a/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php +++ b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php @@ -41,8 +41,4 @@ final class DowngradeLevelSetList implements SetListInterface * @var string */ public const DOWN_TO_PHP_56 = __DIR__ . '/../../../config/set/level/down-to-php56.php'; - /** - * @var string - */ - public const DOWN_TO_PHP_55 = __DIR__ . '/../../../config/set/level/down-to-php55.php'; } diff --git a/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php index 8bb7dd9a9a63..e9864fd04c4c 100644 --- a/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php +++ b/vendor/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php @@ -9,10 +9,6 @@ */ final class DowngradeSetList implements SetListInterface { - /** - * @var string - */ - public const PHP_56 = __DIR__ . '/../../../config/set/downgrade-php56.php'; /** * @var string */