mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 16:02:23 +02:00
Updated Rector to commit dab5deecda04dfb3bfaa4f4347d4bdc45df34447
dab5deecda
do not show --debug output on json error formatter (#1343)
This commit is contained in:
parent
a5baf4db1a
commit
a2fe05aca6
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'adc2e3757f65899adf2822d7c2239c05ab4ff157';
|
||||
public const PACKAGE_VERSION = 'dab5deecda04dfb3bfaa4f4347d4bdc45df34447';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-11-29 12:22:07';
|
||||
public const RELEASE_DATE = '2021-11-29 14:40:47';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211129\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
@ -6,6 +6,7 @@ namespace Rector\Core\Console\Command;
|
||||
use PHPStan\Analyser\NodeScopeResolver;
|
||||
use Rector\Caching\Detector\ChangedFilesDetector;
|
||||
use Rector\ChangesReporting\Output\ConsoleOutputFormatter;
|
||||
use Rector\ChangesReporting\Output\JsonOutputFormatter;
|
||||
use Rector\Core\Application\ApplicationFileProcessor;
|
||||
use Rector\Core\Autoloading\AdditionalAutoloader;
|
||||
use Rector\Core\Autoloading\BootstrapFilesIncluder;
|
||||
@ -27,6 +28,7 @@ use RectorPrefix20211129\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20211129\Symfony\Component\Console\Input\InputInterface;
|
||||
use RectorPrefix20211129\Symfony\Component\Console\Input\InputOption;
|
||||
use RectorPrefix20211129\Symfony\Component\Console\Output\OutputInterface;
|
||||
use RectorPrefix20211129\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
final class ProcessCommand extends \Rector\Core\Console\Command\AbstractProcessCommand
|
||||
{
|
||||
/**
|
||||
@ -77,6 +79,10 @@ final class ProcessCommand extends \Rector\Core\Console\Command\AbstractProcessC
|
||||
* @var \Rector\Core\Console\Output\OutputFormatterCollector
|
||||
*/
|
||||
private $outputFormatterCollector;
|
||||
/**
|
||||
* @var \Symfony\Component\Console\Style\SymfonyStyle
|
||||
*/
|
||||
private $symfonyStyle;
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Rector\RectorInterface[]
|
||||
*/
|
||||
@ -84,7 +90,7 @@ final class ProcessCommand extends \Rector\Core\Console\Command\AbstractProcessC
|
||||
/**
|
||||
* @param RectorInterface[] $rectors
|
||||
*/
|
||||
public function __construct(\Rector\Core\Autoloading\AdditionalAutoloader $additionalAutoloader, \Rector\Caching\Detector\ChangedFilesDetector $changedFilesDetector, \Rector\Core\Reporting\MissingRectorRulesReporter $missingRectorRulesReporter, \Rector\Core\Application\ApplicationFileProcessor $applicationFileProcessor, \Rector\Core\ValueObjectFactory\Application\FileFactory $fileFactory, \Rector\Core\Autoloading\BootstrapFilesIncluder $bootstrapFilesIncluder, \Rector\Core\ValueObjectFactory\ProcessResultFactory $processResultFactory, \PHPStan\Analyser\NodeScopeResolver $nodeScopeResolver, \Rector\Core\StaticReflection\DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator, \Rector\VersionBonding\Application\MissedRectorDueVersionChecker $missedRectorDueVersionChecker, \Rector\Core\Validation\EmptyConfigurableRectorChecker $emptyConfigurableRectorChecker, \Rector\Core\Console\Output\OutputFormatterCollector $outputFormatterCollector, array $rectors)
|
||||
public function __construct(\Rector\Core\Autoloading\AdditionalAutoloader $additionalAutoloader, \Rector\Caching\Detector\ChangedFilesDetector $changedFilesDetector, \Rector\Core\Reporting\MissingRectorRulesReporter $missingRectorRulesReporter, \Rector\Core\Application\ApplicationFileProcessor $applicationFileProcessor, \Rector\Core\ValueObjectFactory\Application\FileFactory $fileFactory, \Rector\Core\Autoloading\BootstrapFilesIncluder $bootstrapFilesIncluder, \Rector\Core\ValueObjectFactory\ProcessResultFactory $processResultFactory, \PHPStan\Analyser\NodeScopeResolver $nodeScopeResolver, \Rector\Core\StaticReflection\DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator, \Rector\VersionBonding\Application\MissedRectorDueVersionChecker $missedRectorDueVersionChecker, \Rector\Core\Validation\EmptyConfigurableRectorChecker $emptyConfigurableRectorChecker, \Rector\Core\Console\Output\OutputFormatterCollector $outputFormatterCollector, \RectorPrefix20211129\Symfony\Component\Console\Style\SymfonyStyle $symfonyStyle, array $rectors)
|
||||
{
|
||||
$this->additionalAutoloader = $additionalAutoloader;
|
||||
$this->changedFilesDetector = $changedFilesDetector;
|
||||
@ -98,6 +104,7 @@ final class ProcessCommand extends \Rector\Core\Console\Command\AbstractProcessC
|
||||
$this->missedRectorDueVersionChecker = $missedRectorDueVersionChecker;
|
||||
$this->emptyConfigurableRectorChecker = $emptyConfigurableRectorChecker;
|
||||
$this->outputFormatterCollector = $outputFormatterCollector;
|
||||
$this->symfonyStyle = $symfonyStyle;
|
||||
$this->rectors = $rectors;
|
||||
parent::__construct();
|
||||
}
|
||||
@ -120,6 +127,10 @@ final class ProcessCommand extends \Rector\Core\Console\Command\AbstractProcessC
|
||||
return $exitCode;
|
||||
}
|
||||
$configuration = $this->configurationFactory->createFromInput($input);
|
||||
// disable console output in case of json output formatter
|
||||
if ($configuration->getOutputFormat() === \Rector\ChangesReporting\Output\JsonOutputFormatter::NAME) {
|
||||
$this->symfonyStyle->setVerbosity(\RectorPrefix20211129\Symfony\Component\Console\Output\OutputInterface::VERBOSITY_QUIET);
|
||||
}
|
||||
// register autoloaded and included files
|
||||
$this->bootstrapFilesIncluder->includeBootstrapFiles();
|
||||
$this->additionalAutoloader->autoloadInput($input);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756::getLoader();
|
||||
return ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919::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 ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756
|
||||
class ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit5dda0a932f416933629ed4aa4b407756::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitff30269c2f4719ad9043c1ad4459d919::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit5dda0a932f416933629ed4aa4b407756::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitff30269c2f4719ad9043c1ad4459d919::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire5dda0a932f416933629ed4aa4b407756($fileIdentifier, $file);
|
||||
composerRequireff30269c2f4719ad9043c1ad4459d919($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire5dda0a932f416933629ed4aa4b407756($fileIdentifier, $file)
|
||||
function composerRequireff30269c2f4719ad9043c1ad4459d919($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit5dda0a932f416933629ed4aa4b407756
|
||||
class ComposerStaticInitff30269c2f4719ad9043c1ad4459d919
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3775,9 +3775,9 @@ class ComposerStaticInit5dda0a932f416933629ed4aa4b407756
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit5dda0a932f416933629ed4aa4b407756::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit5dda0a932f416933629ed4aa4b407756::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit5dda0a932f416933629ed4aa4b407756::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitff30269c2f4719ad9043c1ad4459d919::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitff30269c2f4719ad9043c1ad4459d919::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitff30269c2f4719ad9043c1ad4459d919::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -12,8 +12,8 @@ if (!class_exists('GenerateChangelogCommand', false) && !interface_exists('Gener
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20211129\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756', false) && !interface_exists('ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756', false) && !trait_exists('ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756', false)) {
|
||||
spl_autoload_call('RectorPrefix20211129\ComposerAutoloaderInit5dda0a932f416933629ed4aa4b407756');
|
||||
if (!class_exists('ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919', false) && !interface_exists('ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919', false) && !trait_exists('ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919', false)) {
|
||||
spl_autoload_call('RectorPrefix20211129\ComposerAutoloaderInitff30269c2f4719ad9043c1ad4459d919');
|
||||
}
|
||||
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('RectorPrefix20211129\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -81,9 +81,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20211129\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire5dda0a932f416933629ed4aa4b407756')) {
|
||||
function composerRequire5dda0a932f416933629ed4aa4b407756() {
|
||||
return \RectorPrefix20211129\composerRequire5dda0a932f416933629ed4aa4b407756(...func_get_args());
|
||||
if (!function_exists('composerRequireff30269c2f4719ad9043c1ad4459d919')) {
|
||||
function composerRequireff30269c2f4719ad9043c1ad4459d919() {
|
||||
return \RectorPrefix20211129\composerRequireff30269c2f4719ad9043c1ad4459d919(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user