mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit cb6c05fd628fe5428dece78142382dc7e8d833cc
81c3a528f7
[CI] disable per-dir Rector downgrade buildcb6c05fd62
remove downgrade-paths, not needed anymore
This commit is contained in:
parent
aba5c90761
commit
bc0861a2f6
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'bb98f83b400b624eee144a44ac103af59c6a53cb';
|
||||
public const PACKAGE_VERSION = 'cb6c05fd628fe5428dece78142382dc7e8d833cc';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-05-30 02:01:13';
|
||||
public const RELEASE_DATE = '2022-05-30 02:17:02';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -66,10 +66,6 @@ final class Option
|
||||
* @var string
|
||||
*/
|
||||
public const CLEAR_CACHE = 'clear-cache';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const WORKING_DIR = 'working-dir';
|
||||
/**
|
||||
* @deprecated Use @see \Rector\Config\RectorConfig::parallel() instead
|
||||
* @var string
|
||||
|
@ -8,7 +8,6 @@ use Rector\ChangesReporting\Output\ConsoleOutputFormatter;
|
||||
use Rector\Core\Application\VersionResolver;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\Console\Command\ProcessCommand;
|
||||
use Rector\Core\Exception\Configuration\InvalidConfigurationException;
|
||||
use RectorPrefix20220530\Symfony\Component\Console\Application;
|
||||
use RectorPrefix20220530\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20220530\Symfony\Component\Console\Input\InputDefinition;
|
||||
@ -41,16 +40,6 @@ final class ConsoleApplication extends \RectorPrefix20220530\Symfony\Component\C
|
||||
unset($xdebugHandler);
|
||||
}
|
||||
$shouldFollowByNewline = \false;
|
||||
// switch working dir
|
||||
$newWorkDir = $this->getNewWorkingDir($input);
|
||||
if ($newWorkDir !== '') {
|
||||
$oldWorkingDir = \getcwd();
|
||||
\chdir($newWorkDir);
|
||||
if ($output->isDebug()) {
|
||||
$message = \sprintf('Changed working directory from "%s" to "%s"', $oldWorkingDir, \getcwd());
|
||||
$output->writeln($message);
|
||||
}
|
||||
}
|
||||
// skip in this case, since generate content must be clear from meta-info
|
||||
if ($this->shouldPrintMetaInformation($input)) {
|
||||
$output->writeln($this->getLongVersion());
|
||||
@ -68,15 +57,6 @@ final class ConsoleApplication extends \RectorPrefix20220530\Symfony\Component\C
|
||||
$this->addCustomOptions($defaultInputDefinition);
|
||||
return $defaultInputDefinition;
|
||||
}
|
||||
private function getNewWorkingDir(\RectorPrefix20220530\Symfony\Component\Console\Input\InputInterface $input) : string
|
||||
{
|
||||
$workingDir = $input->getParameterOption('--working-dir');
|
||||
if (\is_string($workingDir) && !\is_dir($workingDir)) {
|
||||
$errorMessage = \sprintf('Invalid working directory specified, "%s" does not exist.', $workingDir);
|
||||
throw new \Rector\Core\Exception\Configuration\InvalidConfigurationException($errorMessage);
|
||||
}
|
||||
return (string) $workingDir;
|
||||
}
|
||||
private function shouldPrintMetaInformation(\RectorPrefix20220530\Symfony\Component\Console\Input\InputInterface $input) : bool
|
||||
{
|
||||
$hasNoArguments = $input->getFirstArgument() === null;
|
||||
@ -102,7 +82,6 @@ final class ConsoleApplication extends \RectorPrefix20220530\Symfony\Component\C
|
||||
$inputDefinition->addOption(new \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption(\Rector\Core\Configuration\Option::DEBUG, null, \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption::VALUE_NONE, 'Enable debug verbosity (-vvv)'));
|
||||
$inputDefinition->addOption(new \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption(\Rector\Core\Configuration\Option::XDEBUG, null, \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption::VALUE_NONE, 'Allow running xdebug'));
|
||||
$inputDefinition->addOption(new \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption(\Rector\Core\Configuration\Option::CLEAR_CACHE, null, \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption::VALUE_NONE, 'Clear cache'));
|
||||
$inputDefinition->addOption(new \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption(\Rector\Core\Configuration\Option::WORKING_DIR, null, \RectorPrefix20220530\Symfony\Component\Console\Input\InputOption::VALUE_REQUIRED, 'If specified, use the given directory as working directory.'));
|
||||
}
|
||||
private function getDefaultConfigPath() : string
|
||||
{
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441::getLoader();
|
||||
return ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441
|
||||
class ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit6b9306cfef653abff59ef2acd0d14441::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit86be7b7b2508b9425383f9f9ff2a330d::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit6b9306cfef653abff59ef2acd0d14441::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit86be7b7b2508b9425383f9f9ff2a330d::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire6b9306cfef653abff59ef2acd0d14441($fileIdentifier, $file);
|
||||
composerRequire86be7b7b2508b9425383f9f9ff2a330d($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire6b9306cfef653abff59ef2acd0d14441($fileIdentifier, $file)
|
||||
function composerRequire86be7b7b2508b9425383f9f9ff2a330d($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit6b9306cfef653abff59ef2acd0d14441
|
||||
class ComposerStaticInit86be7b7b2508b9425383f9f9ff2a330d
|
||||
{
|
||||
public static $files = array (
|
||||
'23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
|
||||
@ -3801,9 +3801,9 @@ class ComposerStaticInit6b9306cfef653abff59ef2acd0d14441
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit6b9306cfef653abff59ef2acd0d14441::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit6b9306cfef653abff59ef2acd0d14441::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit6b9306cfef653abff59ef2acd0d14441::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit86be7b7b2508b9425383f9f9ff2a330d::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit86be7b7b2508b9425383f9f9ff2a330d::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit86be7b7b2508b9425383f9f9ff2a330d::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220530\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441', false) && !interface_exists('ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441', false) && !trait_exists('ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441', false)) {
|
||||
spl_autoload_call('RectorPrefix20220530\ComposerAutoloaderInit6b9306cfef653abff59ef2acd0d14441');
|
||||
if (!class_exists('ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d', false) && !interface_exists('ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d', false) && !trait_exists('ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d', false)) {
|
||||
spl_autoload_call('RectorPrefix20220530\ComposerAutoloaderInit86be7b7b2508b9425383f9f9ff2a330d');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220530\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -56,9 +56,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220530\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire6b9306cfef653abff59ef2acd0d14441')) {
|
||||
function composerRequire6b9306cfef653abff59ef2acd0d14441() {
|
||||
return \RectorPrefix20220530\composerRequire6b9306cfef653abff59ef2acd0d14441(...func_get_args());
|
||||
if (!function_exists('composerRequire86be7b7b2508b9425383f9f9ff2a330d')) {
|
||||
function composerRequire86be7b7b2508b9425383f9f9ff2a330d() {
|
||||
return \RectorPrefix20220530\composerRequire86be7b7b2508b9425383f9f9ff2a330d(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user