diff --git a/packages/BetterPhpDocParser/Comment/CommentsMerger.php b/packages/BetterPhpDocParser/Comment/CommentsMerger.php index ba0cc4c17f1..ae0279eb4e2 100644 --- a/packages/BetterPhpDocParser/Comment/CommentsMerger.php +++ b/packages/BetterPhpDocParser/Comment/CommentsMerger.php @@ -34,6 +34,9 @@ final class CommentsMerger // remove so comments "win" $newNode->setAttribute(AttributeKey::PHP_DOC_INFO, null); } + /** + * @api + */ public function keepParent(Node $newNode, Node $oldNode) : void { $parent = $oldNode->getAttribute(AttributeKey::PARENT_NODE); @@ -48,6 +51,9 @@ final class CommentsMerger $newNode->setAttribute(AttributeKey::PHP_DOC_INFO, $phpDocInfo); $newNode->setAttribute(AttributeKey::COMMENTS, $comments); } + /** + * @api + */ public function keepChildren(Node $newNode, Node $oldNode) : void { $childrenComments = $this->collectChildrenComments($oldNode); diff --git a/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfoFactory.php b/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfoFactory.php index 9d618da9e72..4c1a1087d1e 100644 --- a/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfoFactory.php +++ b/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfoFactory.php @@ -115,6 +115,9 @@ final class PhpDocInfoFactory $this->phpDocInfosByObjectHash[$objectHash] = $phpDocInfo; return $phpDocInfo; } + /** + * @api + */ public function createEmpty(Node $node) : \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo { /** @see \Rector\BetterPhpDocParser\PhpDocParser\DoctrineAnnotationDecorator::decorate() */ diff --git a/packages/Caching/FileSystem/DependencyResolver.php b/packages/Caching/FileSystem/DependencyResolver.php index ab175e0de3a..ae31a664cba 100644 --- a/packages/Caching/FileSystem/DependencyResolver.php +++ b/packages/Caching/FileSystem/DependencyResolver.php @@ -3,7 +3,7 @@ declare (strict_types=1); namespace Rector\Caching\FileSystem; -use PhpParser\Node; +use PhpParser\Node\Stmt; use PHPStan\Analyser\MutatingScope; use PHPStan\Analyser\NodeScopeResolver; use PHPStan\Dependency\DependencyResolver as PHPStanDependencyResolver; @@ -34,10 +34,10 @@ final class DependencyResolver /** * @return string[] */ - public function resolveDependencies(Node $node, MutatingScope $mutatingScope) : array + public function resolveDependencies(Stmt $stmt, MutatingScope $mutatingScope) : array { $analysedFileAbsolutesPaths = $this->privatesAccessor->getPrivateProperty($this->nodeScopeResolver, 'analysedFiles'); - $nodeDependencies = $this->phpStanDependencyResolver->resolveDependencies($node, $mutatingScope); + $nodeDependencies = $this->phpStanDependencyResolver->resolveDependencies($stmt, $mutatingScope); return $nodeDependencies->getFileDependencies($mutatingScope->getFile(), $analysedFileAbsolutesPaths); } } diff --git a/packages/Comments/CommentRemover.php b/packages/Comments/CommentRemover.php index 8fad7d23e56..0152179cb34 100644 --- a/packages/Comments/CommentRemover.php +++ b/packages/Comments/CommentRemover.php @@ -20,8 +20,8 @@ final class CommentRemover $this->commentRemovingNodeTraverser = $commentRemovingNodeTraverser; } /** - * @return Node[]|null * @param mixed[]|\PhpParser\Node|null $node + * @return Node[]|null */ public function removeFromNode($node) { diff --git a/packages/NodeNameResolver/NodeNameResolver.php b/packages/NodeNameResolver/NodeNameResolver.php index cdf8951106d..26c6f25aceb 100644 --- a/packages/NodeNameResolver/NodeNameResolver.php +++ b/packages/NodeNameResolver/NodeNameResolver.php @@ -87,6 +87,9 @@ final class NodeNameResolver } return \false; } + /** + * @api + */ public function isCaseSensitiveName(Node $node, string $name) : bool { if ($name === '') { diff --git a/packages/NodeNestingScope/ContextAnalyzer.php b/packages/NodeNestingScope/ContextAnalyzer.php index bd45d437fa8..9b4de45cd3a 100644 --- a/packages/NodeNestingScope/ContextAnalyzer.php +++ b/packages/NodeNestingScope/ContextAnalyzer.php @@ -51,10 +51,16 @@ final class ContextAnalyzer } return \false; } + /** + * @api + */ public function isInSwitch(Node $node) : bool { return (bool) $this->betterNodeFinder->findParentType($node, Switch_::class); } + /** + * @api + */ public function isInIf(Node $node) : bool { $breakNodes = \array_merge([If_::class], self::BREAK_NODES); diff --git a/packages/NodeNestingScope/NodeFinder/ScopeAwareNodeFinder.php b/packages/NodeNestingScope/NodeFinder/ScopeAwareNodeFinder.php index 66c40f353e6..27e96e7bd35 100644 --- a/packages/NodeNestingScope/NodeFinder/ScopeAwareNodeFinder.php +++ b/packages/NodeNestingScope/NodeFinder/ScopeAwareNodeFinder.php @@ -22,6 +22,7 @@ final class ScopeAwareNodeFinder $this->betterNodeFinder = $betterNodeFinder; } /** + * @api * Find node based on $callable or null, when the nesting scope is broken * @param callable(Node $node): bool $callable * @param array> $allowedTypes diff --git a/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php b/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php index 4ed5c9901e0..d1cbccc12e0 100644 --- a/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php +++ b/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php @@ -5,6 +5,7 @@ namespace Rector\NodeTypeResolver\NodeTypeCorrector; use PhpParser\Node; use PhpParser\Node\Arg; +use PhpParser\Node\Expr; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\Variable; use PHPStan\Type\ArrayType; @@ -55,15 +56,15 @@ final class PregMatchTypeCorrector * Special case for "preg_match(), preg_match_all()" - with 3rd argument * @see https://github.com/rectorphp/rector/issues/786 */ - public function correct(Node $node, Type $originalType) : Type + public function correct(Expr $expr, Type $originalType) : Type { - if (!$node instanceof Variable) { + if (!$expr instanceof Variable) { return $originalType; } if ($originalType instanceof ArrayType) { return $originalType; } - $variableUsages = $this->getVariableUsages($node); + $variableUsages = $this->getVariableUsages($expr); foreach ($variableUsages as $variableUsage) { $possiblyArg = $variableUsage->getAttribute(AttributeKey::PARENT_NODE); if (!$possiblyArg instanceof Arg) { @@ -82,7 +83,7 @@ final class PregMatchTypeCorrector /** @var Arg $thirdArg */ $thirdArg = $funcCallNode->args[2]; // are the same variables - if (!$this->nodeComparator->areNodesEqual($thirdArg->value, $node)) { + if (!$this->nodeComparator->areNodesEqual($thirdArg->value, $expr)) { continue; } return new ArrayType(new MixedType(), new MixedType()); diff --git a/packages/NodeTypeResolver/NodeTypeResolver.php b/packages/NodeTypeResolver/NodeTypeResolver.php index 548383c38e5..1857ad0e9ac 100644 --- a/packages/NodeTypeResolver/NodeTypeResolver.php +++ b/packages/NodeTypeResolver/NodeTypeResolver.php @@ -16,6 +16,7 @@ use PhpParser\Node\Identifier; use PhpParser\Node\Name; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\NullableType; +use PhpParser\Node\Param; use PhpParser\Node\Stmt\Property; use PHPStan\Analyser\Scope; use PHPStan\Broker\ClassAutoloadingException; @@ -233,15 +234,16 @@ final class NodeTypeResolver $type = $scope->getNativeType($expr); return $this->accessoryNonEmptyStringTypeCorrector->correct($type); } - public function isNumberType(Node $node) : bool + public function isNumberType(Expr $expr) : bool { - $nodeType = $this->getType($node); + $nodeType = $this->getType($expr); if ($nodeType instanceof IntegerType) { return \true; } return $nodeType instanceof FloatType; } /** + * @api * @param class-string $desiredType */ public function isNullableTypeOfSpecificType(Node $node, string $desiredType) : bool diff --git a/packages/NodeTypeResolver/TypeAnalyzer/ArrayTypeAnalyzer.php b/packages/NodeTypeResolver/TypeAnalyzer/ArrayTypeAnalyzer.php index 1c608bf48b9..e0c488eb1c8 100644 --- a/packages/NodeTypeResolver/TypeAnalyzer/ArrayTypeAnalyzer.php +++ b/packages/NodeTypeResolver/TypeAnalyzer/ArrayTypeAnalyzer.php @@ -3,7 +3,7 @@ declare (strict_types=1); namespace Rector\NodeTypeResolver\TypeAnalyzer; -use PhpParser\Node; +use PhpParser\Node\Expr; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Expr\StaticPropertyFetch; @@ -66,19 +66,19 @@ final class ArrayTypeAnalyzer $this->phpDocInfoFactory = $phpDocInfoFactory; $this->reflectionResolver = $reflectionResolver; } - public function isArrayType(Node $node) : bool + public function isArrayType(Expr $expr) : bool { - $nodeType = $this->nodeTypeResolver->getType($node); - $nodeType = $this->pregMatchTypeCorrector->correct($node, $nodeType); + $nodeType = $this->nodeTypeResolver->getType($expr); + $nodeType = $this->pregMatchTypeCorrector->correct($expr, $nodeType); if ($this->isIntersectionArrayType($nodeType)) { return \true; } // PHPStan false positive, when variable has type[] docblock, but default array is missing - if ($node instanceof PropertyFetch || $node instanceof StaticPropertyFetch) { - if ($this->isPropertyFetchWithArrayDefault($node)) { + if ($expr instanceof PropertyFetch || $expr instanceof StaticPropertyFetch) { + if ($this->isPropertyFetchWithArrayDefault($expr)) { return \true; } - if ($this->isPropertyFetchWithArrayDocblockWithoutDefault($node)) { + if ($this->isPropertyFetchWithArrayDocblockWithoutDefault($expr)) { return \false; } } @@ -86,7 +86,7 @@ final class ArrayTypeAnalyzer if ($nodeType->isExplicitMixed()) { return \false; } - if ($this->isPropertyFetchWithArrayDefault($node)) { + if ($this->isPropertyFetchWithArrayDefault($expr)) { return \true; } } @@ -111,16 +111,16 @@ final class ArrayTypeAnalyzer } return \true; } - private function isPropertyFetchWithArrayDocblockWithoutDefault(Node $node) : bool + private function isPropertyFetchWithArrayDocblockWithoutDefault(Expr $expr) : bool { - if (!$node instanceof PropertyFetch && !$node instanceof StaticPropertyFetch) { + if (!$expr instanceof PropertyFetch && !$expr instanceof StaticPropertyFetch) { return \false; } - $classLike = $this->betterNodeFinder->findParentType($node, ClassLike::class); + $classLike = $this->betterNodeFinder->findParentType($expr, ClassLike::class); if (!$classLike instanceof ClassLike) { return \false; } - $propertyName = $this->nodeNameResolver->getName($node->name); + $propertyName = $this->nodeNameResolver->getName($expr->name); if ($propertyName === null) { return \false; } @@ -142,16 +142,16 @@ final class ArrayTypeAnalyzer /** * phpstan bug workaround - https://phpstan.org/r/0443f283-244c-42b8-8373-85e7deb3504c */ - private function isPropertyFetchWithArrayDefault(Node $node) : bool + private function isPropertyFetchWithArrayDefault(Expr $expr) : bool { - if (!$node instanceof PropertyFetch && !$node instanceof StaticPropertyFetch) { + if (!$expr instanceof PropertyFetch && !$expr instanceof StaticPropertyFetch) { return \false; } - $classLike = $this->betterNodeFinder->findParentType($node, ClassLike::class); + $classLike = $this->betterNodeFinder->findParentType($expr, ClassLike::class); if (!$classLike instanceof ClassLike) { return \false; } - $propertyName = $this->nodeNameResolver->getName($node->name); + $propertyName = $this->nodeNameResolver->getName($expr->name); if ($propertyName === null) { return \false; } @@ -162,7 +162,7 @@ final class ArrayTypeAnalyzer return $propertyProperty->default instanceof Array_; } // B. another object property - $phpPropertyReflection = $this->reflectionResolver->resolvePropertyReflectionFromPropertyFetch($node); + $phpPropertyReflection = $this->reflectionResolver->resolvePropertyReflectionFromPropertyFetch($expr); if ($phpPropertyReflection instanceof PhpPropertyReflection) { $reflectionProperty = $phpPropertyReflection->getNativeReflection(); return \is_array($reflectionProperty->getDefaultValue()); diff --git a/packages/NodeTypeResolver/TypeAnalyzer/CountableTypeAnalyzer.php b/packages/NodeTypeResolver/TypeAnalyzer/CountableTypeAnalyzer.php index 8cf04547534..61e9689ec3f 100644 --- a/packages/NodeTypeResolver/TypeAnalyzer/CountableTypeAnalyzer.php +++ b/packages/NodeTypeResolver/TypeAnalyzer/CountableTypeAnalyzer.php @@ -3,7 +3,7 @@ declare (strict_types=1); namespace Rector\NodeTypeResolver\TypeAnalyzer; -use PhpParser\Node; +use PhpParser\Node\Expr; use PHPStan\Type\ObjectType; use Rector\NodeTypeResolver\NodeTypeCorrector\PregMatchTypeCorrector; use Rector\NodeTypeResolver\NodeTypeResolver; @@ -35,15 +35,15 @@ final class CountableTypeAnalyzer $this->pregMatchTypeCorrector = $pregMatchTypeCorrector; $this->countableObjectTypes = [new ObjectType('Countable'), new ObjectType('SimpleXMLElement'), new ObjectType('ResourceBundle')]; } - public function isCountableType(Node $node) : bool + public function isCountableType(Expr $expr) : bool { - $nodeType = $this->nodeTypeResolver->getType($node); - $nodeType = $this->pregMatchTypeCorrector->correct($node, $nodeType); + $nodeType = $this->nodeTypeResolver->getType($expr); + $nodeType = $this->pregMatchTypeCorrector->correct($expr, $nodeType); foreach ($this->countableObjectTypes as $countableObjectType) { if ($countableObjectType->isSuperTypeOf($nodeType)->yes()) { return \true; } } - return $this->arrayTypeAnalyzer->isArrayType($node); + return $this->arrayTypeAnalyzer->isArrayType($expr); } } diff --git a/packages/PostRector/Collector/UseNodesToAddCollector.php b/packages/PostRector/Collector/UseNodesToAddCollector.php index 91be8793a9f..2d88ec5b95d 100644 --- a/packages/PostRector/Collector/UseNodesToAddCollector.php +++ b/packages/PostRector/Collector/UseNodesToAddCollector.php @@ -4,6 +4,7 @@ declare (strict_types=1); namespace Rector\PostRector\Collector; use PhpParser\Node; +use PhpParser\Node\Name; use Rector\Core\Provider\CurrentFileProvider; use Rector\Core\ValueObject\Application\File; use Rector\Naming\Naming\UseImportsResolver; @@ -72,9 +73,9 @@ final class UseNodesToAddCollector implements NodeCollectorInterface } return $objectTypes; } - public function hasImport(File $file, Node $node, FullyQualifiedObjectType $fullyQualifiedObjectType) : bool + public function hasImport(File $file, Name $name, FullyQualifiedObjectType $fullyQualifiedObjectType) : bool { - $useImports = $this->getUseImportTypesByNode($file, $node); + $useImports = $this->getUseImportTypesByNode($file, $name); foreach ($useImports as $useImport) { if ($useImport->equals($fullyQualifiedObjectType)) { return \true; diff --git a/packages/VendorLocker/VendorLockResolver.php b/packages/VendorLocker/VendorLockResolver.php index 4ea1415dc82..f0239fbecac 100644 --- a/packages/VendorLocker/VendorLockResolver.php +++ b/packages/VendorLocker/VendorLockResolver.php @@ -3,8 +3,8 @@ declare (strict_types=1); namespace Rector\VendorLocker; -use PhpParser\Node; use PhpParser\Node\Stmt\ClassMethod; +use PhpParser\Node\Stmt\Function_; use PhpParser\Node\Stmt\Property; use Rector\VendorLocker\NodeVendorLocker\ClassMethodParamVendorLockResolver; use Rector\VendorLocker\NodeVendorLocker\ClassMethodReturnVendorLockResolver; @@ -32,7 +32,10 @@ final class VendorLockResolver $this->classMethodReturnVendorLockResolver = $classMethodReturnVendorLockResolver; $this->propertyTypeVendorLockResolver = $propertyTypeVendorLockResolver; } - public function isClassMethodParamLockedIn(Node $node) : bool + /** + * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $node + */ + public function isClassMethodParamLockedIn($node) : bool { if (!$node instanceof ClassMethod) { return \false; diff --git a/rules/DeadCode/NodeManipulator/VariadicFunctionLikeDetector.php b/rules/DeadCode/NodeManipulator/VariadicFunctionLikeDetector.php index 667fb3688e6..c4826b2222c 100644 --- a/rules/DeadCode/NodeManipulator/VariadicFunctionLikeDetector.php +++ b/rules/DeadCode/NodeManipulator/VariadicFunctionLikeDetector.php @@ -30,6 +30,9 @@ final class VariadicFunctionLikeDetector $this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser; $this->nodeNameResolver = $nodeNameResolver; } + /** + * @api + */ public function isVariadic(FunctionLike $functionLike) : bool { $isVariadic = \false; diff --git a/rules/DeadCode/TypeNodeAnalyzer/MixedArrayTypeNodeAnalyzer.php b/rules/DeadCode/TypeNodeAnalyzer/MixedArrayTypeNodeAnalyzer.php index 6df39274f84..01f631407ed 100644 --- a/rules/DeadCode/TypeNodeAnalyzer/MixedArrayTypeNodeAnalyzer.php +++ b/rules/DeadCode/TypeNodeAnalyzer/MixedArrayTypeNodeAnalyzer.php @@ -4,13 +4,13 @@ declare (strict_types=1); namespace Rector\DeadCode\TypeNodeAnalyzer; use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode; -use PHPStan\PhpDocParser\Ast\Type\UnionTypeNode; +use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode; use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode; final class MixedArrayTypeNodeAnalyzer { - public function hasMixedArrayType(UnionTypeNode $unionTypeNode) : bool + public function hasMixedArrayType(BracketsAwareUnionTypeNode $bracketsAwareUnionTypeNode) : bool { - $types = $unionTypeNode->types; + $types = $bracketsAwareUnionTypeNode->types; foreach ($types as $type) { if ($type instanceof SpacingAwareArrayTypeNode) { $typeNode = $type->type; diff --git a/rules/DogFood/NodeAnalyzer/ContainerConfiguratorCallAnalyzer.php b/rules/DogFood/NodeAnalyzer/ContainerConfiguratorCallAnalyzer.php index 6f3d178b453..60214caaa8c 100644 --- a/rules/DogFood/NodeAnalyzer/ContainerConfiguratorCallAnalyzer.php +++ b/rules/DogFood/NodeAnalyzer/ContainerConfiguratorCallAnalyzer.php @@ -3,7 +3,6 @@ declare (strict_types=1); namespace Rector\DogFood\NodeAnalyzer; -use PhpParser\Node\Expr; use PhpParser\Node\Expr\MethodCall; use Rector\Core\Contract\Rector\RectorInterface; use Rector\Core\PhpParser\Node\Value\ValueResolver; @@ -41,14 +40,11 @@ final class ContainerConfiguratorCallAnalyzer } return \is_a($serviceClass, RectorInterface::class, \true); } - public function isMethodCallNamed(Expr $expr, string $variableName, string $methodName) : bool + public function isMethodCallNamed(MethodCall $methodCall, string $variableName, string $methodName) : bool { - if (!$expr instanceof MethodCall) { + if (!$this->nodeNameResolver->isName($methodCall->var, $variableName)) { return \false; } - if (!$this->nodeNameResolver->isName($expr->var, $variableName)) { - return \false; - } - return $this->nodeNameResolver->isName($expr->name, $methodName); + return $this->nodeNameResolver->isName($methodCall->name, $methodName); } } diff --git a/rules/Privatization/NodeManipulator/VisibilityManipulator.php b/rules/Privatization/NodeManipulator/VisibilityManipulator.php index 08d69700051..9b8499f02f6 100644 --- a/rules/Privatization/NodeManipulator/VisibilityManipulator.php +++ b/rules/Privatization/NodeManipulator/VisibilityManipulator.php @@ -56,6 +56,7 @@ final class VisibilityManipulator $this->addVisibilityFlag($node, Visibility::FINAL); } /** + * @api * @param \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\ClassMethod $node */ public function makeNonFinal($node) : void diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e4931d8ff32..ea415cb7988 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 = 'ac94ddd5bd269b17afc339f39af711c02d56b34a'; + public const PACKAGE_VERSION = 'ce32685688660a000848322caadcf336bfc282f8'; /** * @api * @var string */ - public const RELEASE_DATE = '2022-07-16 16:19:23'; + public const RELEASE_DATE = '2022-07-17 03:11:17'; /** * @var int */ diff --git a/src/NodeAnalyzer/TerminatedNodeAnalyzer.php b/src/NodeAnalyzer/TerminatedNodeAnalyzer.php index 41f53e925db..01f372a96ca 100644 --- a/src/NodeAnalyzer/TerminatedNodeAnalyzer.php +++ b/src/NodeAnalyzer/TerminatedNodeAnalyzer.php @@ -39,10 +39,7 @@ final class TerminatedNodeAnalyzer * @var array> */ private const ALLOWED_CONTINUE_CURRENT_STMTS = [InlineHTML::class, Nop::class]; - /** - * @param \PhpParser\Node\Stmt\TryCatch|\PhpParser\Node\Stmt\If_|\PhpParser\Node\Stmt\Switch_|\PhpParser\Node $node - */ - public function isAlwaysTerminated($node, Node $currentStmt) : bool + public function isAlwaysTerminated(Stmt $node, Stmt $currentStmt) : bool { if (\in_array(\get_class($currentStmt), self::ALLOWED_CONTINUE_CURRENT_STMTS, \true)) { return \false; @@ -72,7 +69,7 @@ final class TerminatedNodeAnalyzer } return \false; } - private function isTerminatedInLastStmtsSwitch(Switch_ $switch, Node $node) : bool + private function isTerminatedInLastStmtsSwitch(Switch_ $switch, Stmt $stmt) : bool { if ($switch->cases === []) { return \false; @@ -85,42 +82,42 @@ final class TerminatedNodeAnalyzer if ($case->stmts === [] && isset($switch->cases[$key + 1])) { continue; } - if (!$this->isTerminatedInLastStmts($case->stmts, $node)) { + if (!$this->isTerminatedInLastStmts($case->stmts, $stmt)) { return \false; } } return $hasDefault; } - private function isTerminatedInLastStmtsTryCatch(TryCatch $tryCatch, Node $node) : bool + private function isTerminatedInLastStmtsTryCatch(TryCatch $tryCatch, Stmt $stmt) : bool { - if ($tryCatch->finally instanceof Finally_ && $this->isTerminatedInLastStmts($tryCatch->finally->stmts, $node)) { + if ($tryCatch->finally instanceof Finally_ && $this->isTerminatedInLastStmts($tryCatch->finally->stmts, $stmt)) { return \true; } foreach ($tryCatch->catches as $catch) { - if (!$this->isTerminatedInLastStmts($catch->stmts, $node)) { + if (!$this->isTerminatedInLastStmts($catch->stmts, $stmt)) { return \false; } } - return $this->isTerminatedInLastStmts($tryCatch->stmts, $node); + return $this->isTerminatedInLastStmts($tryCatch->stmts, $stmt); } - private function isTerminatedInLastStmtsIf(If_ $if, Node $node) : bool + private function isTerminatedInLastStmtsIf(If_ $if, Stmt $stmt) : bool { // Without ElseIf_[] and Else_, after If_ is possibly executable if ($if->elseifs === [] && !$if->else instanceof Else_) { return \false; } foreach ($if->elseifs as $elseIf) { - if (!$this->isTerminatedInLastStmts($elseIf->stmts, $node)) { + if (!$this->isTerminatedInLastStmts($elseIf->stmts, $stmt)) { return \false; } } - if (!$this->isTerminatedInLastStmts($if->stmts, $node)) { + if (!$this->isTerminatedInLastStmts($if->stmts, $stmt)) { return \false; } if (!$if->else instanceof Else_) { return \false; } - return $this->isTerminatedInLastStmts($if->else->stmts, $node); + return $this->isTerminatedInLastStmts($if->else->stmts, $stmt); } /** * @param Stmt[] $stmts diff --git a/src/NodeManipulator/ClassInsertManipulator.php b/src/NodeManipulator/ClassInsertManipulator.php index 1c0f616017a..928d1b027d8 100644 --- a/src/NodeManipulator/ClassInsertManipulator.php +++ b/src/NodeManipulator/ClassInsertManipulator.php @@ -36,6 +36,7 @@ final class ClassInsertManipulator $this->nodeNameResolver = $nodeNameResolver; } /** + * @api * @param \PhpParser\Node\Stmt\Property|\PhpParser\Node\Stmt\ClassConst|\PhpParser\Node\Stmt\ClassMethod $stmt */ public function addAsFirstMethod(Class_ $class, $stmt) : void diff --git a/src/NodeManipulator/PropertyFetchAssignManipulator.php b/src/NodeManipulator/PropertyFetchAssignManipulator.php index 90c4fff1b6e..3e775e3592e 100644 --- a/src/NodeManipulator/PropertyFetchAssignManipulator.php +++ b/src/NodeManipulator/PropertyFetchAssignManipulator.php @@ -79,10 +79,10 @@ final class PropertyFetchAssignManipulator /** * @return string[] */ - public function getPropertyNamesOfAssignOfVariable(Node $node, string $paramName) : array + public function getPropertyNamesOfAssignOfVariable(ClassMethod $classMethod, string $paramName) : array { $propertyNames = []; - $this->simpleCallableNodeTraverser->traverseNodesWithCallable($node, function (Node $node) use($paramName, &$propertyNames) { + $this->simpleCallableNodeTraverser->traverseNodesWithCallable($classMethod, function (Node $node) use($paramName, &$propertyNames) { if (!$node instanceof Assign) { return null; } diff --git a/vendor/autoload.php b/vendor/autoload.php index 67f0c7c174e..517c72b5df0 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 ComposerAutoloaderInit1a64da067ec7bf92e7ada32feabff47c::getLoader(); +return ComposerAutoloaderInit227a1866e9ea4ee32c5211f8e530ed01::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 7f52141463b..9277b537777 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit1a64da067ec7bf92e7ada32feabff47c +class ComposerAutoloaderInit227a1866e9ea4ee32c5211f8e530ed01 { private static $loader; @@ -22,19 +22,19 @@ class ComposerAutoloaderInit1a64da067ec7bf92e7ada32feabff47c return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit1a64da067ec7bf92e7ada32feabff47c', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit227a1866e9ea4ee32c5211f8e530ed01', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit1a64da067ec7bf92e7ada32feabff47c', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit227a1866e9ea4ee32c5211f8e530ed01', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit1a64da067ec7bf92e7ada32feabff47c::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit227a1866e9ea4ee32c5211f8e530ed01::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticInit1a64da067ec7bf92e7ada32feabff47c::$files; + $includeFiles = \Composer\Autoload\ComposerStaticInit227a1866e9ea4ee32c5211f8e530ed01::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire1a64da067ec7bf92e7ada32feabff47c($fileIdentifier, $file); + composerRequire227a1866e9ea4ee32c5211f8e530ed01($fileIdentifier, $file); } return $loader; @@ -46,7 +46,7 @@ class ComposerAutoloaderInit1a64da067ec7bf92e7ada32feabff47c * @param string $file * @return void */ -function composerRequire1a64da067ec7bf92e7ada32feabff47c($fileIdentifier, $file) +function composerRequire227a1866e9ea4ee32c5211f8e530ed01($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 a864bf93861..76793155b84 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit1a64da067ec7bf92e7ada32feabff47c +class ComposerStaticInit227a1866e9ea4ee32c5211f8e530ed01 { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', @@ -3416,9 +3416,9 @@ class ComposerStaticInit1a64da067ec7bf92e7ada32feabff47c public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit1a64da067ec7bf92e7ada32feabff47c::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit1a64da067ec7bf92e7ada32feabff47c::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit1a64da067ec7bf92e7ada32feabff47c::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit227a1866e9ea4ee32c5211f8e530ed01::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit227a1866e9ea4ee32c5211f8e530ed01::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit227a1866e9ea4ee32c5211f8e530ed01::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 3a5a49d6b1e..547e6a9e916 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2415,12 +2415,12 @@ "source": { "type": "git", "url": "https:\/\/github.com\/rectorphp\/rector-symfony.git", - "reference": "6dd877b709a89b0bb939bdadc757d1122cd0d017" + "reference": "2053a16e0fa3f90f5840e4058992266cd9d6233c" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/6dd877b709a89b0bb939bdadc757d1122cd0d017", - "reference": "6dd877b709a89b0bb939bdadc757d1122cd0d017", + "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/2053a16e0fa3f90f5840e4058992266cd9d6233c", + "reference": "2053a16e0fa3f90f5840e4058992266cd9d6233c", "shasum": "" }, "require": { @@ -2449,7 +2449,7 @@ "symplify\/rule-doc-generator": "^11.0", "symplify\/vendor-patches": "^11.0" }, - "time": "2022-07-12T13:16:54+00:00", + "time": "2022-07-16T16:09:39+00:00", "default-branch": true, "type": "rector-extension", "extra": { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 256737dad25..4cbf6cd3fa8 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -2,4 +2,4 @@ namespace RectorPrefix202207; -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.13.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/neon' => array('pretty_version' => 'v3.3.3', 'version' => '3.3.3.0', 'reference' => '22e384da162fab42961d48eb06c06d3ad0c11b95', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', '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.6.4', 'version' => '1.6.4.0', 'reference' => '135607f9ccc297d6923d49c2bcf309f509413215', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.1', 'version' => '1.8.1.0', 'reference' => '8dbba631fa32f4b289404469c2afd6122fd61d67', '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.11.0', 'version' => '1.11.0.0', 'reference' => 'f474156aaab4f09041144fa8b57c7d70aed32a1c', '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.13.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '86ab8c377f4aedd015bfa91b8eb6c08237d5733a', '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' => '4539d7dcc5015d469f370f7e7c6d5a329e203237', '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' => '97f49a2bb2262e89a56b27349cf789d96b9b1815', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-generator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'be4b95ac5bbaa7007aedef2d72870a9403cd58c1', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-generator', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '425881a502cc218aabb132e1641f97f7f6704e44', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-nette' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'bee7c1906f440323abec9eba0fe5b691d23073aa', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-nette', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'd82661887258a84d57465d34f0960653c4018a5a', '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' => 'b44203e491b69e5638fc439620b39549fa8c1bc6', '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.13.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '6dd877b709a89b0bb939bdadc757d1122cd0d017', '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.0', 'version' => '6.1.0.0', 'reference' => 'ed8d12417bcacd2d969750feb1fe1aab1c11e613', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.2', 'version' => '6.1.2.0', 'reference' => '7a86c1c42fbcb69b59768504c7bca1d3767760b7', '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.2', 'version' => '6.1.2.0', 'reference' => '5635ff016a814d7984b1c4644ad28e7df546077b', '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.0', 'version' => '6.1.0.0', 'reference' => '3132d2f43ca799c2aa099f9738d98228c56baa5d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.0', 'version' => '6.1.0.0', 'reference' => '45b8beb69d6eb3b05a65689ebfd4222326773f8f', '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.2', 'version' => '6.1.2.0', 'reference' => '1903f2879875280c5af944625e8246d81c2f0604', '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/astral' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '4f84156609f6b7ff031bc3d4d3cd7ab91f2e9eb4', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../symplify/astral', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/autowire-array-parameter' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '182d8a7f496cfd1a2584c1a568c5c04e663a4039', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'd68c8393cb6d25a37c78ed0757c15a20c8b5f335', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.0.8', 'version' => '11.0.8.0', 'reference' => '2fc496a8dc85a216c241ebb68ac30fea7e7ddd1b', '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' => 'ae96304acc0ff841ba111c338e9890175884c757', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '926bbe1189e807a54d3a21c22413f0579ae55f95', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '2815865deefdf72f575969123f4fdb8b0ed74a06', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '11.0.8', 'version' => '11.0.8.0', 'reference' => '6ecbaec9643341a764535cdd3a80bb9cca2c6cd3', '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' => '6b39b4f1d9299c978a2d793db4e333155a9e74fc', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '79b6fbae579fbaba9e5e737b1f5b85b8cb7bfd4c', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.9.3', 'version' => '2.9.3.0', 'reference' => '3aadc88c00d7aca84ce2f07da236a703cc183d52', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', '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.13.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/neon' => array('pretty_version' => 'v3.3.3', 'version' => '3.3.3.0', 'reference' => '22e384da162fab42961d48eb06c06d3ad0c11b95', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', '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.6.4', 'version' => '1.6.4.0', 'reference' => '135607f9ccc297d6923d49c2bcf309f509413215', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.1', 'version' => '1.8.1.0', 'reference' => '8dbba631fa32f4b289404469c2afd6122fd61d67', '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.11.0', 'version' => '1.11.0.0', 'reference' => 'f474156aaab4f09041144fa8b57c7d70aed32a1c', '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.13.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '86ab8c377f4aedd015bfa91b8eb6c08237d5733a', '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' => '4539d7dcc5015d469f370f7e7c6d5a329e203237', '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' => '97f49a2bb2262e89a56b27349cf789d96b9b1815', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-generator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'be4b95ac5bbaa7007aedef2d72870a9403cd58c1', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-generator', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '425881a502cc218aabb132e1641f97f7f6704e44', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-nette' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'bee7c1906f440323abec9eba0fe5b691d23073aa', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-nette', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'd82661887258a84d57465d34f0960653c4018a5a', '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' => 'b44203e491b69e5638fc439620b39549fa8c1bc6', '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.13.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '2053a16e0fa3f90f5840e4058992266cd9d6233c', '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.0', 'version' => '6.1.0.0', 'reference' => 'ed8d12417bcacd2d969750feb1fe1aab1c11e613', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.2', 'version' => '6.1.2.0', 'reference' => '7a86c1c42fbcb69b59768504c7bca1d3767760b7', '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.2', 'version' => '6.1.2.0', 'reference' => '5635ff016a814d7984b1c4644ad28e7df546077b', '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.0', 'version' => '6.1.0.0', 'reference' => '3132d2f43ca799c2aa099f9738d98228c56baa5d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.0', 'version' => '6.1.0.0', 'reference' => '45b8beb69d6eb3b05a65689ebfd4222326773f8f', '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.2', 'version' => '6.1.2.0', 'reference' => '1903f2879875280c5af944625e8246d81c2f0604', '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/astral' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '4f84156609f6b7ff031bc3d4d3cd7ab91f2e9eb4', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../symplify/astral', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/autowire-array-parameter' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '182d8a7f496cfd1a2584c1a568c5c04e663a4039', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'd68c8393cb6d25a37c78ed0757c15a20c8b5f335', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.0.8', 'version' => '11.0.8.0', 'reference' => '2fc496a8dc85a216c241ebb68ac30fea7e7ddd1b', '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' => 'ae96304acc0ff841ba111c338e9890175884c757', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '926bbe1189e807a54d3a21c22413f0579ae55f95', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '2815865deefdf72f575969123f4fdb8b0ed74a06', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '11.0.8', 'version' => '11.0.8.0', 'reference' => '6ecbaec9643341a764535cdd3a80bb9cca2c6cd3', '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' => '6b39b4f1d9299c978a2d793db4e333155a9e74fc', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '79b6fbae579fbaba9e5e737b1f5b85b8cb7bfd4c', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(0 => '11.1.x-dev'), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.9.3', 'version' => '2.9.3.0', 'reference' => '3aadc88c00d7aca84ce2f07da236a703cc183d52', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', '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/rector/extension-installer/src/GeneratedConfig.php b/vendor/rector/extension-installer/src/GeneratedConfig.php index 8be682d3b0a..e2e705aad50 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 86ab8c3'), '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 4539d7d'), '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 97f49a2'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main be4b95a'), '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 425881a'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main bee7c19'), '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 d826618'), '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 b44203e'), '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 6dd877b')); + 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 86ab8c3'), '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 4539d7d'), '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 97f49a2'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main be4b95a'), '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 425881a'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main bee7c19'), '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 d826618'), '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 b44203e'), '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 2053a16')); private function __construct() { }