diff --git a/README.md b/README.md
index 12334d96fc8..103f5fcfde4 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ By [buying a book](https://leanpub.com/rector-the-power-of-automated-refactoring
## Documentation
-- [Explore 400+ Rector Rules](/docs/rector_rules_overview.md)
+- [Explore Rector Rules](/docs/rector_rules_overview.md)
- [How to Ignore Rule or Paths](/docs/how_to_ignore_rule_or_paths.md)
- [Static Reflection and Autoload](/docs/static_reflection_and_autoload.md)
- [How to Configure Rule](/docs/how_to_configure_rules.md)
diff --git a/config/set/rector-config.php b/config/set/rector-config.php
deleted file mode 100644
index 7a8ff55daea..00000000000
--- a/config/set/rector-config.php
+++ /dev/null
@@ -1,10 +0,0 @@
-rule(UpgradeRectorConfigRector::class);
-};
diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md
index f0e3199a861..d30118328a1 100644
--- a/docs/rector_rules_overview.md
+++ b/docs/rector_rules_overview.md
@@ -1,4 +1,4 @@
-# 401 Rules Overview
+# 400 Rules Overview
@@ -18,8 +18,6 @@
- [DependencyInjection](#dependencyinjection) (2)
-- [DogFood](#dogfood) (1)
-
- [EarlyReturn](#earlyreturn) (11)
- [MysqlToMysqli](#mysqltomysqli) (4)
@@ -3773,36 +3771,6 @@ return static function (RectorConfig $rectorConfig): void {
-## DogFood
-
-### UpgradeRectorConfigRector
-
-Upgrade rector.php config to use of RectorConfig
-
-- class: [`Rector\DogFood\Rector\Closure\UpgradeRectorConfigRector`](../rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php)
-
-```diff
--use Rector\Core\Configuration\Option;
- use Rector\Php74\Rector\Property\TypedPropertyRector;
--use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
-+use Rector\Config\RectorConfig;
-
--return static function (ContainerConfigurator $containerConfigurator): void {
-- $parameters = $containerConfigurator->parameters();
-- $parameters->set(Option::PARALLEL, true);
-- $parameters->set(Option::AUTO_IMPORT_NAMES, true);
-+return static function (RectorConfig $rectorConfig): void {
-+ $rectorConfig->parallel();
-+ $rectorConfig->importNames();
-
-- $services = $containerConfigurator->services();
-- $services->set(TypedPropertyRector::class);
-+ $rectorConfig->rule(TypedPropertyRector::class);
- };
-```
-
-
-
## EarlyReturn
### ChangeAndIfToEarlyReturnRector
diff --git a/packages/Defluent/NodeAnalyzer/FluentChainMethodCallNodeAnalyzer.php b/packages/Defluent/NodeAnalyzer/FluentChainMethodCallNodeAnalyzer.php
index c6dc1eb989c..0f60e44ddc5 100644
--- a/packages/Defluent/NodeAnalyzer/FluentChainMethodCallNodeAnalyzer.php
+++ b/packages/Defluent/NodeAnalyzer/FluentChainMethodCallNodeAnalyzer.php
@@ -3,65 +3,26 @@
declare (strict_types=1);
namespace Rector\Defluent\NodeAnalyzer;
-use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Name;
-use Rector\NodeNameResolver\NodeNameResolver;
-use Rector\NodeTypeResolver\Node\AttributeKey;
/**
* Utils for chain of MethodCall Node:
* "$this->methodCall()->chainedMethodCall()"
*/
final class FluentChainMethodCallNodeAnalyzer
{
- /**
- * @readonly
- * @var \Rector\NodeNameResolver\NodeNameResolver
- */
- private $nodeNameResolver;
- public function __construct(NodeNameResolver $nodeNameResolver)
+ public function resolveRootMethodCall(MethodCall $methodCall) : ?MethodCall
{
- $this->nodeNameResolver = $nodeNameResolver;
- }
- /**
- * @return string[]
- */
- public function collectMethodCallNamesInChain(MethodCall $desiredMethodCall) : array
- {
- $methodCalls = $this->collectAllMethodCallsInChain($desiredMethodCall);
- $methodNames = [];
- foreach ($methodCalls as $methodCall) {
- $methodName = $this->nodeNameResolver->getName($methodCall->name);
- if ($methodName === null) {
- continue;
- }
- $methodNames[] = $methodName;
+ $callerNode = $methodCall->var;
+ while ($callerNode instanceof MethodCall && $callerNode->var instanceof MethodCall) {
+ $callerNode = $callerNode->var;
}
- return $methodNames;
- }
- /**
- * @return MethodCall[]
- */
- public function collectAllMethodCallsInChain(MethodCall $methodCall) : array
- {
- $chainMethodCalls = [$methodCall];
- // traverse up
- $currentNode = $methodCall->var;
- while ($currentNode instanceof MethodCall) {
- $chainMethodCalls[] = $currentNode;
- $currentNode = $currentNode->var;
+ if ($callerNode instanceof MethodCall) {
+ return $callerNode;
}
- // traverse down
- if (\count($chainMethodCalls) === 1) {
- $currentNode = $methodCall->getAttribute(AttributeKey::PARENT_NODE);
- while ($currentNode instanceof MethodCall) {
- $chainMethodCalls[] = $currentNode;
- $currentNode = $currentNode->getAttribute(AttributeKey::PARENT_NODE);
- }
- }
- return $chainMethodCalls;
+ return null;
}
/**
* @return \PhpParser\Node\Expr|\PhpParser\Node\Name
@@ -74,15 +35,4 @@ final class FluentChainMethodCallNodeAnalyzer
}
return $callerNode;
}
- public function resolveRootMethodCall(MethodCall $methodCall) : ?MethodCall
- {
- $callerNode = $methodCall->var;
- while ($callerNode instanceof MethodCall && $callerNode->var instanceof MethodCall) {
- $callerNode = $callerNode->var;
- }
- if ($callerNode instanceof MethodCall) {
- return $callerNode;
- }
- return null;
- }
}
diff --git a/packages/PhpDocParser/TypeAwareNodeFinder.php b/packages/PhpDocParser/TypeAwareNodeFinder.php
deleted file mode 100644
index 5f8393dcc1b..00000000000
--- a/packages/PhpDocParser/TypeAwareNodeFinder.php
+++ /dev/null
@@ -1,46 +0,0 @@
-nodeFinder = new NodeFinder();
- }
- /**
- * @template TNode as Node
- *
- * @param mixed[]|\PhpParser\Node $nodes
- * @param class-string $type
- * @return TNode|null
- */
- public function findFirstInstanceOf($nodes, string $type) : ?Node
- {
- return $this->nodeFinder->findFirstInstanceOf($nodes, $type);
- }
- /**
- * @template TNode as Node
- *
- * @param mixed[]|\PhpParser\Node $nodes
- * @param class-string $type
- * @return TNode[]
- */
- public function findInstanceOf($nodes, string $type) : array
- {
- return $this->nodeFinder->findInstanceOf($nodes, $type);
- }
-}
diff --git a/packages/PhpDocParser/ValueObject/NodeBuilder/ClassBuilder.php b/packages/PhpDocParser/ValueObject/NodeBuilder/ClassBuilder.php
deleted file mode 100644
index a22be9c1697..00000000000
--- a/packages/PhpDocParser/ValueObject/NodeBuilder/ClassBuilder.php
+++ /dev/null
@@ -1,13 +0,0 @@
-valueResolver = $valueResolver;
- $this->nodeNameResolver = $nodeNameResolver;
- }
- public function isMethodCallWithServicesSetConfiguredRectorRule(MethodCall $methodCall) : bool
- {
- return $this->nodeNameResolver->isName($methodCall->name, 'configure');
- }
- public function isMethodCallWithServicesSetRectorRule(MethodCall $methodCall) : bool
- {
- if (!$this->isMethodCallNamed($methodCall, 'services', 'set')) {
- return \false;
- }
- $firstArg = $methodCall->getArgs()[0];
- $serviceClass = $this->valueResolver->getValue($firstArg->value);
- if (!\is_string($serviceClass)) {
- return \false;
- }
- return \is_a($serviceClass, RectorInterface::class, \true);
- }
- public function isMethodCallNamed(MethodCall $methodCall, string $variableName, string $methodName) : bool
- {
- if (!$this->nodeNameResolver->isName($methodCall->var, $variableName)) {
- return \false;
- }
- return $this->nodeNameResolver->isName($methodCall->name, $methodName);
- }
-}
diff --git a/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php b/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php
deleted file mode 100644
index 9085542c761..00000000000
--- a/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php
+++ /dev/null
@@ -1,69 +0,0 @@
-nodeNameResolver = $nodeNameResolver;
- $this->exprUsedInNextNodeAnalyzer = $exprUsedInNextNodeAnalyzer;
- }
- public function removeFromClosure(Closure $closure) : void
- {
- foreach ($closure->getStmts() as $key => $stmt) {
- if (!$this->isHelperAssign($stmt)) {
- continue;
- }
- /** @var Expression $expression */
- $expression = $closure->stmts[$key];
- /** @var Assign $assign */
- $assign = $expression->expr;
- /** @var Expr $var */
- $var = $assign->var;
- if ($this->exprUsedInNextNodeAnalyzer->isUsed($var)) {
- continue;
- }
- unset($closure->stmts[$key]);
- }
- }
- /**
- * Remove helper methods calls like:
- * $services = $containerConfigurator->services();
- * $parameters = $containerConfigurator->parameters();
- */
- private function isHelperAssign(Stmt $stmt) : bool
- {
- if (!$stmt instanceof Expression) {
- return \false;
- }
- $expression = $stmt->expr;
- if (!$expression instanceof Assign) {
- return \false;
- }
- if (!$expression->expr instanceof MethodCall) {
- return \false;
- }
- $methodCall = $expression->expr;
- return $this->nodeNameResolver->isNames($methodCall->name, ['parameters', 'services']);
- }
-}
diff --git a/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php b/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php
deleted file mode 100644
index 9f93280998a..00000000000
--- a/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php
+++ /dev/null
@@ -1,66 +0,0 @@
-nodeNameResolver = $nodeNameResolver;
- $this->nodeFactory = $nodeFactory;
- }
- public function merge(Closure $closure) : void
- {
- $setConstantFetches = [];
- $lastImportKey = null;
- foreach ($closure->getStmts() as $key => $stmt) {
- if (!$stmt instanceof Expression) {
- continue;
- }
- $expr = $stmt->expr;
- if (!$expr instanceof MethodCall) {
- continue;
- }
- if (!$this->nodeNameResolver->isName($expr->name, 'import')) {
- continue;
- }
- $importArg = $expr->getArgs();
- $argValue = $importArg[0]->value;
- if (!$argValue instanceof ClassConstFetch) {
- continue;
- }
- $setConstantFetches[] = $argValue;
- unset($closure->stmts[$key]);
- $lastImportKey = $key;
- }
- if ($setConstantFetches === []) {
- return;
- }
- $args = $this->nodeFactory->createArgs([$setConstantFetches]);
- $setsMethodCall = new MethodCall(new Variable(self::RECTOR_CONFIG_VARIABLE), 'sets', $args);
- $closure->stmts[$lastImportKey] = new Expression($setsMethodCall);
- \ksort($closure->stmts);
- }
-}
diff --git a/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php b/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php
deleted file mode 100644
index 0aa6ee6fb82..00000000000
--- a/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php
+++ /dev/null
@@ -1,234 +0,0 @@
-
- */
- private const PARAMETER_NAME_TO_METHOD_CALL_MAP = [Option::PATHS => 'paths', Option::SKIP => 'skip', Option::AUTOLOAD_PATHS => 'autoloadPaths', Option::BOOTSTRAP_FILES => 'bootstrapFiles', Option::IMPORT_SHORT_CLASSES => 'importShortClasses', Option::AUTO_IMPORT_NAMES => 'importNames', Option::PARALLEL => 'parallel', Option::PHPSTAN_FOR_RECTOR_PATH => 'phpstanConfig', Option::PHP_VERSION_FEATURES => 'phpVersion', Option::CACHE_CLASS => 'cacheClass', Option::CACHE_DIR => 'cacheDirectory', Option::NESTED_CHAIN_METHOD_CALL_LIMIT => 'nestedChainMethodCallLimit', Option::FILE_EXTENSIONS => 'fileExtensions', Option::SYMFONY_CONTAINER_PHP_PATH_PARAMETER => 'symfonyContainerPhp', Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER => 'symfonyContainerXml'];
- /**
- * @var string
- */
- private const RECTOR_CONFIG_VARIABLE = 'rectorConfig';
- /**
- * @var string
- */
- private const RECTOR_CONFIG_CLASS = 'Rector\\Config\\RectorConfig';
- /**
- * @var string
- */
- private const PARAMETERS_VARIABLE = 'parameters';
- /**
- * @var string
- */
- private const CONTAINER_CONFIGURATOR_CLASS = 'Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator';
- /**
- * @var string
- */
- private const SERVICE_CONFIGURATOR_CLASS = 'Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ServicesConfigurator';
- /**
- * @readonly
- * @var \Rector\DogFood\NodeAnalyzer\ContainerConfiguratorCallAnalyzer
- */
- private $containerConfiguratorCallAnalyzer;
- /**
- * @readonly
- * @var \Rector\DogFood\NodeManipulator\ContainerConfiguratorEmptyAssignRemover
- */
- private $containerConfiguratorEmptyAssignRemover;
- /**
- * @readonly
- * @var \Rector\DogFood\NodeManipulator\ContainerConfiguratorImportsMerger
- */
- private $containerConfiguratorImportsMerger;
- /**
- * @readonly
- * @var \Rector\Defluent\NodeAnalyzer\FluentChainMethodCallNodeAnalyzer
- */
- private $fluentChainMethodCallNodeAnalyzer;
- public function __construct(ContainerConfiguratorCallAnalyzer $containerConfiguratorCallAnalyzer, ContainerConfiguratorEmptyAssignRemover $containerConfiguratorEmptyAssignRemover, ContainerConfiguratorImportsMerger $containerConfiguratorImportsMerger, FluentChainMethodCallNodeAnalyzer $fluentChainMethodCallNodeAnalyzer)
- {
- $this->containerConfiguratorCallAnalyzer = $containerConfiguratorCallAnalyzer;
- $this->containerConfiguratorEmptyAssignRemover = $containerConfiguratorEmptyAssignRemover;
- $this->containerConfiguratorImportsMerger = $containerConfiguratorImportsMerger;
- $this->fluentChainMethodCallNodeAnalyzer = $fluentChainMethodCallNodeAnalyzer;
- }
- public function getRuleDefinition() : RuleDefinition
- {
- return new RuleDefinition('Upgrade rector.php config to use of RectorConfig', [new CodeSample(<<<'CODE_SAMPLE'
-use Rector\Core\Configuration\Option;
-use Rector\Php74\Rector\Property\TypedPropertyRector;
-use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
-
-return static function (ContainerConfigurator $containerConfigurator): void {
- $parameters = $containerConfigurator->parameters();
- $parameters->set(Option::PARALLEL, true);
- $parameters->set(Option::AUTO_IMPORT_NAMES, true);
-
- $services = $containerConfigurator->services();
- $services->set(TypedPropertyRector::class);
-};
-CODE_SAMPLE
-, <<<'CODE_SAMPLE'
-use Rector\Php74\Rector\Property\TypedPropertyRector;
-use Rector\Config\RectorConfig;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->parallel();
- $rectorConfig->importNames();
-
- $rectorConfig->rule(TypedPropertyRector::class);
-};
-CODE_SAMPLE
-)]);
- }
- /**
- * @return array>
- */
- public function getNodeTypes() : array
- {
- return [Closure::class];
- }
- /**
- * @param Closure $node
- */
- public function refactor(Node $node) : ?Node
- {
- if (!$this->isConfigClosure($node)) {
- return null;
- }
- $this->updateClosureParam($node);
- // 1. change import of sets to single sets() method call
- $this->containerConfiguratorImportsMerger->merge($node);
- $this->traverseNodesWithCallable($node->getStmts(), function (Node $node) : ?Node {
- if ($node instanceof Variable && $this->isName($node, 'containerConfigurator')) {
- return new Variable(self::RECTOR_CONFIG_VARIABLE);
- }
- // 2. call on rule
- if ($node instanceof MethodCall) {
- $nodeVarType = $this->nodeTypeResolver->getType($node->var);
- if ($nodeVarType instanceof FullyQualifiedObjectType && $nodeVarType->getClassName() === self::SERVICE_CONFIGURATOR_CLASS) {
- if ($this->isFoundFluentServiceCall($node)) {
- return null;
- }
- $isPossiblyServiceDefinition = (bool) $this->betterNodeFinder->findFirstPrevious($node, function (Node $node) : bool {
- return $this->isFoundFluentServiceCall($node);
- });
- if ($isPossiblyServiceDefinition) {
- return null;
- }
- }
- if ($this->containerConfiguratorCallAnalyzer->isMethodCallWithServicesSetConfiguredRectorRule($node)) {
- return $this->refactorConfigureRuleMethodCall($node);
- }
- // look for "$services->set(SomeRector::Class)"
- if ($this->containerConfiguratorCallAnalyzer->isMethodCallWithServicesSetRectorRule($node)) {
- $node->var = new Variable(self::RECTOR_CONFIG_VARIABLE);
- $node->name = new Identifier('rule');
- return $node;
- }
- if ($this->containerConfiguratorCallAnalyzer->isMethodCallNamed($node, self::PARAMETERS_VARIABLE, 'set')) {
- return $this->refactorParameterName($node);
- }
- }
- return null;
- });
- $this->containerConfiguratorEmptyAssignRemover->removeFromClosure($node);
- return $node;
- }
- public function updateClosureParam(Closure $closure) : void
- {
- $param = $closure->params[0];
- if (!$param->type instanceof Name) {
- return;
- }
- // update closure params
- if (!$this->nodeNameResolver->isName($param->type, self::RECTOR_CONFIG_CLASS)) {
- $param->type = new FullyQualified(self::RECTOR_CONFIG_CLASS);
- }
- if (!$this->nodeNameResolver->isName($param->var, self::RECTOR_CONFIG_VARIABLE)) {
- $param->var = new Variable(self::RECTOR_CONFIG_VARIABLE);
- }
- }
- public function isConfigClosure(Closure $closure) : bool
- {
- $params = $closure->getParams();
- if (\count($params) !== 1) {
- return \false;
- }
- $onlyParam = $params[0];
- $paramType = $onlyParam->type;
- if (!$paramType instanceof Name) {
- return \false;
- }
- return $this->isNames($paramType, [self::CONTAINER_CONFIGURATOR_CLASS, self::RECTOR_CONFIG_CLASS]);
- }
- private function isFoundFluentServiceCall(Node $node) : bool
- {
- if (!$node instanceof MethodCall) {
- return \false;
- }
- $chains = $this->fluentChainMethodCallNodeAnalyzer->collectMethodCallNamesInChain($node);
- return \count($chains) > 1;
- }
- /**
- * @param Arg[] $args
- */
- private function isNonFalseOption(array $args, string $optionName) : bool
- {
- if (!$this->valueResolver->isValue($args[0]->value, $optionName)) {
- return \false;
- }
- return !$this->valueResolver->isFalse($args[1]->value);
- }
- private function refactorConfigureRuleMethodCall(MethodCall $methodCall) : ?\PhpParser\Node\Expr\MethodCall
- {
- $caller = $methodCall->var;
- if (!$caller instanceof MethodCall) {
- return null;
- }
- if (!$this->containerConfiguratorCallAnalyzer->isMethodCallWithServicesSetRectorRule($caller)) {
- return null;
- }
- $methodCall->var = new Variable(self::RECTOR_CONFIG_VARIABLE);
- $methodCall->name = new Identifier('ruleWithConfiguration');
- $methodCall->args = \array_merge($caller->getArgs(), $methodCall->getArgs());
- return $methodCall;
- }
- private function refactorParameterName(MethodCall $methodCall) : ?MethodCall
- {
- $args = $methodCall->getArgs();
- foreach (self::PARAMETER_NAME_TO_METHOD_CALL_MAP as $parameterName => $methodName) {
- if (!$this->isNonFalseOption($args, $parameterName)) {
- continue;
- }
- $args = $this->valueResolver->isTrueOrFalse($args[1]->value) ? [] : [$args[1]];
- return new MethodCall(new Variable(self::RECTOR_CONFIG_VARIABLE), $methodName, $args);
- }
- return null;
- }
-}
diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php
index c3139a943dd..45d83ff2e2b 100644
--- a/src/Application/VersionResolver.php
+++ b/src/Application/VersionResolver.php
@@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
- public const PACKAGE_VERSION = 'bb59a7c99ad30770689fe011c89377402bf6c7ba';
+ public const PACKAGE_VERSION = '74f6b181e82f191c1e471d446a029a06dff16619';
/**
* @api
* @var string
*/
- public const RELEASE_DATE = '2022-08-29 22:44:20';
+ public const RELEASE_DATE = '2022-08-29 23:41:18';
/**
* @var int
*/
diff --git a/vendor/autoload.php b/vendor/autoload.php
index 32102c0f99b..ef2c4aeacbe 100644
--- a/vendor/autoload.php
+++ b/vendor/autoload.php
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
-return ComposerAutoloaderInitc882d4358abcd96633d7efdc3bcb1930::getLoader();
+return ComposerAutoloaderInit6fbd778a432c95223d21b3e7c10c4d3b::getLoader();
diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php
index 12846765752..97e240e77cc 100644
--- a/vendor/composer/autoload_classmap.php
+++ b/vendor/composer/autoload_classmap.php
@@ -1740,10 +1740,6 @@ return array(
'Rector\\Doctrine\\ValueObject\\DefaultAnnotationArgValue' => $vendorDir . '/rector/rector-doctrine/src/ValueObject/DefaultAnnotationArgValue.php',
'Rector\\Doctrine\\ValueObject\\PropertyNameAndPhpDocInfo' => $vendorDir . '/rector/rector-doctrine/src/ValueObject/PropertyNameAndPhpDocInfo.php',
'Rector\\Doctrine\\ValueObject\\PropertyNamesAndPhpDocInfos' => $vendorDir . '/rector/rector-doctrine/src/ValueObject/PropertyNamesAndPhpDocInfos.php',
- 'Rector\\DogFood\\NodeAnalyzer\\ContainerConfiguratorCallAnalyzer' => $baseDir . '/rules/DogFood/NodeAnalyzer/ContainerConfiguratorCallAnalyzer.php',
- 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorEmptyAssignRemover' => $baseDir . '/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php',
- 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorImportsMerger' => $baseDir . '/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php',
- 'Rector\\DogFood\\Rector\\Closure\\UpgradeRectorConfigRector' => $baseDir . '/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php',
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
@@ -1924,7 +1920,6 @@ return array(
'Rector\\Laravel\\Rector\\MethodCall\\LumenRoutesStringMiddlewareToArrayRector' => $vendorDir . '/rector/rector-laravel/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php',
'Rector\\Laravel\\Rector\\MethodCall\\RedirectBackToBackHelperRector' => $vendorDir . '/rector/rector-laravel/src/Rector/MethodCall/RedirectBackToBackHelperRector.php',
'Rector\\Laravel\\Rector\\MethodCall\\RedirectRouteToToRouteHelperRector' => $vendorDir . '/rector/rector-laravel/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php',
- 'Rector\\Laravel\\Rector\\MethodCall\\RemoveAllOnDispatchingMethodsWithJobChainingRector' => $vendorDir . '/rector/rector-laravel/src/Rector/MethodCall/RemoveAllOnDispatchingMethodsWithJobChainingRector.php',
'Rector\\Laravel\\Rector\\Namespace_\\FactoryDefinitionRector' => $vendorDir . '/rector/rector-laravel/src/Rector/Namespace_/FactoryDefinitionRector.php',
'Rector\\Laravel\\Rector\\New_\\AddGuardToLoginEventRector' => $vendorDir . '/rector/rector-laravel/src/Rector/New_/AddGuardToLoginEventRector.php',
'Rector\\Laravel\\Rector\\PropertyFetch\\OptionalToNullsafeOperatorRector' => $vendorDir . '/rector/rector-laravel/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php',
@@ -2420,15 +2415,7 @@ return array(
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParser' => $baseDir . '/packages/PhpDocParser/PhpParser/SmartPhpParser.php',
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParserFactory' => $baseDir . '/packages/PhpDocParser/PhpParser/SmartPhpParserFactory.php',
'Rector\\PhpDocParser\\TypeAnalyzer\\ClassMethodReturnTypeResolver' => $baseDir . '/packages/PhpDocParser/TypeAnalyzer/ClassMethodReturnTypeResolver.php',
- 'Rector\\PhpDocParser\\TypeAwareNodeFinder' => $baseDir . '/packages/PhpDocParser/TypeAwareNodeFinder.php',
'Rector\\PhpDocParser\\ValueObject\\AttributeKey' => $baseDir . '/packages/PhpDocParser/ValueObject/AttributeKey.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\ClassBuilder' => $baseDir . '/packages/PhpDocParser/ValueObject/NodeBuilder/ClassBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\MethodBuilder' => $baseDir . '/packages/PhpDocParser/ValueObject/NodeBuilder/MethodBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\NamespaceBuilder' => $baseDir . '/packages/PhpDocParser/ValueObject/NodeBuilder/NamespaceBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\ParamBuilder' => $baseDir . '/packages/PhpDocParser/ValueObject/NodeBuilder/ParamBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\PropertyBuilder' => $baseDir . '/packages/PhpDocParser/ValueObject/NodeBuilder/PropertyBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\TraitUseBuilder' => $baseDir . '/packages/PhpDocParser/ValueObject/NodeBuilder/TraitUseBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\UseBuilder' => $baseDir . '/packages/PhpDocParser/ValueObject/NodeBuilder/UseBuilder.php',
'Rector\\PostRector\\Application\\PostFileProcessor' => $baseDir . '/packages/PostRector/Application/PostFileProcessor.php',
'Rector\\PostRector\\Collector\\NodesToAddCollector' => $baseDir . '/packages/PostRector/Collector/NodesToAddCollector.php',
'Rector\\PostRector\\Collector\\NodesToRemoveCollector' => $baseDir . '/packages/PostRector/Collector/NodesToRemoveCollector.php',
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php
index c5485e985ed..b02e569eb49 100644
--- a/vendor/composer/autoload_real.php
+++ b/vendor/composer/autoload_real.php
@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
-class ComposerAutoloaderInitc882d4358abcd96633d7efdc3bcb1930
+class ComposerAutoloaderInit6fbd778a432c95223d21b3e7c10c4d3b
{
private static $loader;
@@ -22,19 +22,19 @@ class ComposerAutoloaderInitc882d4358abcd96633d7efdc3bcb1930
return self::$loader;
}
- spl_autoload_register(array('ComposerAutoloaderInitc882d4358abcd96633d7efdc3bcb1930', 'loadClassLoader'), true, true);
+ spl_autoload_register(array('ComposerAutoloaderInit6fbd778a432c95223d21b3e7c10c4d3b', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
- spl_autoload_unregister(array('ComposerAutoloaderInitc882d4358abcd96633d7efdc3bcb1930', 'loadClassLoader'));
+ spl_autoload_unregister(array('ComposerAutoloaderInit6fbd778a432c95223d21b3e7c10c4d3b', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
- call_user_func(\Composer\Autoload\ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930::getInitializer($loader));
+ call_user_func(\Composer\Autoload\ComposerStaticInit6fbd778a432c95223d21b3e7c10c4d3b::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
- $includeFiles = \Composer\Autoload\ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930::$files;
+ $includeFiles = \Composer\Autoload\ComposerStaticInit6fbd778a432c95223d21b3e7c10c4d3b::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
- composerRequirec882d4358abcd96633d7efdc3bcb1930($fileIdentifier, $file);
+ composerRequire6fbd778a432c95223d21b3e7c10c4d3b($fileIdentifier, $file);
}
return $loader;
@@ -46,7 +46,7 @@ class ComposerAutoloaderInitc882d4358abcd96633d7efdc3bcb1930
* @param string $file
* @return void
*/
-function composerRequirec882d4358abcd96633d7efdc3bcb1930($fileIdentifier, $file)
+function composerRequire6fbd778a432c95223d21b3e7c10c4d3b($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 af09e61a710..23e73feb28f 100644
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -4,7 +4,7 @@
namespace Composer\Autoload;
-class ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930
+class ComposerStaticInit6fbd778a432c95223d21b3e7c10c4d3b
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@@ -2025,10 +2025,6 @@ class ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930
'Rector\\Doctrine\\ValueObject\\DefaultAnnotationArgValue' => __DIR__ . '/..' . '/rector/rector-doctrine/src/ValueObject/DefaultAnnotationArgValue.php',
'Rector\\Doctrine\\ValueObject\\PropertyNameAndPhpDocInfo' => __DIR__ . '/..' . '/rector/rector-doctrine/src/ValueObject/PropertyNameAndPhpDocInfo.php',
'Rector\\Doctrine\\ValueObject\\PropertyNamesAndPhpDocInfos' => __DIR__ . '/..' . '/rector/rector-doctrine/src/ValueObject/PropertyNamesAndPhpDocInfos.php',
- 'Rector\\DogFood\\NodeAnalyzer\\ContainerConfiguratorCallAnalyzer' => __DIR__ . '/../..' . '/rules/DogFood/NodeAnalyzer/ContainerConfiguratorCallAnalyzer.php',
- 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorEmptyAssignRemover' => __DIR__ . '/../..' . '/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php',
- 'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorImportsMerger' => __DIR__ . '/../..' . '/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php',
- 'Rector\\DogFood\\Rector\\Closure\\UpgradeRectorConfigRector' => __DIR__ . '/../..' . '/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php',
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
@@ -2209,7 +2205,6 @@ class ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930
'Rector\\Laravel\\Rector\\MethodCall\\LumenRoutesStringMiddlewareToArrayRector' => __DIR__ . '/..' . '/rector/rector-laravel/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php',
'Rector\\Laravel\\Rector\\MethodCall\\RedirectBackToBackHelperRector' => __DIR__ . '/..' . '/rector/rector-laravel/src/Rector/MethodCall/RedirectBackToBackHelperRector.php',
'Rector\\Laravel\\Rector\\MethodCall\\RedirectRouteToToRouteHelperRector' => __DIR__ . '/..' . '/rector/rector-laravel/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php',
- 'Rector\\Laravel\\Rector\\MethodCall\\RemoveAllOnDispatchingMethodsWithJobChainingRector' => __DIR__ . '/..' . '/rector/rector-laravel/src/Rector/MethodCall/RemoveAllOnDispatchingMethodsWithJobChainingRector.php',
'Rector\\Laravel\\Rector\\Namespace_\\FactoryDefinitionRector' => __DIR__ . '/..' . '/rector/rector-laravel/src/Rector/Namespace_/FactoryDefinitionRector.php',
'Rector\\Laravel\\Rector\\New_\\AddGuardToLoginEventRector' => __DIR__ . '/..' . '/rector/rector-laravel/src/Rector/New_/AddGuardToLoginEventRector.php',
'Rector\\Laravel\\Rector\\PropertyFetch\\OptionalToNullsafeOperatorRector' => __DIR__ . '/..' . '/rector/rector-laravel/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php',
@@ -2705,15 +2700,7 @@ class ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParser' => __DIR__ . '/../..' . '/packages/PhpDocParser/PhpParser/SmartPhpParser.php',
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParserFactory' => __DIR__ . '/../..' . '/packages/PhpDocParser/PhpParser/SmartPhpParserFactory.php',
'Rector\\PhpDocParser\\TypeAnalyzer\\ClassMethodReturnTypeResolver' => __DIR__ . '/../..' . '/packages/PhpDocParser/TypeAnalyzer/ClassMethodReturnTypeResolver.php',
- 'Rector\\PhpDocParser\\TypeAwareNodeFinder' => __DIR__ . '/../..' . '/packages/PhpDocParser/TypeAwareNodeFinder.php',
'Rector\\PhpDocParser\\ValueObject\\AttributeKey' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/AttributeKey.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\ClassBuilder' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/NodeBuilder/ClassBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\MethodBuilder' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/NodeBuilder/MethodBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\NamespaceBuilder' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/NodeBuilder/NamespaceBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\ParamBuilder' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/NodeBuilder/ParamBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\PropertyBuilder' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/NodeBuilder/PropertyBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\TraitUseBuilder' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/NodeBuilder/TraitUseBuilder.php',
- 'Rector\\PhpDocParser\\ValueObject\\NodeBuilder\\UseBuilder' => __DIR__ . '/../..' . '/packages/PhpDocParser/ValueObject/NodeBuilder/UseBuilder.php',
'Rector\\PostRector\\Application\\PostFileProcessor' => __DIR__ . '/../..' . '/packages/PostRector/Application/PostFileProcessor.php',
'Rector\\PostRector\\Collector\\NodesToAddCollector' => __DIR__ . '/../..' . '/packages/PostRector/Collector/NodesToAddCollector.php',
'Rector\\PostRector\\Collector\\NodesToRemoveCollector' => __DIR__ . '/../..' . '/packages/PostRector/Collector/NodesToRemoveCollector.php',
@@ -3205,9 +3192,9 @@ class ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
- $loader->prefixLengthsPsr4 = ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930::$prefixLengthsPsr4;
- $loader->prefixDirsPsr4 = ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930::$prefixDirsPsr4;
- $loader->classMap = ComposerStaticInitc882d4358abcd96633d7efdc3bcb1930::$classMap;
+ $loader->prefixLengthsPsr4 = ComposerStaticInit6fbd778a432c95223d21b3e7c10c4d3b::$prefixLengthsPsr4;
+ $loader->prefixDirsPsr4 = ComposerStaticInit6fbd778a432c95223d21b3e7c10c4d3b::$prefixDirsPsr4;
+ $loader->classMap = ComposerStaticInit6fbd778a432c95223d21b3e7c10c4d3b::$classMap;
}, null, ClassLoader::class);
}
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index 5c3534342ad..18bf3ad4110 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1853,12 +1853,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
- "reference": "644498fcf6e9904a39f48874252361f40a75d63c"
+ "reference": "ccb870f41d2177572841b4a3779bf72eb6ec73a1"
},
"dist": {
"type": "zip",
- "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/644498fcf6e9904a39f48874252361f40a75d63c",
- "reference": "644498fcf6e9904a39f48874252361f40a75d63c",
+ "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/ccb870f41d2177572841b4a3779bf72eb6ec73a1",
+ "reference": "ccb870f41d2177572841b4a3779bf72eb6ec73a1",
"shasum": ""
},
"require": {
@@ -1875,6 +1875,7 @@
"phpstan\/phpstan-webmozart-assert": "^1.0",
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5.15",
+ "rector\/rector-generator": "^0.6.10",
"rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^11.0",
"symplify\/monorepo-builder": "^11.1",
@@ -1883,7 +1884,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
- "time": "2022-08-29T20:16:53+00:00",
+ "time": "2022-08-29T20:58:40+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@@ -1991,12 +1992,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-laravel.git",
- "reference": "30f93ff57c00a7726d3e4a7e3d135ed47852db56"
+ "reference": "815de8ff73570a4b22712c65fbaa8fa8c72eb523"
},
"dist": {
"type": "zip",
- "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/30f93ff57c00a7726d3e4a7e3d135ed47852db56",
- "reference": "30f93ff57c00a7726d3e4a7e3d135ed47852db56",
+ "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/815de8ff73570a4b22712c65fbaa8fa8c72eb523",
+ "reference": "815de8ff73570a4b22712c65fbaa8fa8c72eb523",
"shasum": ""
},
"require": {
@@ -2020,7 +2021,7 @@
"symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^11.0"
},
- "time": "2022-08-29T20:15:47+00:00",
+ "time": "2022-08-29T20:57:15+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@@ -2125,12 +2126,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
- "reference": "caef0bf0bd278878069d88193d3db4ff0c5eea55"
+ "reference": "197905062a1d5ad10cf3ee9d3019a472b940dc96"
},
"dist": {
"type": "zip",
- "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/caef0bf0bd278878069d88193d3db4ff0c5eea55",
- "reference": "caef0bf0bd278878069d88193d3db4ff0c5eea55",
+ "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/197905062a1d5ad10cf3ee9d3019a472b940dc96",
+ "reference": "197905062a1d5ad10cf3ee9d3019a472b940dc96",
"shasum": ""
},
"require": {
@@ -2146,6 +2147,7 @@
"phpstan\/phpstan-webmozart-assert": "^1.1",
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5.15",
+ "rector\/rector-generator": "^0.6.10",
"rector\/rector-src": "dev-main",
"symplify\/easy-ci": "^11.0",
"symplify\/easy-coding-standard": "^11.0",
@@ -2155,7 +2157,7 @@
"symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^11.0"
},
- "time": "2022-08-29T20:18:09+00:00",
+ "time": "2022-08-29T20:58:05+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@@ -2193,12 +2195,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
- "reference": "07ac609f3347aeefb6495d90277de550a4fd7639"
+ "reference": "71a68282e8b6ba6b677dfee1f0da07bdc66465b9"
},
"dist": {
"type": "zip",
- "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/07ac609f3347aeefb6495d90277de550a4fd7639",
- "reference": "07ac609f3347aeefb6495d90277de550a4fd7639",
+ "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/71a68282e8b6ba6b677dfee1f0da07bdc66465b9",
+ "reference": "71a68282e8b6ba6b677dfee1f0da07bdc66465b9",
"shasum": ""
},
"require": {
@@ -2216,6 +2218,7 @@
"phpstan\/phpstan-webmozart-assert": "^1.2",
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5.16",
+ "rector\/rector-generator": "^0.6.10",
"rector\/rector-src": "dev-main",
"symfony\/routing": "^6.1",
"symfony\/security-core": "^6.1",
@@ -2227,7 +2230,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
- "time": "2022-08-29T20:19:30+00:00",
+ "time": "2022-08-29T20:59:33+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php
index a3ffba6375f..a1d9c59589b 100644
--- a/vendor/composer/installed.php
+++ b/vendor/composer/installed.php
@@ -2,4 +2,4 @@
namespace RectorPrefix202208;
-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.14.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '708411c7e45ac85371a99d50f52284971494bede', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', '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.4', 'version' => '2.0.4.0', 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', '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), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.14.0', 'version' => '4.14.0.0', 'reference' => '34bea19b6e03d8153165d8f30bba4c3be86184c1', '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.7.0', 'version' => '1.7.0.0', 'reference' => '367a8d9d5f7da2a0136422d27ce8840583926955', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.2', 'version' => '1.8.2.0', 'reference' => 'c53312ecc575caf07b0e90dee43883fdf90ca67c', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', '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.1.1', 'version' => '1.1.1.0', 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', '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.14.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c2ec06c0b51a41f1469b88539170b94b2bc0b9ef', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-cakephp', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '644498fcf6e9904a39f48874252361f40a75d63c', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '60db04f2de42ef4d280096b3b0dd37bf70601558', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '30f93ff57c00a7726d3e4a7e3d135ed47852db56', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3638a6672dab07562bc4dd1bd0c18ced6763d0c2', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpoffice', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'caef0bf0bd278878069d88193d3db4ff0c5eea55', '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.14.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '07ac609f3347aeefb6495d90277de550a4fd7639', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/config' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'a0645dc585d378b73c01115dd7ab9348f7d40c85', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '7fccea8728aa2d431a6725b02b3ce759049fc84d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.1.1', 'version' => '3.1.1.0', 'reference' => '8656c9e7f44435eaf428f2aa7f083c65297fb22f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '079e336a1880f457b219aecc3d41bef2f1093b0b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '3f39c04d2630c34019907b02f85672dac99f8659', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '39696bff2c2970b3779a5cac7bf9f0b88fc2b709', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), '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.26.0', 'version' => '1.26.0.0', 'reference' => '219aa369ceff116e673852dce47c3a41794c14bd', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '290972cad7b364e3befaa74ba0ec729800fb161c', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symplify/autowire-array-parameter' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '4498424853e5e88a6217432325c58074a49b2076', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '5af372a577cbc0fe53075d3ea4224982ba07ef46', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.5', 'version' => '11.1.5.0', 'reference' => 'ba80c5d7367f32c422035a038d0f2a7134c9a68c', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-testing' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '87867113755e51f263e244a3694b5078b9ad2cae', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c2474cabfafe9454299e94cb0eb5dad4f51c37f6', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'f4074ed2899e041a2422a70d2d8fb25c9346d0d5', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '11.1.5', 'version' => '11.1.5.0', 'reference' => 'd8d409e230ce54e04dbad39be20973689c11b237', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/skipper', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/smart-file-system' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '820cadad467f72d512ec77d249ad91d1607f1c2d', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '13750407bfc0f9d87661908330368a22bc473251', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(0 => '11.2.x-dev'), '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.14.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '708411c7e45ac85371a99d50f52284971494bede', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', '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.4', 'version' => '2.0.4.0', 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', '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), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.14.0', 'version' => '4.14.0.0', 'reference' => '34bea19b6e03d8153165d8f30bba4c3be86184c1', '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.7.0', 'version' => '1.7.0.0', 'reference' => '367a8d9d5f7da2a0136422d27ce8840583926955', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.2', 'version' => '1.8.2.0', 'reference' => 'c53312ecc575caf07b0e90dee43883fdf90ca67c', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', '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.1.1', 'version' => '1.1.1.0', 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', '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.14.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c2ec06c0b51a41f1469b88539170b94b2bc0b9ef', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-cakephp', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'ccb870f41d2177572841b4a3779bf72eb6ec73a1', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '60db04f2de42ef4d280096b3b0dd37bf70601558', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '815de8ff73570a4b22712c65fbaa8fa8c72eb523', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3638a6672dab07562bc4dd1bd0c18ced6763d0c2', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpoffice', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '197905062a1d5ad10cf3ee9d3019a472b940dc96', '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.14.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '71a68282e8b6ba6b677dfee1f0da07bdc66465b9', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/config' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'a0645dc585d378b73c01115dd7ab9348f7d40c85', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '7fccea8728aa2d431a6725b02b3ce759049fc84d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.1.1', 'version' => '3.1.1.0', 'reference' => '8656c9e7f44435eaf428f2aa7f083c65297fb22f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '079e336a1880f457b219aecc3d41bef2f1093b0b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '3f39c04d2630c34019907b02f85672dac99f8659', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '39696bff2c2970b3779a5cac7bf9f0b88fc2b709', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), '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.26.0', 'version' => '1.26.0.0', 'reference' => '219aa369ceff116e673852dce47c3a41794c14bd', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '290972cad7b364e3befaa74ba0ec729800fb161c', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symplify/autowire-array-parameter' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '4498424853e5e88a6217432325c58074a49b2076', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '5af372a577cbc0fe53075d3ea4224982ba07ef46', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.5', 'version' => '11.1.5.0', 'reference' => 'ba80c5d7367f32c422035a038d0f2a7134c9a68c', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-testing' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '87867113755e51f263e244a3694b5078b9ad2cae', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'c2474cabfafe9454299e94cb0eb5dad4f51c37f6', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'f4074ed2899e041a2422a70d2d8fb25c9346d0d5', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '11.1.5', 'version' => '11.1.5.0', 'reference' => 'd8d409e230ce54e04dbad39be20973689c11b237', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/skipper', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/smart-file-system' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '820cadad467f72d512ec77d249ad91d1607f1c2d', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(0 => '11.2.x-dev'), 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '13750407bfc0f9d87661908330368a22bc473251', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(0 => '11.2.x-dev'), '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 dbe78db632f..981b4c9bc43 100644
--- a/vendor/rector/extension-installer/src/GeneratedConfig.php
+++ b/vendor/rector/extension-installer/src/GeneratedConfig.php
@@ -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 c2ec06c'), '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 644498f'), '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 60db04f'), '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 30f93ff'), '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 3638a66'), '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 caef0bf'), '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 07ac609'));
+ 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 c2ec06c'), '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 ccb870f'), '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 60db04f'), '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 815de8f'), '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 3638a66'), '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 1979050'), '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 71a6828'));
private function __construct()
{
}
diff --git a/vendor/rector/rector-doctrine/composer.json b/vendor/rector/rector-doctrine/composer.json
index 02c60931b52..5d748c18b50 100644
--- a/vendor/rector/rector-doctrine/composer.json
+++ b/vendor/rector/rector-doctrine/composer.json
@@ -20,7 +20,8 @@
"symplify\/monorepo-builder": "^11.1",
"phpstan\/phpstan-webmozart-assert": "^1.0",
"phpstan\/phpstan-strict-rules": "^1.1",
- "symplify\/vendor-patches": "^11.1"
+ "symplify\/vendor-patches": "^11.1",
+ "rector\/rector-generator": "^0.6.10"
},
"autoload": {
"psr-4": {
diff --git a/vendor/rector/rector-doctrine/src/NodeFactory/ConstructClassMethodFactory.php b/vendor/rector/rector-doctrine/src/NodeFactory/ConstructClassMethodFactory.php
index e352961f8ea..5b533e6e271 100644
--- a/vendor/rector/rector-doctrine/src/NodeFactory/ConstructClassMethodFactory.php
+++ b/vendor/rector/rector-doctrine/src/NodeFactory/ConstructClassMethodFactory.php
@@ -3,6 +3,7 @@
declare (strict_types=1);
namespace Rector\Doctrine\NodeFactory;
+use PhpParser\Builder\Method;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Expr\Variable;
@@ -14,7 +15,6 @@ use PhpParser\Node\Stmt\Property;
use Rector\Core\ValueObject\MethodName;
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\NodeTypeResolver;
-use Rector\PhpDocParser\ValueObject\NodeBuilder\MethodBuilder;
use Rector\PHPStanStaticTypeMapper\Enum\TypeKind;
use Rector\StaticTypeMapper\StaticTypeMapper;
final class ConstructClassMethodFactory
@@ -54,11 +54,11 @@ final class ConstructClassMethodFactory
$params[] = $this->createParam($publicProperty, $propertyName);
$assigns[] = $this->createAssign($propertyName);
}
- $methodBuilder = new MethodBuilder(MethodName::CONSTRUCT);
- $methodBuilder->makePublic();
- $methodBuilder->addParams($params);
- $methodBuilder->addStmts($assigns);
- return $methodBuilder->getNode();
+ $method = new Method(MethodName::CONSTRUCT);
+ $method->makePublic();
+ $method->addParams($params);
+ $method->addStmts($assigns);
+ return $method->getNode();
}
/**
* @return Property[]
diff --git a/vendor/rector/rector-laravel/config/sets/laravel80.php b/vendor/rector/rector-laravel/config/sets/laravel80.php
index 5ad0fb3d230..7353ae0cb75 100644
--- a/vendor/rector/rector-laravel/config/sets/laravel80.php
+++ b/vendor/rector/rector-laravel/config/sets/laravel80.php
@@ -10,7 +10,6 @@ use Rector\Arguments\ValueObject\ArgumentAdder;
use Rector\Config\RectorConfig;
use Rector\Laravel\Rector\ClassMethod\AddArgumentDefaultValueRector;
use Rector\Laravel\Rector\ClassMethod\AddParentRegisterToEventServiceProviderRector;
-use Rector\Laravel\Rector\MethodCall\RemoveAllOnDispatchingMethodsWithJobChainingRector;
use Rector\Laravel\ValueObject\AddArgumentDefaultValue;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\Rector\PropertyFetch\RenamePropertyRector;
@@ -52,6 +51,4 @@ return static function (RectorConfig $rectorConfig) : void {
# https://github.com/laravel/framework/commit/fd662d4699776a94e7ead2a42e82c340363fc5a6
new MethodCallRename('Illuminate\\Testing\\TestResponse', 'assertExactJson', 'assertSimilarJson'),
]);
- # https://github.com/laravel/framework/commit/de662daf75207a8dd69565ed3630def74bc538d3
- $rectorConfig->rule(RemoveAllOnDispatchingMethodsWithJobChainingRector::class);
};
diff --git a/vendor/rector/rector-laravel/docs/rector_rules_overview.md b/vendor/rector/rector-laravel/docs/rector_rules_overview.md
index 20cf4719ea2..ee03a56f64e 100644
--- a/vendor/rector/rector-laravel/docs/rector_rules_overview.md
+++ b/vendor/rector/rector-laravel/docs/rector_rules_overview.md
@@ -1,4 +1,4 @@
-# 26 Rules Overview
+# 25 Rules Overview
## AddArgumentDefaultValueRector
@@ -468,26 +468,6 @@ Replace `redirect()->route("home")` and `Redirect::route("home")` with `to_route
-## RemoveAllOnDispatchingMethodsWithJobChainingRector
-
-Remove `allOnQueue()` and `allOnConnection()` methods used with job chaining, use the `onQueue()` and `onConnection()` methods instead.
-
-- class: [`Rector\Laravel\Rector\MethodCall\RemoveAllOnDispatchingMethodsWithJobChainingRector`](../src/Rector/MethodCall/RemoveAllOnDispatchingMethodsWithJobChainingRector.php)
-
-```diff
- Job::withChain([
- new ChainJob(),
- ])
-- ->dispatch()
-- ->allOnConnection('redis')
-- ->allOnQueue('podcasts');
-+ ->onQueue('podcasts')
-+ ->onConnection('redis')
-+ ->dispatch();
-```
-
-
-
## RemoveDumpDataDeadCodeRector
It will removes the dump data just like dd or dump functions from the code.`
diff --git a/vendor/rector/rector-laravel/src/NodeFactory/ModelFactoryNodeFactory.php b/vendor/rector/rector-laravel/src/NodeFactory/ModelFactoryNodeFactory.php
index 4971722cfc6..697a9b74930 100644
--- a/vendor/rector/rector-laravel/src/NodeFactory/ModelFactoryNodeFactory.php
+++ b/vendor/rector/rector-laravel/src/NodeFactory/ModelFactoryNodeFactory.php
@@ -3,6 +3,8 @@
declare (strict_types=1);
namespace Rector\Laravel\NodeFactory;
+use PhpParser\Builder\Method;
+use PhpParser\Builder\Property;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr;
@@ -21,8 +23,6 @@ use Rector\Core\PhpParser\Node\NodeFactory;
use Rector\Core\PhpParser\Node\Value\ValueResolver;
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
-use Rector\PhpDocParser\ValueObject\NodeBuilder\MethodBuilder;
-use Rector\PhpDocParser\ValueObject\NodeBuilder\PropertyBuilder;
final class ModelFactoryNodeFactory
{
/**
@@ -60,7 +60,7 @@ final class ModelFactoryNodeFactory
{
$class = new Class_($name . 'Factory');
$class->extends = new FullyQualified('Illuminate\\Database\\Eloquent\\Factories\\Factory');
- $propertyBuilder = new PropertyBuilder('model');
+ $propertyBuilder = new Property('model');
$propertyBuilder->makeProtected();
$propertyBuilder->setDefault($expr);
$property = $propertyBuilder->getNode();
@@ -155,9 +155,9 @@ final class ModelFactoryNodeFactory
*/
private function createPublicMethod(string $name, array $stmts) : ClassMethod
{
- $methodBuilder = new MethodBuilder($name);
- $methodBuilder->makePublic();
- $methodBuilder->addStmts($stmts);
- return $methodBuilder->getNode();
+ $method = new Method($name);
+ $method->makePublic();
+ $method->addStmts($stmts);
+ return $method->getNode();
}
}
diff --git a/vendor/rector/rector-laravel/src/Rector/Class_/UnifyModelDatesWithCastsRector.php b/vendor/rector/rector-laravel/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
index 98231ffceb8..04390b40318 100644
--- a/vendor/rector/rector-laravel/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
+++ b/vendor/rector/rector-laravel/src/Rector/Class_/UnifyModelDatesWithCastsRector.php
@@ -12,7 +12,6 @@ use PhpParser\Node\Stmt\Property;
use PHPStan\Type\ObjectType;
use Rector\Core\NodeManipulator\ClassInsertManipulator;
use Rector\Core\Rector\AbstractRector;
-use Rector\PhpDocParser\ValueObject\NodeBuilder\PropertyBuilder;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
use RectorPrefix202208\Webmozart\Assert\Assert;
@@ -110,7 +109,7 @@ CODE_SAMPLE
}
private function createCastsProperty() : Property
{
- $propertyBuilder = new PropertyBuilder('casts');
+ $propertyBuilder = new \PhpParser\Builder\Property('casts');
$propertyBuilder->makeProtected();
$propertyBuilder->setDefault([]);
$property = $propertyBuilder->getNode();
diff --git a/vendor/rector/rector-laravel/src/Rector/MethodCall/RemoveAllOnDispatchingMethodsWithJobChainingRector.php b/vendor/rector/rector-laravel/src/Rector/MethodCall/RemoveAllOnDispatchingMethodsWithJobChainingRector.php
deleted file mode 100644
index 6701271e443..00000000000
--- a/vendor/rector/rector-laravel/src/Rector/MethodCall/RemoveAllOnDispatchingMethodsWithJobChainingRector.php
+++ /dev/null
@@ -1,104 +0,0 @@
-
- */
- private const SWAPPED_METHODS = ['allOnQueue' => 'onQueue', 'allOnConnection' => 'onConnection'];
- /**
- * @readonly
- * @var \Rector\Defluent\NodeAnalyzer\FluentChainMethodCallNodeAnalyzer
- */
- private $fluentChainMethodCallNodeAnalyzer;
- public function __construct(FluentChainMethodCallNodeAnalyzer $fluentChainMethodCallNodeAnalyzer)
- {
- $this->fluentChainMethodCallNodeAnalyzer = $fluentChainMethodCallNodeAnalyzer;
- }
- public function getRuleDefinition() : RuleDefinition
- {
- return new RuleDefinition('Remove allOnQueue() and allOnConnection() methods used with job chaining, use the onQueue() and onConnection() methods instead.', [new CodeSample(<<<'CODE_SAMPLE'
-Job::withChain([
- new ChainJob(),
-])
- ->dispatch()
- ->allOnConnection('redis')
- ->allOnQueue('podcasts');
-CODE_SAMPLE
-, <<<'CODE_SAMPLE'
-Job::withChain([
- new ChainJob(),
-])
- ->onQueue('podcasts')
- ->onConnection('redis')
- ->dispatch();
-CODE_SAMPLE
-)]);
- }
- /**
- * @return array>
- */
- public function getNodeTypes() : array
- {
- return [MethodCall::class];
- }
- /**
- * @param MethodCall $node
- */
- public function refactor(Node $node) : ?Node
- {
- if (!$this->isNames($node->name, \array_keys(self::SWAPPED_METHODS))) {
- return null;
- }
- $rootExpr = $this->fluentChainMethodCallNodeAnalyzer->resolveRootExpr($node);
- if (!$this->isObjectType($rootExpr, new ObjectType('Illuminate\\Foundation\\Bus\\Dispatchable'))) {
- return null;
- }
- // Note that this change only affects code using the withChain method.
- $callerNode = $rootExpr->getAttribute(AttributeKey::PARENT_NODE);
- if (!$callerNode instanceof StaticCall) {
- return null;
- }
- if (!$this->isName($callerNode->name, 'withChain')) {
- return null;
- }
- $names = $this->fluentChainMethodCallNodeAnalyzer->collectMethodCallNamesInChain($node);
- if (!\in_array(self::DISPATCH, $names, \true)) {
- return null;
- }
- // These methods should be called before calling the dispatch method.
- $end = $node->var;
- $current = $node->var;
- while ($current instanceof MethodCall) {
- if ($this->isName($current->name, self::DISPATCH)) {
- $var = $current->var;
- $current->var = $node;
- $node->name = new Identifier(self::SWAPPED_METHODS[$this->getName($node->name)]);
- $node->var = $var;
- break;
- }
- $current = $current->var;
- }
- return $end;
- }
-}
diff --git a/vendor/rector/rector-phpunit/composer.json b/vendor/rector/rector-phpunit/composer.json
index a7bea0dc89c..e73786883b4 100644
--- a/vendor/rector/rector-phpunit/composer.json
+++ b/vendor/rector/rector-phpunit/composer.json
@@ -20,7 +20,8 @@
"phpstan\/phpstan-webmozart-assert": "^1.1",
"symplify\/vendor-patches": "^11.0",
"symplify\/monorepo-builder": "^11.0",
- "symplify\/easy-ci": "^11.0"
+ "symplify\/easy-ci": "^11.0",
+ "rector\/rector-generator": "^0.6.10"
},
"autoload": {
"psr-4": {
diff --git a/vendor/rector/rector-phpunit/src/NodeFactory/DataProviderClassMethodFactory.php b/vendor/rector/rector-phpunit/src/NodeFactory/DataProviderClassMethodFactory.php
index 415a8c66911..3cef78f3a11 100644
--- a/vendor/rector/rector-phpunit/src/NodeFactory/DataProviderClassMethodFactory.php
+++ b/vendor/rector/rector-phpunit/src/NodeFactory/DataProviderClassMethodFactory.php
@@ -3,21 +3,21 @@
declare (strict_types=1);
namespace Rector\PHPUnit\NodeFactory;
+use PhpParser\Builder\Method;
use PhpParser\Node\Expr\Array_;
use PhpParser\Node\Expr\ArrayItem;
use PhpParser\Node\Expr\Yield_;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Expression;
-use Rector\PhpDocParser\ValueObject\NodeBuilder\MethodBuilder;
use Rector\PHPUnit\ValueObject\DataProviderClassMethodRecipe;
final class DataProviderClassMethodFactory
{
public function createFromRecipe(DataProviderClassMethodRecipe $dataProviderClassMethodRecipe) : ClassMethod
{
- $methodBuilder = new MethodBuilder($dataProviderClassMethodRecipe->getMethodName());
- $methodBuilder->makePublic();
- $classMethod = $methodBuilder->getNode();
+ $method = new Method($dataProviderClassMethodRecipe->getMethodName());
+ $method->makePublic();
+ $classMethod = $method->getNode();
foreach ($dataProviderClassMethodRecipe->getArgs() as $arg) {
$value = $arg->value;
if (!$value instanceof Array_) {
diff --git a/vendor/rector/rector-symfony/composer.json b/vendor/rector/rector-symfony/composer.json
index e72bb579f4d..bcd782442c9 100644
--- a/vendor/rector/rector-symfony/composer.json
+++ b/vendor/rector/rector-symfony/composer.json
@@ -15,6 +15,7 @@
"phpstan\/phpstan-webmozart-assert": "^1.2",
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5.16",
+ "rector\/rector-generator": "^0.6.10",
"rector\/rector-src": "dev-main",
"symfony\/routing": "^6.1",
"symfony\/security-core": "^6.1",
diff --git a/vendor/rector/rector-symfony/src/Rector/Class_/MakeCommandLazyRector.php b/vendor/rector/rector-symfony/src/Rector/Class_/MakeCommandLazyRector.php
index 2a1ed42cf20..79d45362a97 100644
--- a/vendor/rector/rector-symfony/src/Rector/Class_/MakeCommandLazyRector.php
+++ b/vendor/rector/rector-symfony/src/Rector/Class_/MakeCommandLazyRector.php
@@ -20,7 +20,6 @@ use PHPStan\Type\StringType;
use Rector\Core\NodeAnalyzer\ParamAnalyzer;
use Rector\Core\Rector\AbstractRector;
use Rector\Core\ValueObject\MethodName;
-use Rector\PhpDocParser\ValueObject\NodeBuilder\PropertyBuilder;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
/**
@@ -203,10 +202,10 @@ CODE_SAMPLE
}
private function createStaticProtectedPropertyWithDefault(string $name, Node $node) : Property
{
- $propertyBuilder = new PropertyBuilder($name);
- $propertyBuilder->makeProtected();
- $propertyBuilder->makeStatic();
- $propertyBuilder->setDefault($node);
- return $propertyBuilder->getNode();
+ $property = new \PhpParser\Builder\Property($name);
+ $property->makeProtected();
+ $property->makeStatic();
+ $property->setDefault($node);
+ return $property->getNode();
}
}