mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 19:37:55 +01:00
Updated Rector to commit 6cdebe40bd259e25f5832c01c8ef65117cf3c010
6cdebe40bd
[DX] Remove PackageBuilder classes (#2885)
This commit is contained in:
parent
4e3847e1bc
commit
7211a6c632
@ -34,6 +34,7 @@ use Rector\Core\Configuration\Parameter\ParameterProvider;
|
||||
use Rector\Core\Console\ConsoleApplication;
|
||||
use Rector\Core\Console\Style\RectorConsoleOutputStyle;
|
||||
use Rector\Core\Console\Style\RectorConsoleOutputStyleFactory;
|
||||
use Rector\Core\Console\Style\SymfonyStyleFactory;
|
||||
use Rector\Core\Validation\Collector\EmptyConfigurableRectorCollector;
|
||||
use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory;
|
||||
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator;
|
||||
@ -49,8 +50,6 @@ use RectorPrefix202209\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use function RectorPrefix202209\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix202209\Symfony\Component\Filesystem\Filesystem;
|
||||
use RectorPrefix202209\Symplify\EasyParallel\ValueObject\EasyParallelConfig;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
return static function (RectorConfig $rectorConfig) : void {
|
||||
// make use of https://github.com/symplify/easy-parallel
|
||||
$rectorConfig->import(EasyParallelConfig::FILE_PATH);
|
||||
@ -87,8 +86,6 @@ return static function (RectorConfig $rectorConfig) : void {
|
||||
// psr-4
|
||||
$services->alias(PSR4AutoloadNamespaceMatcherInterface::class, PSR4NamespaceMatcher::class);
|
||||
$services->load('Rector\\', __DIR__ . '/../rules')->exclude([__DIR__ . '/../rules/*/ValueObject/*', __DIR__ . '/../rules/*/Rector/*', __DIR__ . '/../rules/*/Contract/*', __DIR__ . '/../rules/*/Exception/*', __DIR__ . '/../rules/*/Enum/*']);
|
||||
// parallel
|
||||
$services->set(ParametersMerger::class);
|
||||
$services->set(Filesystem::class);
|
||||
// use faster in-memory cache in CI.
|
||||
// CI always starts from scratch, therefore IO intensive caching is not worth it
|
||||
|
@ -11,6 +11,7 @@ use Rector\Core\Application\FileProcessor\PhpFileProcessor;
|
||||
use Rector\Core\Console\Style\RectorConsoleOutputStyle;
|
||||
use Rector\Core\Provider\CurrentFileProvider;
|
||||
use Rector\Core\StaticReflection\DynamicSourceLocatorDecorator;
|
||||
use Rector\Core\Util\ArrayParametersMerger;
|
||||
use Rector\Core\ValueObject\Application\File;
|
||||
use Rector\Core\ValueObject\Configuration;
|
||||
use Rector\Core\ValueObject\Error\SystemError;
|
||||
@ -18,7 +19,6 @@ use Rector\Parallel\ValueObject\Bridge;
|
||||
use RectorPrefix202209\Symplify\EasyParallel\Enum\Action;
|
||||
use RectorPrefix202209\Symplify\EasyParallel\Enum\ReactCommand;
|
||||
use RectorPrefix202209\Symplify\EasyParallel\Enum\ReactEvent;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
use Throwable;
|
||||
final class WorkerRunner
|
||||
{
|
||||
@ -28,9 +28,9 @@ final class WorkerRunner
|
||||
private const RESULT = 'result';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Yaml\ParametersMerger
|
||||
* @var \Rector\Core\Util\ArrayParametersMerger
|
||||
*/
|
||||
private $parametersMerger;
|
||||
private $arrayParametersMerger;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Provider\CurrentFileProvider
|
||||
@ -56,9 +56,9 @@ final class WorkerRunner
|
||||
* @var \Rector\Core\Console\Style\RectorConsoleOutputStyle
|
||||
*/
|
||||
private $rectorConsoleOutputStyle;
|
||||
public function __construct(ParametersMerger $parametersMerger, CurrentFileProvider $currentFileProvider, PhpFileProcessor $phpFileProcessor, NodeScopeResolver $nodeScopeResolver, DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator, RectorConsoleOutputStyle $rectorConsoleOutputStyle)
|
||||
public function __construct(ArrayParametersMerger $arrayParametersMerger, CurrentFileProvider $currentFileProvider, PhpFileProcessor $phpFileProcessor, NodeScopeResolver $nodeScopeResolver, DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator, RectorConsoleOutputStyle $rectorConsoleOutputStyle)
|
||||
{
|
||||
$this->parametersMerger = $parametersMerger;
|
||||
$this->arrayParametersMerger = $arrayParametersMerger;
|
||||
$this->currentFileProvider = $currentFileProvider;
|
||||
$this->phpFileProcessor = $phpFileProcessor;
|
||||
$this->nodeScopeResolver = $nodeScopeResolver;
|
||||
@ -96,7 +96,7 @@ final class WorkerRunner
|
||||
continue;
|
||||
}
|
||||
$currentErrorsAndFileDiffs = $this->phpFileProcessor->process($file, $configuration);
|
||||
$errorAndFileDiffs = $this->parametersMerger->merge($errorAndFileDiffs, $currentErrorsAndFileDiffs);
|
||||
$errorAndFileDiffs = $this->arrayParametersMerger->merge($errorAndFileDiffs, $currentErrorsAndFileDiffs);
|
||||
} catch (Throwable $throwable) {
|
||||
++$systemErrorsCount;
|
||||
$systemErrors = $this->collectSystemErrors($systemErrors, $throwable, $filePath);
|
||||
|
@ -10,6 +10,7 @@ use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\Configuration\Parameter\ParameterProvider;
|
||||
use Rector\Core\Contract\Console\OutputStyleInterface;
|
||||
use Rector\Core\Contract\Processor\FileProcessorInterface;
|
||||
use Rector\Core\Util\ArrayParametersMerger;
|
||||
use Rector\Core\ValueObject\Application\File;
|
||||
use Rector\Core\ValueObject\Configuration;
|
||||
use Rector\Core\ValueObject\Error\SystemError;
|
||||
@ -22,7 +23,6 @@ use RectorPrefix202209\Symfony\Component\Filesystem\Filesystem;
|
||||
use RectorPrefix202209\Symplify\EasyParallel\CpuCoreCountProvider;
|
||||
use RectorPrefix202209\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException;
|
||||
use RectorPrefix202209\Symplify\EasyParallel\ScheduleFactory;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
use RectorPrefix202209\Webmozart\Assert\Assert;
|
||||
final class ApplicationFileProcessor
|
||||
{
|
||||
@ -66,9 +66,9 @@ final class ApplicationFileProcessor
|
||||
private $nodeScopeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Yaml\ParametersMerger
|
||||
* @var \Rector\Core\Util\ArrayParametersMerger
|
||||
*/
|
||||
private $parametersMerger;
|
||||
private $arrayParametersMerger;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Parallel\Application\ParallelFileProcessor
|
||||
@ -97,7 +97,7 @@ final class ApplicationFileProcessor
|
||||
/**
|
||||
* @param FileProcessorInterface[] $fileProcessors
|
||||
*/
|
||||
public function __construct(Filesystem $filesystem, FileDiffFileDecorator $fileDiffFileDecorator, RemovedAndAddedFilesProcessor $removedAndAddedFilesProcessor, OutputStyleInterface $rectorOutputStyle, FileFactory $fileFactory, NodeScopeResolver $nodeScopeResolver, ParametersMerger $parametersMerger, ParallelFileProcessor $parallelFileProcessor, ParameterProvider $parameterProvider, ScheduleFactory $scheduleFactory, CpuCoreCountProvider $cpuCoreCountProvider, array $fileProcessors = [])
|
||||
public function __construct(Filesystem $filesystem, FileDiffFileDecorator $fileDiffFileDecorator, RemovedAndAddedFilesProcessor $removedAndAddedFilesProcessor, OutputStyleInterface $rectorOutputStyle, FileFactory $fileFactory, NodeScopeResolver $nodeScopeResolver, ArrayParametersMerger $arrayParametersMerger, ParallelFileProcessor $parallelFileProcessor, ParameterProvider $parameterProvider, ScheduleFactory $scheduleFactory, CpuCoreCountProvider $cpuCoreCountProvider, array $fileProcessors = [])
|
||||
{
|
||||
$this->filesystem = $filesystem;
|
||||
$this->fileDiffFileDecorator = $fileDiffFileDecorator;
|
||||
@ -105,7 +105,7 @@ final class ApplicationFileProcessor
|
||||
$this->rectorOutputStyle = $rectorOutputStyle;
|
||||
$this->fileFactory = $fileFactory;
|
||||
$this->nodeScopeResolver = $nodeScopeResolver;
|
||||
$this->parametersMerger = $parametersMerger;
|
||||
$this->arrayParametersMerger = $arrayParametersMerger;
|
||||
$this->parallelFileProcessor = $parallelFileProcessor;
|
||||
$this->parameterProvider = $parameterProvider;
|
||||
$this->scheduleFactory = $scheduleFactory;
|
||||
@ -158,7 +158,7 @@ final class ApplicationFileProcessor
|
||||
continue;
|
||||
}
|
||||
$result = $fileProcessor->process($file, $configuration);
|
||||
$systemErrorsAndFileDiffs = $this->parametersMerger->merge($systemErrorsAndFileDiffs, $result);
|
||||
$systemErrorsAndFileDiffs = $this->arrayParametersMerger->merge($systemErrorsAndFileDiffs, $result);
|
||||
}
|
||||
// progress bar +1
|
||||
if ($shouldShowProgressBar) {
|
||||
|
@ -17,12 +17,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '3c07468691132d0246e55627495a1e7d4cd76a8d';
|
||||
public const PACKAGE_VERSION = '6cdebe40bd259e25f5832c01c8ef65117cf3c010';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-09-01 19:44:57';
|
||||
public const RELEASE_DATE = '2022-09-01 20:04:57';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
50
src/Console/Style/SymfonyStyleFactory.php
Normal file
50
src/Console/Style/SymfonyStyleFactory.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Core\Console\Style;
|
||||
|
||||
use Rector\Core\Util\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix202209\Symfony\Component\Console\Application;
|
||||
use RectorPrefix202209\Symfony\Component\Console\Input\ArgvInput;
|
||||
use RectorPrefix202209\Symfony\Component\Console\Output\ConsoleOutput;
|
||||
use RectorPrefix202209\Symfony\Component\Console\Output\OutputInterface;
|
||||
use RectorPrefix202209\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
final class SymfonyStyleFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
public function __construct(PrivatesAccessor $privatesAccessor)
|
||||
{
|
||||
$this->privatesAccessor = $privatesAccessor;
|
||||
}
|
||||
public function create() : SymfonyStyle
|
||||
{
|
||||
// to prevent missing argv indexes
|
||||
if (!isset($_SERVER['argv'])) {
|
||||
$_SERVER['argv'] = [];
|
||||
}
|
||||
$argvInput = new ArgvInput();
|
||||
$consoleOutput = new ConsoleOutput();
|
||||
// to configure all -v, -vv, -vvv options without memory-lock to Application run() arguments
|
||||
$this->privatesAccessor->callPrivateMethod(new Application(), 'configureIO', [$argvInput, $consoleOutput]);
|
||||
// --debug is called
|
||||
if ($argvInput->hasParameterOption('--debug')) {
|
||||
$consoleOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
|
||||
}
|
||||
// disable output for tests
|
||||
if ($this->isPHPUnitRun()) {
|
||||
$consoleOutput->setVerbosity(OutputInterface::VERBOSITY_QUIET);
|
||||
}
|
||||
return new SymfonyStyle($argvInput, $consoleOutput);
|
||||
}
|
||||
/**
|
||||
* Never ever used static methods if not neccesary, this is just handy for tests + src to prevent duplication.
|
||||
*/
|
||||
private function isPHPUnitRun() : bool
|
||||
{
|
||||
return \defined('PHPUNIT_COMPOSER_INSTALL') || \defined('__PHPUNIT_PHAR__');
|
||||
}
|
||||
}
|
@ -3,13 +3,14 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Core\DependencyInjection\Collector;
|
||||
|
||||
use Rector\Core\Console\Style\SymfonyStyleFactory;
|
||||
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
|
||||
use Rector\Core\Util\ArrayParametersMerger;
|
||||
use Rector\Core\Util\Reflection\PrivatesAccessor;
|
||||
use ReflectionClass;
|
||||
use ReflectionClassConstant;
|
||||
use RectorPrefix202209\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use RectorPrefix202209\Symfony\Component\DependencyInjection\Definition;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
final class ConfigureCallValuesCollector
|
||||
{
|
||||
/**
|
||||
@ -18,9 +19,9 @@ final class ConfigureCallValuesCollector
|
||||
private $configureCallValuesByRectorClass = [];
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Yaml\ParametersMerger
|
||||
* @var \Rector\Core\Util\ArrayParametersMerger
|
||||
*/
|
||||
private $parametersMerger;
|
||||
private $arrayParametersMerger;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symfony\Component\Console\Style\SymfonyStyle
|
||||
@ -28,8 +29,8 @@ final class ConfigureCallValuesCollector
|
||||
private $symfonyStyle;
|
||||
public function __construct()
|
||||
{
|
||||
$this->parametersMerger = new ParametersMerger();
|
||||
$symfonyStyleFactory = new SymfonyStyleFactory();
|
||||
$this->arrayParametersMerger = new ArrayParametersMerger();
|
||||
$symfonyStyleFactory = new SymfonyStyleFactory(new PrivatesAccessor());
|
||||
$this->symfonyStyle = $symfonyStyleFactory->create();
|
||||
}
|
||||
/**
|
||||
@ -94,7 +95,7 @@ final class ConfigureCallValuesCollector
|
||||
if (!isset($this->configureCallValuesByRectorClass[$rectorClass])) {
|
||||
$this->configureCallValuesByRectorClass[$rectorClass] = $configureValue;
|
||||
} else {
|
||||
$mergedParameters = $this->parametersMerger->merge($this->configureCallValuesByRectorClass[$rectorClass], $configureValue);
|
||||
$mergedParameters = $this->arrayParametersMerger->merge($this->configureCallValuesByRectorClass[$rectorClass], $configureValue);
|
||||
$this->configureCallValuesByRectorClass[$rectorClass] = $mergedParameters;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Core\Exception\Reflection;
|
||||
|
||||
use Exception;
|
||||
final class InvalidPrivatePropertyTypeException extends Exception
|
||||
{
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Core\Exception\Reflection;
|
||||
|
||||
use Exception;
|
||||
final class MissingPrivatePropertyException extends Exception
|
||||
{
|
||||
}
|
77
src/Util/ArrayParametersMerger.php
Normal file
77
src/Util/ArrayParametersMerger.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Core\Util;
|
||||
|
||||
final class ArrayParametersMerger
|
||||
{
|
||||
/**
|
||||
* Merges configurations. Left has higher priority than right one.
|
||||
*
|
||||
* @autor David Grudl (https://davidgrudl.com)
|
||||
* @source https://github.com/nette/di/blob/8eb90721a131262f17663e50aee0032a62d0ef08/src/DI/Config/Helpers.php#L31
|
||||
* @param mixed $left
|
||||
* @param mixed $right
|
||||
* @return mixed
|
||||
*/
|
||||
public function merge($left, $right)
|
||||
{
|
||||
if (\is_array($left) && \is_array($right)) {
|
||||
return $this->mergeLeftToRightWithCallable($left, $right, function ($leftValue, $rightValue) {
|
||||
return $this->merge($leftValue, $rightValue);
|
||||
});
|
||||
}
|
||||
if ($left !== null) {
|
||||
return $left;
|
||||
}
|
||||
if (!\is_array($right)) {
|
||||
return $left;
|
||||
}
|
||||
return $right;
|
||||
}
|
||||
/**
|
||||
* The same as above, just with the case if both values being non-array, it will combined them to array:
|
||||
*
|
||||
* $this->mergeWithCombine(1, 2); // [1, 2]
|
||||
* @param mixed $left
|
||||
* @param mixed $right
|
||||
* @return mixed
|
||||
*/
|
||||
public function mergeWithCombine($left, $right)
|
||||
{
|
||||
if (\is_array($left) && \is_array($right)) {
|
||||
return $this->mergeLeftToRightWithCallable($left, $right, function ($leftValue, $rightValue) {
|
||||
return $this->mergeWithCombine($leftValue, $rightValue);
|
||||
});
|
||||
}
|
||||
if ($left === null && \is_array($right)) {
|
||||
return $right;
|
||||
}
|
||||
if (!empty($right) && (array) $left !== (array) $right) {
|
||||
return $this->mergeWithCombine((array) $right, (array) $left);
|
||||
}
|
||||
return $left;
|
||||
}
|
||||
/**
|
||||
* @param array<int|string, mixed> $left
|
||||
* @param array<int|string, mixed> $right
|
||||
* @return mixed[]
|
||||
*/
|
||||
private function mergeLeftToRightWithCallable(array $left, array $right, callable $mergeCallback) : array
|
||||
{
|
||||
foreach ($left as $key => $val) {
|
||||
if (\is_int($key)) {
|
||||
// prevent duplicated values in unindexed arrays
|
||||
if (!\in_array($val, $right, \true)) {
|
||||
$right[] = $val;
|
||||
}
|
||||
} else {
|
||||
if (isset($right[$key])) {
|
||||
$val = $mergeCallback($val, $right[$key]);
|
||||
}
|
||||
$right[$key] = $val;
|
||||
}
|
||||
}
|
||||
return $right;
|
||||
}
|
||||
}
|
@ -3,11 +3,11 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Core\Util\Reflection;
|
||||
|
||||
use Rector\Core\Exception\Reflection\InvalidPrivatePropertyTypeException;
|
||||
use Rector\Core\Exception\Reflection\MissingPrivatePropertyException;
|
||||
use ReflectionClass;
|
||||
use ReflectionMethod;
|
||||
use ReflectionProperty;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Exception\InvalidPrivatePropertyTypeException;
|
||||
use RectorPrefix202209\Symplify\PackageBuilder\Exception\MissingPrivatePropertyException;
|
||||
/**
|
||||
* @see \Rector\Core\Tests\Util\Reflection\PrivatesAccessorTest
|
||||
*/
|
||||
|
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 ComposerAutoloaderInit86cbfc3673ea2a34d4a9839fb42e2f38::getLoader();
|
||||
return ComposerAutoloaderInitf9386b3167e6f436551675dcefff7647::getLoader();
|
||||
|
4
vendor/composer/autoload_classmap.php
vendored
4
vendor/composer/autoload_classmap.php
vendored
@ -1377,6 +1377,7 @@ return array(
|
||||
'Rector\\Core\\Console\\Output\\RectorOutputStyle' => $baseDir . '/src/Console/Output/RectorOutputStyle.php',
|
||||
'Rector\\Core\\Console\\Style\\RectorConsoleOutputStyle' => $baseDir . '/src/Console/Style/RectorConsoleOutputStyle.php',
|
||||
'Rector\\Core\\Console\\Style\\RectorConsoleOutputStyleFactory' => $baseDir . '/src/Console/Style/RectorConsoleOutputStyleFactory.php',
|
||||
'Rector\\Core\\Console\\Style\\SymfonyStyleFactory' => $baseDir . '/src/Console/Style/SymfonyStyleFactory.php',
|
||||
'Rector\\Core\\Contract\\Console\\OutputStyleInterface' => $baseDir . '/src/Contract/Console/OutputStyleInterface.php',
|
||||
'Rector\\Core\\Contract\\PHPStan\\Reflection\\TypeToCallReflectionResolver\\TypeToCallReflectionResolverInterface' => $baseDir . '/src/Contract/PHPStan/Reflection/TypeToCallReflectionResolver/TypeToCallReflectionResolverInterface.php',
|
||||
'Rector\\Core\\Contract\\PhpParser\\NodePrinterInterface' => $baseDir . '/src/Contract/PhpParser/NodePrinterInterface.php',
|
||||
@ -1403,6 +1404,8 @@ return array(
|
||||
'Rector\\Core\\Exception\\Configuration\\InvalidConfigurationException' => $baseDir . '/src/Exception/Configuration/InvalidConfigurationException.php',
|
||||
'Rector\\Core\\Exception\\DeprecatedException' => $baseDir . '/src/Exception/DeprecatedException.php',
|
||||
'Rector\\Core\\Exception\\NotImplementedYetException' => $baseDir . '/src/Exception/NotImplementedYetException.php',
|
||||
'Rector\\Core\\Exception\\Reflection\\InvalidPrivatePropertyTypeException' => $baseDir . '/src/Exception/Reflection/InvalidPrivatePropertyTypeException.php',
|
||||
'Rector\\Core\\Exception\\Reflection\\MissingPrivatePropertyException' => $baseDir . '/src/Exception/Reflection/MissingPrivatePropertyException.php',
|
||||
'Rector\\Core\\Exception\\ShouldNotHappenException' => $baseDir . '/src/Exception/ShouldNotHappenException.php',
|
||||
'Rector\\Core\\Exception\\VersionException' => $baseDir . '/src/Exception/VersionException.php',
|
||||
'Rector\\Core\\Exclusion\\ExclusionManager' => $baseDir . '/src/Exclusion/ExclusionManager.php',
|
||||
@ -1502,6 +1505,7 @@ return array(
|
||||
'Rector\\Core\\StaticReflection\\DynamicSourceLocatorDecorator' => $baseDir . '/src/StaticReflection/DynamicSourceLocatorDecorator.php',
|
||||
'Rector\\Core\\StaticReflection\\SourceLocator\\ParentAttributeSourceLocator' => $baseDir . '/src/StaticReflection/SourceLocator/ParentAttributeSourceLocator.php',
|
||||
'Rector\\Core\\StaticReflection\\SourceLocator\\RenamedClassesSourceLocator' => $baseDir . '/src/StaticReflection/SourceLocator/RenamedClassesSourceLocator.php',
|
||||
'Rector\\Core\\Util\\ArrayParametersMerger' => $baseDir . '/src/Util/ArrayParametersMerger.php',
|
||||
'Rector\\Core\\Util\\MemoryLimiter' => $baseDir . '/src/Util/MemoryLimiter.php',
|
||||
'Rector\\Core\\Util\\MultiInstanceofChecker' => $baseDir . '/src/Util/MultiInstanceofChecker.php',
|
||||
'Rector\\Core\\Util\\PhpVersionFactory' => $baseDir . '/src/Util/PhpVersionFactory.php',
|
||||
|
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 ComposerAutoloaderInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
class ComposerAutoloaderInitf9386b3167e6f436551675dcefff7647
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit86cbfc3673ea2a34d4a9839fb42e2f38', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitf9386b3167e6f436551675dcefff7647', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit86cbfc3673ea2a34d4a9839fb42e2f38', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitf9386b3167e6f436551675dcefff7647', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitf9386b3167e6f436551675dcefff7647::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitf9386b3167e6f436551675dcefff7647::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire86cbfc3673ea2a34d4a9839fb42e2f38($fileIdentifier, $file);
|
||||
composerRequiref9386b3167e6f436551675dcefff7647($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire86cbfc3673ea2a34d4a9839fb42e2f38($fileIdentifier, $file)
|
||||
function composerRequiref9386b3167e6f436551675dcefff7647($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
12
vendor/composer/autoload_static.php
vendored
12
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
class ComposerStaticInitf9386b3167e6f436551675dcefff7647
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -1647,6 +1647,7 @@ class ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
'Rector\\Core\\Console\\Output\\RectorOutputStyle' => __DIR__ . '/../..' . '/src/Console/Output/RectorOutputStyle.php',
|
||||
'Rector\\Core\\Console\\Style\\RectorConsoleOutputStyle' => __DIR__ . '/../..' . '/src/Console/Style/RectorConsoleOutputStyle.php',
|
||||
'Rector\\Core\\Console\\Style\\RectorConsoleOutputStyleFactory' => __DIR__ . '/../..' . '/src/Console/Style/RectorConsoleOutputStyleFactory.php',
|
||||
'Rector\\Core\\Console\\Style\\SymfonyStyleFactory' => __DIR__ . '/../..' . '/src/Console/Style/SymfonyStyleFactory.php',
|
||||
'Rector\\Core\\Contract\\Console\\OutputStyleInterface' => __DIR__ . '/../..' . '/src/Contract/Console/OutputStyleInterface.php',
|
||||
'Rector\\Core\\Contract\\PHPStan\\Reflection\\TypeToCallReflectionResolver\\TypeToCallReflectionResolverInterface' => __DIR__ . '/../..' . '/src/Contract/PHPStan/Reflection/TypeToCallReflectionResolver/TypeToCallReflectionResolverInterface.php',
|
||||
'Rector\\Core\\Contract\\PhpParser\\NodePrinterInterface' => __DIR__ . '/../..' . '/src/Contract/PhpParser/NodePrinterInterface.php',
|
||||
@ -1673,6 +1674,8 @@ class ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
'Rector\\Core\\Exception\\Configuration\\InvalidConfigurationException' => __DIR__ . '/../..' . '/src/Exception/Configuration/InvalidConfigurationException.php',
|
||||
'Rector\\Core\\Exception\\DeprecatedException' => __DIR__ . '/../..' . '/src/Exception/DeprecatedException.php',
|
||||
'Rector\\Core\\Exception\\NotImplementedYetException' => __DIR__ . '/../..' . '/src/Exception/NotImplementedYetException.php',
|
||||
'Rector\\Core\\Exception\\Reflection\\InvalidPrivatePropertyTypeException' => __DIR__ . '/../..' . '/src/Exception/Reflection/InvalidPrivatePropertyTypeException.php',
|
||||
'Rector\\Core\\Exception\\Reflection\\MissingPrivatePropertyException' => __DIR__ . '/../..' . '/src/Exception/Reflection/MissingPrivatePropertyException.php',
|
||||
'Rector\\Core\\Exception\\ShouldNotHappenException' => __DIR__ . '/../..' . '/src/Exception/ShouldNotHappenException.php',
|
||||
'Rector\\Core\\Exception\\VersionException' => __DIR__ . '/../..' . '/src/Exception/VersionException.php',
|
||||
'Rector\\Core\\Exclusion\\ExclusionManager' => __DIR__ . '/../..' . '/src/Exclusion/ExclusionManager.php',
|
||||
@ -1772,6 +1775,7 @@ class ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
'Rector\\Core\\StaticReflection\\DynamicSourceLocatorDecorator' => __DIR__ . '/../..' . '/src/StaticReflection/DynamicSourceLocatorDecorator.php',
|
||||
'Rector\\Core\\StaticReflection\\SourceLocator\\ParentAttributeSourceLocator' => __DIR__ . '/../..' . '/src/StaticReflection/SourceLocator/ParentAttributeSourceLocator.php',
|
||||
'Rector\\Core\\StaticReflection\\SourceLocator\\RenamedClassesSourceLocator' => __DIR__ . '/../..' . '/src/StaticReflection/SourceLocator/RenamedClassesSourceLocator.php',
|
||||
'Rector\\Core\\Util\\ArrayParametersMerger' => __DIR__ . '/../..' . '/src/Util/ArrayParametersMerger.php',
|
||||
'Rector\\Core\\Util\\MemoryLimiter' => __DIR__ . '/../..' . '/src/Util/MemoryLimiter.php',
|
||||
'Rector\\Core\\Util\\MultiInstanceofChecker' => __DIR__ . '/../..' . '/src/Util/MultiInstanceofChecker.php',
|
||||
'Rector\\Core\\Util\\PhpVersionFactory' => __DIR__ . '/../..' . '/src/Util/PhpVersionFactory.php',
|
||||
@ -3144,9 +3148,9 @@ class ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit86cbfc3673ea2a34d4a9839fb42e2f38::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitf9386b3167e6f436551675dcefff7647::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitf9386b3167e6f436551675dcefff7647::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitf9386b3167e6f436551675dcefff7647::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
30
vendor/composer/installed.json
vendored
30
vendor/composer/installed.json
vendored
@ -1922,12 +1922,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
|
||||
"reference": "f2439d57667adba44960e0d5d7afcff6dd6ad221"
|
||||
"reference": "e60db751903c36be1dd6d3f798a0f4c8909a39fa"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/f2439d57667adba44960e0d5d7afcff6dd6ad221",
|
||||
"reference": "f2439d57667adba44960e0d5d7afcff6dd6ad221",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/e60db751903c36be1dd6d3f798a0f4c8909a39fa",
|
||||
"reference": "e60db751903c36be1dd6d3f798a0f4c8909a39fa",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -1944,7 +1944,7 @@
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.6",
|
||||
"rector\/rector-debugging": "dev-main",
|
||||
"rector\/rector-src": "dev-main#7ad13da",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symplify\/easy-ci": "^11.1",
|
||||
"symplify\/easy-coding-standard": "^11.1",
|
||||
"symplify\/phpstan-extensions": "^11.1",
|
||||
@ -1952,7 +1952,7 @@
|
||||
"symplify\/rule-doc-generator": "^11.1",
|
||||
"symplify\/vendor-patches": "^11.1"
|
||||
},
|
||||
"time": "2022-09-01T15:54:46+00:00",
|
||||
"time": "2022-09-01T19:51:50+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
@ -1993,12 +1993,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-laravel.git",
|
||||
"reference": "b5d0ad891f5df71df0bb52ea5b8455007de67239"
|
||||
"reference": "cd9db8c094b4ef20c7c0f19b6902ea08a2c5f836"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/b5d0ad891f5df71df0bb52ea5b8455007de67239",
|
||||
"reference": "b5d0ad891f5df71df0bb52ea5b8455007de67239",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/cd9db8c094b4ef20c7c0f19b6902ea08a2c5f836",
|
||||
"reference": "cd9db8c094b4ef20c7c0f19b6902ea08a2c5f836",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2015,7 +2015,7 @@
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.6",
|
||||
"rector\/rector-debugging": "dev-main",
|
||||
"rector\/rector-src": "dev-main#7ad13da",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symplify\/easy-coding-standard": "^11.0",
|
||||
"symplify\/monorepo-builder": "^11.0",
|
||||
"symplify\/phpstan-extensions": "^11.0",
|
||||
@ -2023,7 +2023,7 @@
|
||||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/vendor-patches": "^11.0"
|
||||
},
|
||||
"time": "2022-09-01T15:53:21+00:00",
|
||||
"time": "2022-09-01T19:51:31+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
@ -2197,12 +2197,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
|
||||
"reference": "4801624461ce7c7aeec47a7947af0b938b00af3e"
|
||||
"reference": "b13f5747df67b1a021383633c790e43c926027ed"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/4801624461ce7c7aeec47a7947af0b938b00af3e",
|
||||
"reference": "4801624461ce7c7aeec47a7947af0b938b00af3e",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/b13f5747df67b1a021383633c790e43c926027ed",
|
||||
"reference": "b13f5747df67b1a021383633c790e43c926027ed",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2222,7 +2222,7 @@
|
||||
"rector\/phpstan-rules": "^0.6",
|
||||
"rector\/rector-debugging": "dev-main",
|
||||
"rector\/rector-generator": "^0.6",
|
||||
"rector\/rector-src": "dev-main#7ad13da",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symfony\/routing": "^6.1",
|
||||
"symfony\/security-core": "^6.1",
|
||||
"symfony\/security-http": "^6.1",
|
||||
@ -2233,7 +2233,7 @@
|
||||
"symplify\/rule-doc-generator": "^11.1",
|
||||
"symplify\/vendor-patches": "^11.1"
|
||||
},
|
||||
"time": "2022-09-01T19:38:21+00:00",
|
||||
"time": "2022-09-01T19:52:16+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
||||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main bfaf952'), '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 3ef7085'), '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 f2439d5'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b5d0ad8'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e5a1d4c'), '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 087730e'), '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 4801624'));
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main bfaf952'), '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 3ef7085'), '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 e60db75'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main cd9db8c'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e5a1d4c'), '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 087730e'), '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 b13f574'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.6",
|
||||
"rector\/rector-debugging": "dev-main",
|
||||
"rector\/rector-src": "dev-main#7ad13da",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symplify\/easy-ci": "^11.1",
|
||||
"symplify\/easy-coding-standard": "^11.1",
|
||||
"symplify\/phpstan-extensions": "^11.1",
|
||||
|
2
vendor/rector/rector-laravel/composer.json
vendored
2
vendor/rector/rector-laravel/composer.json
vendored
@ -7,7 +7,7 @@
|
||||
"php": ">=8.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"rector\/rector-src": "dev-main#7ad13da",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"phpstan\/phpstan": "^1.8.2",
|
||||
"symplify\/phpstan-rules": "^11.0",
|
||||
|
2
vendor/rector/rector-symfony/composer.json
vendored
2
vendor/rector/rector-symfony/composer.json
vendored
@ -17,7 +17,7 @@
|
||||
"rector\/rector-debugging": "dev-main",
|
||||
"rector\/phpstan-rules": "^0.6",
|
||||
"rector\/rector-generator": "^0.6",
|
||||
"rector\/rector-src": "dev-main#7ad13da",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symfony\/routing": "^6.1",
|
||||
"symfony\/security-core": "^6.1",
|
||||
"symfony\/security-http": "^6.1",
|
||||
|
@ -4,9 +4,9 @@ declare (strict_types=1);
|
||||
namespace Rector\Symfony\DataProvider;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\Configuration\Parameter\ParameterProvider;
|
||||
use Rector\Symfony\ValueObject\ServiceMap\ServiceMap;
|
||||
use Rector\Symfony\ValueObjectFactory\ServiceMapFactory;
|
||||
use Rector\Core\Configuration\Parameter\ParameterProvider;
|
||||
/**
|
||||
* Inspired by https://github.com/phpstan/phpstan-symfony/tree/master/src/Symfony
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user