diff --git a/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php b/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php index 849b44ca2c6..3df8442ce05 100644 --- a/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php +++ b/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php @@ -83,9 +83,8 @@ final class ClassRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor if ($virtualNode === \true) { return null; } - $identifier = clone $node; - $identifier->name = $this->resolveNamespacedName($identifier, $phpParserNode, $node->name); - $staticType = $this->staticTypeMapper->mapPHPStanPhpDocTypeNodeToPHPStanType($identifier, $phpParserNode); + $node->name = $this->resolveNamespacedName($node, $phpParserNode, $node->name); + $staticType = $this->staticTypeMapper->mapPHPStanPhpDocTypeNodeToPHPStanType($node, $phpParserNode); // make sure to compare FQNs $objectType = $this->expandShortenedObjectType($staticType); foreach ($this->oldToNewTypes as $oldToNewType) { @@ -130,18 +129,21 @@ final class ClassRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor return $this->resolveNamefromUse($uses, $name); } $originalNode = $namespace->getAttribute(AttributeKey::ORIGINAL_NODE); + if (!$originalNode instanceof Namespace_) { + return $name; + } $namespaceName = (string) $this->nodeNameResolver->getName($namespace); - if ($originalNode instanceof Namespace_ && !$this->nodeNameResolver->isName($originalNode, $namespaceName)) { + if (!$this->nodeNameResolver->isName($originalNode, $namespaceName)) { return $name; } if ($uses === []) { - return $namespaceName . '\\' . $name; + return '\\' . \ltrim($namespaceName . '\\' . $name, '\\'); } $nameFromUse = $this->resolveNamefromUse($uses, $name); if ($nameFromUse !== $name) { return $nameFromUse; } - return $namespaceName . '\\' . $nameFromUse; + return '\\' . \ltrim($namespaceName . '\\' . $nameFromUse, '\\'); } /** * @param Use_[]|GroupUse[] $uses diff --git a/packages/Parallel/WorkerRunner.php b/packages/Parallel/WorkerRunner.php index fffa15e9d03..de16932e1f0 100644 --- a/packages/Parallel/WorkerRunner.php +++ b/packages/Parallel/WorkerRunner.php @@ -97,6 +97,11 @@ final class WorkerRunner } $currentErrorsAndFileDiffs = $this->phpFileProcessor->process($file, $configuration); $errorAndFileDiffs = $this->arrayParametersMerger->merge($errorAndFileDiffs, $currentErrorsAndFileDiffs); + // warn about deprecated @noRector annotation + if (\substr_compare($file->getFilePath(), 'WorkerRunner.php', -\strlen('WorkerRunner.php')) !== 0 && (\strpos($file->getFileContent(), ' @noRector ') !== \false || \strpos($file->getFileContent(), ' @norector ') !== \false)) { + $systemErrors[] = new SystemError('The @noRector annotation was deprecated and removed due to hiding fixed errors. Use more precise $rectorConfig->skip() method in the rector.php config.', $file->getFilePath()); + continue; + } } catch (Throwable $throwable) { ++$systemErrorsCount; $systemErrors = $this->collectSystemErrors($systemErrors, $throwable, $filePath); diff --git a/packages/PhpDocParser/PhpDocParser/ValueObject/Ast/PhpDoc/SimplePhpDocNode.php b/packages/PhpDocParser/PhpDocParser/ValueObject/Ast/PhpDoc/SimplePhpDocNode.php index e2c90eaba5b..aad3e56bfd9 100644 --- a/packages/PhpDocParser/PhpDocParser/ValueObject/Ast/PhpDoc/SimplePhpDocNode.php +++ b/packages/PhpDocParser/PhpDocParser/ValueObject/Ast/PhpDoc/SimplePhpDocNode.php @@ -7,10 +7,9 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode; use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode; use PHPStan\PhpDocParser\Ast\Type\TypeNode; /** - * @noRector final on purpose, so it can be extended by 3rd party * @api */ -class SimplePhpDocNode extends PhpDocNode +final class SimplePhpDocNode extends PhpDocNode { public function getParam(string $desiredParamName) : ?ParamTagValueNode { diff --git a/rules/CodeQuality/NodeFactory/ArrayFilterFactory.php b/rules/CodeQuality/NodeFactory/ArrayFilterFactory.php index aafe7593ced..80daa002eaf 100644 --- a/rules/CodeQuality/NodeFactory/ArrayFilterFactory.php +++ b/rules/CodeQuality/NodeFactory/ArrayFilterFactory.php @@ -9,6 +9,7 @@ use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\ArrowFunction; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\Closure; +use PhpParser\Node\Expr\ClosureUse; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Name; @@ -36,22 +37,28 @@ final class ArrayFilterFactory $arrayFilterFuncCall = new FuncCall(new Name('array_filter'), $args); return new Assign($arrayDimFetch->var, $arrayFilterFuncCall); } - public function createWithClosure(ArrayDimFetch $arrayDimFetch, Variable $valueVariable, Expr $condExpr, Foreach_ $foreach) : Assign + /** + * @param Variable[] $uses + */ + public function createWithClosure(ArrayDimFetch $arrayDimFetch, Variable $valueVariable, Expr $condExpr, Foreach_ $foreach, array $uses) : Assign { - $filterFunction = $this->createClosure($valueVariable, $condExpr); + $filterFunction = $this->createClosure($valueVariable, $condExpr, $uses); $args = [new Arg($foreach->expr), new Arg($filterFunction)]; $arrayFilterFuncCall = new FuncCall(new Name('array_filter'), $args); return new Assign($arrayDimFetch->var, $arrayFilterFuncCall); } /** + * @param Variable[] $uses * @return \PhpParser\Node\Expr\ArrowFunction|\PhpParser\Node\Expr\Closure */ - private function createClosure(Variable $valueVariable, Expr $condExpr) + private function createClosure(Variable $valueVariable, Expr $condExpr, array $uses) { $params = [new Param($valueVariable)]; if ($this->phpVersionProvider->isAtLeastPhpVersion(PhpVersionFeature::ARROW_FUNCTION)) { return new ArrowFunction(['params' => $params, 'expr' => $condExpr]); } - return new Closure(['params' => $params, 'stmts' => [new Return_($condExpr)]]); + return new Closure(['params' => $params, 'stmts' => [new Return_($condExpr)], 'uses' => \array_map(static function (Variable $variable) : ClosureUse { + return new ClosureUse($variable); + }, $uses)]); } } diff --git a/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector.php b/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector.php index 4fc472c0b21..ae77db3e8a6 100644 --- a/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector.php +++ b/rules/CodeQuality/Rector/Foreach_/SimplifyForeachToArrayFilterRector.php @@ -16,7 +16,9 @@ use PHPStan\Type\ArrayType; use PHPStan\Type\MixedType; use PHPStan\Type\UnionType; use Rector\CodeQuality\NodeFactory\ArrayFilterFactory; +use Rector\Core\Php\PhpVersionProvider; use Rector\Core\Rector\AbstractRector; +use Rector\Core\ValueObject\PhpVersionFeature; use Rector\DeadCode\NodeAnalyzer\ExprUsedInNodeAnalyzer; use Rector\ReadWrite\NodeAnalyzer\ReadExprAnalyzer; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; @@ -41,11 +43,17 @@ final class SimplifyForeachToArrayFilterRector extends AbstractRector * @var \Rector\ReadWrite\NodeAnalyzer\ReadExprAnalyzer */ private $readExprAnalyzer; - public function __construct(ArrayFilterFactory $arrayFilterFactory, ExprUsedInNodeAnalyzer $exprUsedInNodeAnalyzer, ReadExprAnalyzer $readExprAnalyzer) + /** + * @readonly + * @var \Rector\Core\Php\PhpVersionProvider + */ + private $phpVersionProvider; + public function __construct(ArrayFilterFactory $arrayFilterFactory, ExprUsedInNodeAnalyzer $exprUsedInNodeAnalyzer, ReadExprAnalyzer $readExprAnalyzer, PhpVersionProvider $phpVersionProvider) { $this->arrayFilterFactory = $arrayFilterFactory; $this->exprUsedInNodeAnalyzer = $exprUsedInNodeAnalyzer; $this->readExprAnalyzer = $readExprAnalyzer; + $this->phpVersionProvider = $phpVersionProvider; } public function getRuleDefinition() : RuleDefinition { @@ -211,12 +219,32 @@ CODE_SAMPLE return null; } // the keyvar must be variable in array dim fetch - if (!$foreach->keyVar instanceof Expr) { + $keyVar = $foreach->keyVar; + if (!$keyVar instanceof Variable) { return null; } if (!$this->nodeComparator->areNodesEqual($arrayDimFetch->dim, $foreach->keyVar)) { return null; } - return $this->arrayFilterFactory->createWithClosure($assign->var, $variable, $condExpr, $foreach); + return $this->arrayFilterFactory->createWithClosure($assign->var, $variable, $condExpr, $foreach, $this->getUsedVariablesForClosure($keyVar, $variable, $condExpr)); + } + /** + * @return Variable[] + */ + private function getUsedVariablesForClosure(Variable $keyVar, Variable $valueVar, Expr $condExpr) : array + { + if ($this->phpVersionProvider->isAtLeastPhpVersion(PhpVersionFeature::ARROW_FUNCTION)) { + return []; + } + /** @var Variable[] $filteredVariables */ + $filteredVariables = $this->betterNodeFinder->find($condExpr, function (Node $node) use($keyVar, $valueVar) : bool { + return $node instanceof Variable && !$this->nodeComparator->areNodesEqual($keyVar, $node) && !$this->nodeComparator->areNodesEqual($valueVar, $node) && !$this->nodeNameResolver->isName($node, 'this'); + }); + $uniqueVariables = []; + foreach ($filteredVariables as $filteredVariable) { + $variableName = $this->nodeNameResolver->getName($filteredVariable); + $uniqueVariables[$variableName] = $filteredVariable; + } + return \array_values($uniqueVariables); } } diff --git a/rules/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector.php b/rules/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector.php index 82ad561d89d..67d7d96caef 100644 --- a/rules/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector.php +++ b/rules/PSR4/Rector/FileWithoutNamespace/NormalizeNamespaceByPSR4ComposerAutoloadRector.php @@ -85,28 +85,27 @@ CODE_SAMPLE */ public function refactor(Node $node) { - $processNode = clone $node; - if ($this->inlineHTMLAnalyzer->hasInlineHTML($processNode)) { + if ($this->inlineHTMLAnalyzer->hasInlineHTML($node)) { return null; } - $expectedNamespace = $this->psr4AutoloadNamespaceMatcher->getExpectedNamespace($this->file, $processNode); + $expectedNamespace = $this->psr4AutoloadNamespaceMatcher->getExpectedNamespace($this->file, $node); if ($expectedNamespace === null) { return null; } // is namespace and already correctly named? - if ($processNode instanceof Namespace_ && $this->nodeNameResolver->isCaseSensitiveName($processNode, $expectedNamespace)) { + if ($node instanceof Namespace_ && $this->nodeNameResolver->isCaseSensitiveName($node, $expectedNamespace)) { return null; } - if ($processNode instanceof Namespace_ && $this->hasNamespaceInPreviousNamespace($processNode)) { + if ($node instanceof Namespace_ && $this->hasNamespaceInPreviousNamespace($node)) { return null; } // to put declare_strict types on correct place - if ($processNode instanceof FileWithoutNamespace) { - return $this->refactorFileWithoutNamespace($processNode, $expectedNamespace); + if ($node instanceof FileWithoutNamespace) { + return $this->refactorFileWithoutNamespace($node, $expectedNamespace); } - $processNode->name = new Name($expectedNamespace); - $this->fullyQualifyStmtsAnalyzer->process($processNode->stmts); - return $processNode; + $node->name = new Name($expectedNamespace); + $this->fullyQualifyStmtsAnalyzer->process($node->stmts); + return $node; } private function hasNamespaceInPreviousNamespace(Namespace_ $namespace) : bool { diff --git a/rules/Php81/NodeFactory/ClassFromEnumFactory.php b/rules/Php81/NodeFactory/ClassFromEnumFactory.php index 295d7cbe729..6ba77a54142 100644 --- a/rules/Php81/NodeFactory/ClassFromEnumFactory.php +++ b/rules/Php81/NodeFactory/ClassFromEnumFactory.php @@ -33,9 +33,9 @@ final class ClassFromEnumFactory continue; } $constValue = $this->createConstValue($stmt); - $classStmts[] = new ClassConst([new Const_($stmt->name, $constValue)], Visibility::PUBLIC); + $classStmts[] = new ClassConst([new Const_($stmt->name, $constValue)], Visibility::PUBLIC, ['startLine' => $stmt->getStartLine(), 'endLine' => $stmt->getEndLine()]); } - $class = new Class_($shortClassName, ['stmts' => $classStmts]); + $class = new Class_($shortClassName, ['stmts' => $classStmts], ['startLine' => $enum->getStartLine(), 'endLine' => $enum->getEndLine()]); $class->namespacedName = $enum->namespacedName; return $class; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 65744296e72..79651566468 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 = 'e8a252fe262cac38eb74b9584f78e2daee006ffa'; + public const PACKAGE_VERSION = 'efd09bbb400b2382be39effc206551e6964fa5ea'; /** * @api * @var string */ - public const RELEASE_DATE = '2022-12-03 12:29:17'; + public const RELEASE_DATE = '2022-12-04 13:10:11'; /** * @var int */ diff --git a/vendor/symplify/autowire-array-parameter/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php b/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php similarity index 75% rename from vendor/symplify/autowire-array-parameter/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php rename to src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php index d430133bdce..75912d04065 100644 --- a/vendor/symplify/autowire-array-parameter/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php +++ b/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php @@ -1,22 +1,22 @@ []|string[] */ - private $excludedFatalClasses = ['RectorPrefix202212\\Symfony\\Component\\Form\\FormExtensionInterface', 'RectorPrefix202212\\Symfony\\Component\\Asset\\PackageInterface', 'RectorPrefix202212\\Symfony\\Component\\Config\\Loader\\LoaderInterface', 'RectorPrefix202212\\Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface', 'RectorPrefix202212\\EasyCorp\\Bundle\\EasyAdminBundle\\Form\\Type\\Configurator\\TypeConfiguratorInterface', 'RectorPrefix202212\\Sonata\\CoreBundle\\Model\\Adapter\\AdapterInterface', 'RectorPrefix202212\\Sonata\\Doctrine\\Adapter\\AdapterChain', 'RectorPrefix202212\\Sonata\\Twig\\Extension\\TemplateExtension', 'RectorPrefix202212\\Symfony\\Component\\HttpKernel\\KernelInterface']; + private const EXCLUDED_FATAL_CLASSES = ['Symfony\\Component\\Form\\FormExtensionInterface', 'Symfony\\Component\\Asset\\PackageInterface', 'Symfony\\Component\\Config\\Loader\\LoaderInterface', 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface', 'EasyCorp\\Bundle\\EasyAdminBundle\\Form\\Type\\Configurator\\TypeConfiguratorInterface', 'Sonata\\CoreBundle\\Model\\Adapter\\AdapterInterface', 'Sonata\\Doctrine\\Adapter\\AdapterChain', 'Sonata\\Twig\\Extension\\TemplateExtension', 'Symfony\\Component\\HttpKernel\\KernelInterface']; /** - * @var \Symplify\AutowireArrayParameter\DependencyInjection\DefinitionFinder + * @readonly + * @var \Rector\Core\DependencyInjection\DefinitionFinder */ private $definitionFinder; /** - * @var \Symplify\AutowireArrayParameter\TypeResolver\ParameterTypeResolver + * @readonly + * @var \Rector\Core\DependencyInjection\TypeResolver\ParameterTypeResolver */ private $parameterTypeResolver; /** - * @var \Symplify\AutowireArrayParameter\Skipper\ParameterSkipper + * @readonly + * @var \Rector\Core\DependencyInjection\Skipper\ParameterSkipper */ private $parameterSkipper; /** @@ -86,7 +87,7 @@ final class AutowireArrayParameterCompilerPass implements CompilerPassInterface if (Strings::match($resolvedClassName, $excludedNamespacePattern)) { return \true; } - if (\in_array($resolvedClassName, $this->excludedFatalClasses, \true)) { + if (\in_array($resolvedClassName, self::EXCLUDED_FATAL_CLASSES, \true)) { return \true; } if ($definition->getFactory()) { diff --git a/vendor/symplify/autowire-array-parameter/src/DependencyInjection/DefinitionFinder.php b/src/DependencyInjection/DefinitionFinder.php similarity index 87% rename from vendor/symplify/autowire-array-parameter/src/DependencyInjection/DefinitionFinder.php rename to src/DependencyInjection/DefinitionFinder.php index 4e2f64ef096..ee4e8b054be 100644 --- a/vendor/symplify/autowire-array-parameter/src/DependencyInjection/DefinitionFinder.php +++ b/src/DependencyInjection/DefinitionFinder.php @@ -1,15 +1,14 @@ []|string[] */ - private const DEFAULT_EXCLUDED_FATAL_CLASSES = ['RectorPrefix202212\\Symfony\\Component\\Form\\FormExtensionInterface', 'RectorPrefix202212\\Symfony\\Component\\Asset\\PackageInterface', 'RectorPrefix202212\\Symfony\\Component\\Config\\Loader\\LoaderInterface', 'RectorPrefix202212\\Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface', 'RectorPrefix202212\\EasyCorp\\Bundle\\EasyAdminBundle\\Form\\Type\\Configurator\\TypeConfiguratorInterface', 'RectorPrefix202212\\Sonata\\CoreBundle\\Model\\Adapter\\AdapterInterface', 'RectorPrefix202212\\Sonata\\Doctrine\\Adapter\\AdapterChain', 'RectorPrefix202212\\Sonata\\Twig\\Extension\\TemplateExtension']; + private const DEFAULT_EXCLUDED_FATAL_CLASSES = ['Symfony\\Component\\Form\\FormExtensionInterface', 'Symfony\\Component\\Asset\\PackageInterface', 'Symfony\\Component\\Config\\Loader\\LoaderInterface', 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface', 'EasyCorp\\Bundle\\EasyAdminBundle\\Form\\Type\\Configurator\\TypeConfiguratorInterface', 'Sonata\\CoreBundle\\Model\\Adapter\\AdapterInterface', 'Sonata\\Doctrine\\Adapter\\AdapterChain', 'Sonata\\Twig\\Extension\\TemplateExtension']; /** * @var string[] */ private $excludedFatalClasses = []; /** - * @var \Symplify\AutowireArrayParameter\TypeResolver\ParameterTypeResolver + * @readonly + * @var \Rector\Core\DependencyInjection\TypeResolver\ParameterTypeResolver */ private $parameterTypeResolver; /** * @param string[] $excludedFatalClasses */ - public function __construct(ParameterTypeResolver $parameterTypeResolver, array $excludedFatalClasses) + public function __construct(ParameterTypeResolver $parameterTypeResolver, array $excludedFatalClasses = []) { $this->parameterTypeResolver = $parameterTypeResolver; $this->excludedFatalClasses = \array_merge(self::DEFAULT_EXCLUDED_FATAL_CLASSES, $excludedFatalClasses); diff --git a/vendor/symplify/autowire-array-parameter/src/TypeResolver/ParameterTypeResolver.php b/src/DependencyInjection/TypeResolver/ParameterTypeResolver.php similarity index 87% rename from vendor/symplify/autowire-array-parameter/src/TypeResolver/ParameterTypeResolver.php rename to src/DependencyInjection/TypeResolver/ParameterTypeResolver.php index 05a4b8858ac..b5a03419304 100644 --- a/vendor/symplify/autowire-array-parameter/src/TypeResolver/ParameterTypeResolver.php +++ b/src/DependencyInjection/TypeResolver/ParameterTypeResolver.php @@ -1,11 +1,11 @@ phpDocInfoFactory = $phpDocInfoFactory; - } - /** - * @param class-string $rectorClass - */ - public function isNodeSkippedByRector(Node $node, string $rectorClass) : bool - { - if ($node instanceof PropertyProperty || $node instanceof Const_) { - $node = $node->getAttribute(AttributeKey::PARENT_NODE); - if (!$node instanceof Node) { - return \false; - } - } - if ($this->hasNoRectorPhpDocTagMatch($node, $rectorClass)) { - return \true; - } - if ($node instanceof Stmt) { - return \false; - } - // recurse up until a Stmt node is found since it might contain a noRector - $parentNode = $node->getAttribute(AttributeKey::PARENT_NODE); - if (!$parentNode instanceof Node) { - return \false; - } - return $this->isNodeSkippedByRector($parentNode, $rectorClass); - } - /** - * @param class-string $rectorClass - */ - private function hasNoRectorPhpDocTagMatch(Node $node, string $rectorClass) : bool - { - $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node); - /** @var PhpDocTagNode[] $noRectorTags */ - $noRectorTags = \array_merge($phpDocInfo->getTagsByName('noRector'), $phpDocInfo->getTagsByName('norector')); - if ($this->matchesNoRectorTag($noRectorTags, $rectorClass)) { - return \true; - } - return $this->matchesNoRectorComment($node, $rectorClass); - } - /** - * @param PhpDocTagNode[] $noRectorPhpDocTagNodes - * @param class-string $rectorClass - */ - private function matchesNoRectorTag(array $noRectorPhpDocTagNodes, string $rectorClass) : bool - { - foreach ($noRectorPhpDocTagNodes as $noRectorPhpDocTagNode) { - if (!$noRectorPhpDocTagNode->value instanceof GenericTagValueNode) { - throw new ShouldNotHappenException(); - } - $description = $noRectorPhpDocTagNode->value->value; - if ($description === '') { - return \true; - } - $description = \ltrim($description, '\\'); - if ($description === $rectorClass) { - return \true; - } - if (!\is_a($description, RectorInterface::class, \true)) { - return \true; - } - } - return \false; - } - /** - * @param class-string $rectorClass - */ - private function matchesNoRectorComment(Node $node, string $rectorClass) : bool - { - foreach ($node->getComments() as $comment) { - if (StringUtils::isMatch($comment->getText(), self::NO_RECTOR_START_REGEX)) { - return \true; - } - $noRectorWithRule = '#@noRector \\\\?' . \preg_quote($rectorClass, '#') . '$#'; - if (StringUtils::isMatch($comment->getText(), $noRectorWithRule)) { - return \true; - } - } - return \false; - } -} diff --git a/src/Kernel/RectorKernel.php b/src/Kernel/RectorKernel.php index c08e741c633..71f98442fcb 100644 --- a/src/Kernel/RectorKernel.php +++ b/src/Kernel/RectorKernel.php @@ -5,6 +5,7 @@ namespace Rector\Core\Kernel; use Rector\Core\Config\Loader\ConfigureCallMergingLoaderFactory; use Rector\Core\DependencyInjection\Collector\ConfigureCallValuesCollector; +use Rector\Core\DependencyInjection\CompilerPass\AutowireArrayParameterCompilerPass; use Rector\Core\DependencyInjection\CompilerPass\AutowireRectorCompilerPass; use Rector\Core\DependencyInjection\CompilerPass\MakeRectorsPublicCompilerPass; use Rector\Core\DependencyInjection\CompilerPass\MergeImportedRectorConfigureCallValuesCompilerPass; @@ -13,7 +14,6 @@ use Rector\Core\Exception\ShouldNotHappenException; use RectorPrefix202212\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use RectorPrefix202212\Symfony\Component\DependencyInjection\ContainerBuilder; use RectorPrefix202212\Symfony\Component\DependencyInjection\ContainerInterface; -use RectorPrefix202212\Symplify\AutowireArrayParameter\DependencyInjection\CompilerPass\AutowireArrayParameterCompilerPass; final class RectorKernel { /** diff --git a/src/Rector/AbstractRector.php b/src/Rector/AbstractRector.php index 5795adde369..df482d0d3cf 100644 --- a/src/Rector/AbstractRector.php +++ b/src/Rector/AbstractRector.php @@ -24,7 +24,6 @@ use Rector\Core\Configuration\CurrentNodeProvider; use Rector\Core\Console\Output\RectorOutputStyle; use Rector\Core\Contract\Rector\PhpRectorInterface; use Rector\Core\Exception\ShouldNotHappenException; -use Rector\Core\Exclusion\ExclusionManager; use Rector\Core\FileSystem\FilePathHelper; use Rector\Core\Logging\CurrentRectorProvider; use Rector\Core\NodeDecorator\CreatedByRuleDecorator; @@ -114,10 +113,6 @@ CODE_SAMPLE; * @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser */ private $simpleCallableNodeTraverser; - /** - * @var \Rector\Core\Exclusion\ExclusionManager - */ - private $exclusionManager; /** * @var \Rector\Core\Logging\CurrentRectorProvider */ @@ -161,7 +156,7 @@ CODE_SAMPLE; /** * @required */ - public function autowire(NodesToRemoveCollector $nodesToRemoveCollector, NodeRemover $nodeRemover, NodeNameResolver $nodeNameResolver, NodeTypeResolver $nodeTypeResolver, SimpleCallableNodeTraverser $simpleCallableNodeTraverser, NodeFactory $nodeFactory, PhpDocInfoFactory $phpDocInfoFactory, ExclusionManager $exclusionManager, StaticTypeMapper $staticTypeMapper, CurrentRectorProvider $currentRectorProvider, CurrentNodeProvider $currentNodeProvider, Skipper $skipper, ValueResolver $valueResolver, BetterNodeFinder $betterNodeFinder, NodeComparator $nodeComparator, CurrentFileProvider $currentFileProvider, RectifiedAnalyzer $rectifiedAnalyzer, CreatedByRuleDecorator $createdByRuleDecorator, ChangedNodeScopeRefresher $changedNodeScopeRefresher, RectorOutputStyle $rectorOutputStyle, FilePathHelper $filePathHelper, DocBlockUpdater $docBlockUpdater) : void + public function autowire(NodesToRemoveCollector $nodesToRemoveCollector, NodeRemover $nodeRemover, NodeNameResolver $nodeNameResolver, NodeTypeResolver $nodeTypeResolver, SimpleCallableNodeTraverser $simpleCallableNodeTraverser, NodeFactory $nodeFactory, PhpDocInfoFactory $phpDocInfoFactory, StaticTypeMapper $staticTypeMapper, CurrentRectorProvider $currentRectorProvider, CurrentNodeProvider $currentNodeProvider, Skipper $skipper, ValueResolver $valueResolver, BetterNodeFinder $betterNodeFinder, NodeComparator $nodeComparator, CurrentFileProvider $currentFileProvider, RectifiedAnalyzer $rectifiedAnalyzer, CreatedByRuleDecorator $createdByRuleDecorator, ChangedNodeScopeRefresher $changedNodeScopeRefresher, RectorOutputStyle $rectorOutputStyle, FilePathHelper $filePathHelper, DocBlockUpdater $docBlockUpdater) : void { $this->nodesToRemoveCollector = $nodesToRemoveCollector; $this->nodeRemover = $nodeRemover; @@ -170,7 +165,6 @@ CODE_SAMPLE; $this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser; $this->nodeFactory = $nodeFactory; $this->phpDocInfoFactory = $phpDocInfoFactory; - $this->exclusionManager = $exclusionManager; $this->staticTypeMapper = $staticTypeMapper; $this->currentRectorProvider = $currentRectorProvider; $this->currentNodeProvider = $currentNodeProvider; @@ -363,9 +357,6 @@ CODE_SAMPLE; if ($this->nodesToRemoveCollector->isNodeRemoved($node)) { return \true; } - if ($this->exclusionManager->isNodeSkippedByRector($node, static::class)) { - return \true; - } $filePath = $this->file->getFilePath(); if ($this->skipper->shouldSkipElementAndFilePath($this, $filePath)) { return \true; diff --git a/vendor/autoload.php b/vendor/autoload.php index 10482e858f7..0cf39a216c3 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitef9a533724006031add2916a3c9c8c2e::getLoader(); +return ComposerAutoloaderInita4f22922e85306bbfc938da51fec6447::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 875f9a2280f..75b7be02df8 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -1033,12 +1033,6 @@ return array( 'RectorPrefix202212\\Symfony\\Contracts\\Translation\\TranslatableInterface' => $vendorDir . '/symfony/contracts/Translation/TranslatableInterface.php', 'RectorPrefix202212\\Symfony\\Contracts\\Translation\\TranslatorInterface' => $vendorDir . '/symfony/contracts/Translation/TranslatorInterface.php', 'RectorPrefix202212\\Symfony\\Contracts\\Translation\\TranslatorTrait' => $vendorDir . '/symfony/contracts/Translation/TranslatorTrait.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\DependencyInjection\\CompilerPass\\AutowireArrayParameterCompilerPass' => $vendorDir . '/symplify/autowire-array-parameter/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\DependencyInjection\\DefinitionFinder' => $vendorDir . '/symplify/autowire-array-parameter/src/DependencyInjection/DefinitionFinder.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\DocBlock\\ParamTypeDocBlockResolver' => $vendorDir . '/symplify/autowire-array-parameter/src/DocBlock/ParamTypeDocBlockResolver.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\Exception\\DependencyInjection\\DefinitionForTypeNotFoundException' => $vendorDir . '/symplify/autowire-array-parameter/src/Exception/DependencyInjection/DefinitionForTypeNotFoundException.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\Skipper\\ParameterSkipper' => $vendorDir . '/symplify/autowire-array-parameter/src/Skipper/ParameterSkipper.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\TypeResolver\\ParameterTypeResolver' => $vendorDir . '/symplify/autowire-array-parameter/src/TypeResolver/ParameterTypeResolver.php', 'RectorPrefix202212\\Symplify\\EasyParallel\\CommandLine\\WorkerCommandLineFactory' => $vendorDir . '/symplify/easy-parallel/src/CommandLine/WorkerCommandLineFactory.php', 'RectorPrefix202212\\Symplify\\EasyParallel\\Contract\\SerializableInterface' => $vendorDir . '/symplify/easy-parallel/src/Contract/SerializableInterface.php', 'RectorPrefix202212\\Symplify\\EasyParallel\\CpuCoreCountProvider' => $vendorDir . '/symplify/easy-parallel/src/CpuCoreCountProvider.php', @@ -1358,13 +1352,19 @@ return array( 'Rector\\Core\\Contract\\Rector\\ScopeAwarePhpRectorInterface' => $baseDir . '/src/Contract/Rector/ScopeAwarePhpRectorInterface.php', 'Rector\\Core\\Contract\\Template\\TemplateResolverInterface' => $baseDir . '/src/Contract/Template/TemplateResolverInterface.php', 'Rector\\Core\\DependencyInjection\\Collector\\ConfigureCallValuesCollector' => $baseDir . '/src/DependencyInjection/Collector/ConfigureCallValuesCollector.php', + 'Rector\\Core\\DependencyInjection\\CompilerPass\\AutowireArrayParameterCompilerPass' => $baseDir . '/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\AutowireRectorCompilerPass' => $baseDir . '/src/DependencyInjection/CompilerPass/AutowireRectorCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\MakeRectorsPublicCompilerPass' => $baseDir . '/src/DependencyInjection/CompilerPass/MakeRectorsPublicCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\MergeImportedRectorConfigureCallValuesCompilerPass' => $baseDir . '/src/DependencyInjection/CompilerPass/MergeImportedRectorConfigureCallValuesCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\RemoveSkippedRectorsCompilerPass' => $baseDir . '/src/DependencyInjection/CompilerPass/RemoveSkippedRectorsCompilerPass.php', + 'Rector\\Core\\DependencyInjection\\DefinitionFinder' => $baseDir . '/src/DependencyInjection/DefinitionFinder.php', + 'Rector\\Core\\DependencyInjection\\DocBlock\\ParamTypeDocBlockResolver' => $baseDir . '/src/DependencyInjection/DocBlock/ParamTypeDocBlockResolver.php', + 'Rector\\Core\\DependencyInjection\\Exception\\DefinitionForTypeNotFoundException' => $baseDir . '/src/DependencyInjection/Exception/DefinitionForTypeNotFoundException.php', 'Rector\\Core\\DependencyInjection\\Loader\\ConfigurableCallValuesCollectingPhpFileLoader' => $baseDir . '/src/DependencyInjection/Loader/ConfigurableCallValuesCollectingPhpFileLoader.php', 'Rector\\Core\\DependencyInjection\\Loader\\Configurator\\RectorServiceConfigurator' => $baseDir . '/src/DependencyInjection/Loader/Configurator/RectorServiceConfigurator.php', 'Rector\\Core\\DependencyInjection\\RectorContainerFactory' => $baseDir . '/src/DependencyInjection/RectorContainerFactory.php', + 'Rector\\Core\\DependencyInjection\\Skipper\\ParameterSkipper' => $baseDir . '/src/DependencyInjection/Skipper/ParameterSkipper.php', + 'Rector\\Core\\DependencyInjection\\TypeResolver\\ParameterTypeResolver' => $baseDir . '/src/DependencyInjection/TypeResolver/ParameterTypeResolver.php', 'Rector\\Core\\Differ\\DefaultDiffer' => $baseDir . '/src/Differ/DefaultDiffer.php', 'Rector\\Core\\Enum\\ObjectReference' => $baseDir . '/src/Enum/ObjectReference.php', 'Rector\\Core\\Error\\ExceptionCorrector' => $baseDir . '/src/Error/ExceptionCorrector.php', @@ -1376,7 +1376,6 @@ return array( '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', 'Rector\\Core\\FileSystem\\FileAndDirectoryFilter' => $baseDir . '/src/FileSystem/FileAndDirectoryFilter.php', 'Rector\\Core\\FileSystem\\FilePathHelper' => $baseDir . '/src/FileSystem/FilePathHelper.php', 'Rector\\Core\\FileSystem\\FilesFinder' => $baseDir . '/src/FileSystem/FilesFinder.php', diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 58daa2b679f..20845b741ab 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -19,7 +19,6 @@ return array( 'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src', $vendorDir . '/rector/rector-downgrade-php/rules'), 'RectorPrefix202212\\Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'), 'RectorPrefix202212\\Symplify\\EasyParallel\\' => array($vendorDir . '/symplify/easy-parallel/src'), - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\' => array($vendorDir . '/symplify/autowire-array-parameter/src'), 'RectorPrefix202212\\Symfony\\Contracts\\' => array($vendorDir . '/symfony/contracts'), 'RectorPrefix202212\\Symfony\\Component\\String\\' => array($vendorDir . '/symfony/string'), 'RectorPrefix202212\\Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'), diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 0be8e4c69e5..1a38c3f5fcc 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitef9a533724006031add2916a3c9c8c2e +class ComposerAutoloaderInita4f22922e85306bbfc938da51fec6447 { private static $loader; @@ -22,19 +22,19 @@ class ComposerAutoloaderInitef9a533724006031add2916a3c9c8c2e return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitef9a533724006031add2916a3c9c8c2e', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInita4f22922e85306bbfc938da51fec6447', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInitef9a533724006031add2916a3c9c8c2e', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInita4f22922e85306bbfc938da51fec6447', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitef9a533724006031add2916a3c9c8c2e::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInita4f22922e85306bbfc938da51fec6447::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticInitef9a533724006031add2916a3c9c8c2e::$files; + $includeFiles = \Composer\Autoload\ComposerStaticInita4f22922e85306bbfc938da51fec6447::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequireef9a533724006031add2916a3c9c8c2e($fileIdentifier, $file); + composerRequirea4f22922e85306bbfc938da51fec6447($fileIdentifier, $file); } return $loader; @@ -46,7 +46,7 @@ class ComposerAutoloaderInitef9a533724006031add2916a3c9c8c2e * @param string $file * @return void */ -function composerRequireef9a533724006031add2916a3c9c8c2e($fileIdentifier, $file) +function composerRequirea4f22922e85306bbfc938da51fec6447($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 459ce5c0c30..869e91b0d65 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitef9a533724006031add2916a3c9c8c2e +class ComposerStaticInita4f22922e85306bbfc938da51fec6447 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -36,7 +36,6 @@ class ComposerStaticInitef9a533724006031add2916a3c9c8c2e 'Rector\\' => 7, 'RectorPrefix202212\\Webmozart\\Assert\\' => 36, 'RectorPrefix202212\\Symplify\\EasyParallel\\' => 41, - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\' => 51, 'RectorPrefix202212\\Symfony\\Contracts\\' => 37, 'RectorPrefix202212\\Symfony\\Component\\String\\' => 44, 'RectorPrefix202212\\Symfony\\Component\\Finder\\' => 44, @@ -128,10 +127,6 @@ class ComposerStaticInitef9a533724006031add2916a3c9c8c2e array ( 0 => __DIR__ . '/..' . '/symplify/easy-parallel/src', ), - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\' => - array ( - 0 => __DIR__ . '/..' . '/symplify/autowire-array-parameter/src', - ), 'RectorPrefix202212\\Symfony\\Contracts\\' => array ( 0 => __DIR__ . '/..' . '/symfony/contracts', @@ -1278,12 +1273,6 @@ class ComposerStaticInitef9a533724006031add2916a3c9c8c2e 'RectorPrefix202212\\Symfony\\Contracts\\Translation\\TranslatableInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatableInterface.php', 'RectorPrefix202212\\Symfony\\Contracts\\Translation\\TranslatorInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorInterface.php', 'RectorPrefix202212\\Symfony\\Contracts\\Translation\\TranslatorTrait' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorTrait.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\DependencyInjection\\CompilerPass\\AutowireArrayParameterCompilerPass' => __DIR__ . '/..' . '/symplify/autowire-array-parameter/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\DependencyInjection\\DefinitionFinder' => __DIR__ . '/..' . '/symplify/autowire-array-parameter/src/DependencyInjection/DefinitionFinder.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\DocBlock\\ParamTypeDocBlockResolver' => __DIR__ . '/..' . '/symplify/autowire-array-parameter/src/DocBlock/ParamTypeDocBlockResolver.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\Exception\\DependencyInjection\\DefinitionForTypeNotFoundException' => __DIR__ . '/..' . '/symplify/autowire-array-parameter/src/Exception/DependencyInjection/DefinitionForTypeNotFoundException.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\Skipper\\ParameterSkipper' => __DIR__ . '/..' . '/symplify/autowire-array-parameter/src/Skipper/ParameterSkipper.php', - 'RectorPrefix202212\\Symplify\\AutowireArrayParameter\\TypeResolver\\ParameterTypeResolver' => __DIR__ . '/..' . '/symplify/autowire-array-parameter/src/TypeResolver/ParameterTypeResolver.php', 'RectorPrefix202212\\Symplify\\EasyParallel\\CommandLine\\WorkerCommandLineFactory' => __DIR__ . '/..' . '/symplify/easy-parallel/src/CommandLine/WorkerCommandLineFactory.php', 'RectorPrefix202212\\Symplify\\EasyParallel\\Contract\\SerializableInterface' => __DIR__ . '/..' . '/symplify/easy-parallel/src/Contract/SerializableInterface.php', 'RectorPrefix202212\\Symplify\\EasyParallel\\CpuCoreCountProvider' => __DIR__ . '/..' . '/symplify/easy-parallel/src/CpuCoreCountProvider.php', @@ -1603,13 +1592,19 @@ class ComposerStaticInitef9a533724006031add2916a3c9c8c2e 'Rector\\Core\\Contract\\Rector\\ScopeAwarePhpRectorInterface' => __DIR__ . '/../..' . '/src/Contract/Rector/ScopeAwarePhpRectorInterface.php', 'Rector\\Core\\Contract\\Template\\TemplateResolverInterface' => __DIR__ . '/../..' . '/src/Contract/Template/TemplateResolverInterface.php', 'Rector\\Core\\DependencyInjection\\Collector\\ConfigureCallValuesCollector' => __DIR__ . '/../..' . '/src/DependencyInjection/Collector/ConfigureCallValuesCollector.php', + 'Rector\\Core\\DependencyInjection\\CompilerPass\\AutowireArrayParameterCompilerPass' => __DIR__ . '/../..' . '/src/DependencyInjection/CompilerPass/AutowireArrayParameterCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\AutowireRectorCompilerPass' => __DIR__ . '/../..' . '/src/DependencyInjection/CompilerPass/AutowireRectorCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\MakeRectorsPublicCompilerPass' => __DIR__ . '/../..' . '/src/DependencyInjection/CompilerPass/MakeRectorsPublicCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\MergeImportedRectorConfigureCallValuesCompilerPass' => __DIR__ . '/../..' . '/src/DependencyInjection/CompilerPass/MergeImportedRectorConfigureCallValuesCompilerPass.php', 'Rector\\Core\\DependencyInjection\\CompilerPass\\RemoveSkippedRectorsCompilerPass' => __DIR__ . '/../..' . '/src/DependencyInjection/CompilerPass/RemoveSkippedRectorsCompilerPass.php', + 'Rector\\Core\\DependencyInjection\\DefinitionFinder' => __DIR__ . '/../..' . '/src/DependencyInjection/DefinitionFinder.php', + 'Rector\\Core\\DependencyInjection\\DocBlock\\ParamTypeDocBlockResolver' => __DIR__ . '/../..' . '/src/DependencyInjection/DocBlock/ParamTypeDocBlockResolver.php', + 'Rector\\Core\\DependencyInjection\\Exception\\DefinitionForTypeNotFoundException' => __DIR__ . '/../..' . '/src/DependencyInjection/Exception/DefinitionForTypeNotFoundException.php', 'Rector\\Core\\DependencyInjection\\Loader\\ConfigurableCallValuesCollectingPhpFileLoader' => __DIR__ . '/../..' . '/src/DependencyInjection/Loader/ConfigurableCallValuesCollectingPhpFileLoader.php', 'Rector\\Core\\DependencyInjection\\Loader\\Configurator\\RectorServiceConfigurator' => __DIR__ . '/../..' . '/src/DependencyInjection/Loader/Configurator/RectorServiceConfigurator.php', 'Rector\\Core\\DependencyInjection\\RectorContainerFactory' => __DIR__ . '/../..' . '/src/DependencyInjection/RectorContainerFactory.php', + 'Rector\\Core\\DependencyInjection\\Skipper\\ParameterSkipper' => __DIR__ . '/../..' . '/src/DependencyInjection/Skipper/ParameterSkipper.php', + 'Rector\\Core\\DependencyInjection\\TypeResolver\\ParameterTypeResolver' => __DIR__ . '/../..' . '/src/DependencyInjection/TypeResolver/ParameterTypeResolver.php', 'Rector\\Core\\Differ\\DefaultDiffer' => __DIR__ . '/../..' . '/src/Differ/DefaultDiffer.php', 'Rector\\Core\\Enum\\ObjectReference' => __DIR__ . '/../..' . '/src/Enum/ObjectReference.php', 'Rector\\Core\\Error\\ExceptionCorrector' => __DIR__ . '/../..' . '/src/Error/ExceptionCorrector.php', @@ -1621,7 +1616,6 @@ class ComposerStaticInitef9a533724006031add2916a3c9c8c2e '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', 'Rector\\Core\\FileSystem\\FileAndDirectoryFilter' => __DIR__ . '/../..' . '/src/FileSystem/FileAndDirectoryFilter.php', 'Rector\\Core\\FileSystem\\FilePathHelper' => __DIR__ . '/../..' . '/src/FileSystem/FilePathHelper.php', 'Rector\\Core\\FileSystem\\FilesFinder' => __DIR__ . '/../..' . '/src/FileSystem/FilesFinder.php', @@ -3023,9 +3017,9 @@ class ComposerStaticInitef9a533724006031add2916a3c9c8c2e public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitef9a533724006031add2916a3c9c8c2e::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitef9a533724006031add2916a3c9c8c2e::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitef9a533724006031add2916a3c9c8c2e::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInita4f22922e85306bbfc938da51fec6447::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInita4f22922e85306bbfc938da51fec6447::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInita4f22922e85306bbfc938da51fec6447::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index b89314b987b..c1c2c4b3c6b 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2967,84 +2967,6 @@ ], "install-path": "..\/symfony\/string" }, - { - "name": "symplify\/autowire-array-parameter", - "version": "11.1.17", - "version_normalized": "11.1.17.0", - "source": { - "type": "git", - "url": "https:\/\/github.com\/symplify\/autowire-array-parameter.git", - "reference": "55242ce6403e25590bbffa581471f097c4a7109d" - }, - "dist": { - "type": "zip", - "url": "https:\/\/api.github.com\/repos\/symplify\/autowire-array-parameter\/zipball\/55242ce6403e25590bbffa581471f097c4a7109d", - "reference": "55242ce6403e25590bbffa581471f097c4a7109d", - "shasum": "" - }, - "require": { - "nette\/utils": "^3.2", - "php": ">=8.1", - "symfony\/dependency-injection": "^6.1" - }, - "conflict": { - "symplify\/coding-standard": "<11.1.17", - "symplify\/composer-json-manipulator": "<11.1.17", - "symplify\/config-transformer": "<11.1.17", - "symplify\/easy-ci": "<11.1.17", - "symplify\/easy-coding-standard": "<11.1.17", - "symplify\/easy-parallel": "<11.1.17", - "symplify\/easy-testing": "<11.1.17", - "symplify\/monorepo-builder": "<11.1.17", - "symplify\/package-builder": "<11.1.17", - "symplify\/php-config-printer": "<11.1.17", - "symplify\/phpstan-extensions": "<11.1.17", - "symplify\/phpstan-rules": "<11.1.17", - "symplify\/rule-doc-generator": "<11.1.17", - "symplify\/rule-doc-generator-contracts": "<11.1.17", - "symplify\/smart-file-system": "<11.1.17", - "symplify\/symfony-static-dumper": "<11.1.17", - "symplify\/symplify-kernel": "<11.1.17", - "symplify\/vendor-patches": "<11.1.17" - }, - "require-dev": { - "phpunit\/phpunit": "^9.5.25", - "symplify\/package-builder": "^11.1.17", - "symplify\/symplify-kernel": "^11.1.17" - }, - "time": "2022-11-10T15:22:46+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "11.2-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "RectorPrefix202212\\Symplify\\AutowireArrayParameter\\": "src" - } - }, - "notification-url": "https:\/\/packagist.org\/downloads\/", - "license": [ - "MIT" - ], - "description": "Autowire array parameters for your Symfony applications", - "support": { - "source": "https:\/\/github.com\/symplify\/autowire-array-parameter\/tree\/11.1.17" - }, - "funding": [ - { - "url": "https:\/\/www.paypal.me\/rectorphp", - "type": "custom" - }, - { - "url": "https:\/\/github.com\/tomasvotruba", - "type": "github" - } - ], - "install-path": "..\/symplify\/autowire-array-parameter" - }, { "name": "symplify\/easy-parallel", "version": "11.1.17", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 4f8ab3542e2..ddf9e38149f 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -2,4 +2,4 @@ namespace RectorPrefix202212; -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.1.0', 'version' => '3.1.0.0', 'reference' => '4bff79ddd77851fe3cdd11616ed3f92841ba5bd2', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.6', 'version' => '2.0.6.0', 'reference' => 'd9d313a36c872fd6ee06d9a6cbcf713eaa40f024', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.8', 'version' => '3.2.8.0', 'reference' => '02a54c4c872b99e4ec05c4aec54b5a06eb0f6368', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.15.2', 'version' => '4.15.2.0', 'reference' => 'f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc', '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.13.1', 'version' => '1.13.1.0', 'reference' => 'aac44118344d197e6d5f7c6cee91885f0a89acdd', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.9.2', 'version' => '1.9.2.0', 'reference' => 'd6fdf01c53978b6429f1393ba4afeca39cc68afa', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.2.2', 'version' => '1.2.2.0', 'reference' => 'dea1f87344c6964c607d9076dee42d891f3923f0', '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.2.0', 'version' => '1.2.0.0', 'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.5', 'version' => '0.6.5.0', 'reference' => 'e71eb1aa55f057c7a4a0d08d06b0b0a484bead43', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.10.0', 'version' => '1.10.0.0', 'reference' => 'a5427e7dfa47713e438016905605819d101f238c', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.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-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'bf394eec1e4612ceae5b6ee3c574e37f81f422b7', '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' => 'd441dba05b3850868d231c0681b5beb9287907d3', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-php-parser' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9ea5f622c1ed47addb197ded25a6bac39c39c596', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-php-parser', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3d0d84d78aed4aa4ca9a8e3eae3f51dcb833beb7', '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' => 'caa1373939a8ad1c037eda59bab3d53e62e2359f', '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.2.0', 'version' => '6.2.0.0', 'reference' => 'ebf27792246165a2a0b6b69ec9c620cac8c5a2f0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.2.0', 'version' => '6.2.0.0', 'reference' => '75d4749d9620a8fa21a2d2847800a84b5c4e7682', '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.8', 'version' => '6.1.8.0', 'reference' => '11e33ed84db0ced77511a23b35168db127909f0e', '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.2.0', 'version' => '6.2.0.0', 'reference' => '50b2523c874605cf3d4acf7a9e2b30b6a440a016', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.2.0', 'version' => '6.2.0.0', 'reference' => 'eb2355f69519e4ef33f1835bca4c935f5d42e570', '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.27.0', 'version' => '1.27.0.0', 'reference' => '19bd1e4fcd5b91116f14d8533c57831ed00571b6', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/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.2.0', 'version' => '6.2.0.0', 'reference' => '145702685e0d12f81d755c71127bfff7582fdd36', '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' => '11.1.17', 'version' => '11.1.17.0', 'reference' => '55242ce6403e25590bbffa581471f097c4a7109d', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.17', 'version' => '11.1.17.0', 'reference' => '451d792f838028cd83dcf157abdb3ed2d9192286', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.17', 'version' => '11.1.17.0', 'reference' => 'db548865295b95fcd5f868f0782fedef1e96fcb1', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); +return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.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.1.0', 'version' => '3.1.0.0', 'reference' => '4bff79ddd77851fe3cdd11616ed3f92841ba5bd2', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.6', 'version' => '2.0.6.0', 'reference' => 'd9d313a36c872fd6ee06d9a6cbcf713eaa40f024', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.8', 'version' => '3.2.8.0', 'reference' => '02a54c4c872b99e4ec05c4aec54b5a06eb0f6368', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.15.2', 'version' => '4.15.2.0', 'reference' => 'f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc', '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.13.1', 'version' => '1.13.1.0', 'reference' => 'aac44118344d197e6d5f7c6cee91885f0a89acdd', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.9.2', 'version' => '1.9.2.0', 'reference' => 'd6fdf01c53978b6429f1393ba4afeca39cc68afa', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.2.2', 'version' => '1.2.2.0', 'reference' => 'dea1f87344c6964c607d9076dee42d891f3923f0', '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.2.0', 'version' => '1.2.0.0', 'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.5', 'version' => '0.6.5.0', 'reference' => 'e71eb1aa55f057c7a4a0d08d06b0b0a484bead43', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.10.0', 'version' => '1.10.0.0', 'reference' => 'a5427e7dfa47713e438016905605819d101f238c', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.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-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'bf394eec1e4612ceae5b6ee3c574e37f81f422b7', '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' => 'd441dba05b3850868d231c0681b5beb9287907d3', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-php-parser' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9ea5f622c1ed47addb197ded25a6bac39c39c596', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-php-parser', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3d0d84d78aed4aa4ca9a8e3eae3f51dcb833beb7', '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' => 'caa1373939a8ad1c037eda59bab3d53e62e2359f', '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.2.0', 'version' => '6.2.0.0', 'reference' => 'ebf27792246165a2a0b6b69ec9c620cac8c5a2f0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.2.0', 'version' => '6.2.0.0', 'reference' => '75d4749d9620a8fa21a2d2847800a84b5c4e7682', '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.8', 'version' => '6.1.8.0', 'reference' => '11e33ed84db0ced77511a23b35168db127909f0e', '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.2.0', 'version' => '6.2.0.0', 'reference' => '50b2523c874605cf3d4acf7a9e2b30b6a440a016', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.2.0', 'version' => '6.2.0.0', 'reference' => 'eb2355f69519e4ef33f1835bca4c935f5d42e570', '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.27.0', 'version' => '1.27.0.0', 'reference' => '19bd1e4fcd5b91116f14d8533c57831ed00571b6', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/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.2.0', 'version' => '6.2.0.0', 'reference' => '145702685e0d12f81d755c71127bfff7582fdd36', '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/easy-parallel' => array('pretty_version' => '11.1.17', 'version' => '11.1.17.0', 'reference' => '451d792f838028cd83dcf157abdb3ed2d9192286', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.17', 'version' => '11.1.17.0', 'reference' => 'db548865295b95fcd5f868f0782fedef1e96fcb1', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); diff --git a/vendor/symplify/autowire-array-parameter/LICENSE b/vendor/symplify/autowire-array-parameter/LICENSE deleted file mode 100644 index 3fe586ede21..00000000000 --- a/vendor/symplify/autowire-array-parameter/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -The MIT License ---------------- - -Copyright (c) 2018 Tomas Votruba (https://tomasvotruba.com) - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/symplify/autowire-array-parameter/composer.json b/vendor/symplify/autowire-array-parameter/composer.json deleted file mode 100644 index 1c39ee43ad6..00000000000 --- a/vendor/symplify/autowire-array-parameter/composer.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "symplify\/autowire-array-parameter", - "description": "Autowire array parameters for your Symfony applications", - "license": "MIT", - "require": { - "php": ">=8.1", - "nette\/utils": "^3.2", - "symfony\/dependency-injection": "^6.1" - }, - "require-dev": { - "phpunit\/phpunit": "^9.5.25", - "symplify\/package-builder": "^11.1.17", - "symplify\/symplify-kernel": "^11.1.17" - }, - "autoload": { - "psr-4": { - "RectorPrefix202212\\Symplify\\AutowireArrayParameter\\": "src" - } - }, - "autoload-dev": { - "psr-4": { - "RectorPrefix202212\\Symplify\\AutowireArrayParameter\\Tests\\": "tests" - } - }, - "extra": { - "branch-alias": { - "dev-main": "11.2-dev" - } - }, - "conflict": { - "symplify\/composer-json-manipulator": "<11.1.17", - "symplify\/easy-coding-standard": "<11.1.17", - "symplify\/phpstan-rules": "<11.1.17", - "symplify\/easy-testing": "<11.1.17", - "symplify\/rule-doc-generator-contracts": "<11.1.17", - "symplify\/php-config-printer": "<11.1.17", - "symplify\/phpstan-extensions": "<11.1.17", - "symplify\/rule-doc-generator": "<11.1.17", - "symplify\/vendor-patches": "<11.1.17", - "symplify\/smart-file-system": "<11.1.17", - "symplify\/symfony-static-dumper": "<11.1.17", - "symplify\/symplify-kernel": "<11.1.17", - "symplify\/monorepo-builder": "<11.1.17", - "symplify\/config-transformer": "<11.1.17", - "symplify\/easy-ci": "<11.1.17", - "symplify\/coding-standard": "<11.1.17", - "symplify\/easy-parallel": "<11.1.17", - "symplify\/package-builder": "<11.1.17" - }, - "minimum-stability": "dev", - "prefer-stable": true -} \ No newline at end of file