diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md
index be682e318da..60b298bbb4f 100644
--- a/docs/rector_rules_overview.md
+++ b/docs/rector_rules_overview.md
@@ -1,4 +1,4 @@
-# 401 Rules Overview
+# 394 Rules Overview
@@ -12,8 +12,6 @@
- [Compatibility](#compatibility) (1)
-- [Composer](#composer) (6)
-
- [DeadCode](#deadcode) (47)
- [DependencyInjection](#dependencyinjection) (2)
@@ -54,7 +52,7 @@
- [Privatization](#privatization) (8)
-- [Removing](#removing) (6)
+- [Removing](#removing) (5)
- [RemovingStatic](#removingstatic) (1)
@@ -2521,205 +2519,6 @@ Change annotation to attribute compatible form, see https://tomasvotruba.com/blo
-## Composer
-
-### AddPackageToRequireComposerRector
-
-Add package to "require" in `composer.json`
-
-:wrench: **configure it!**
-
-- class: [`Rector\Composer\Rector\AddPackageToRequireComposerRector`](../rules/Composer/Rector/AddPackageToRequireComposerRector.php)
-
-```php
-use Rector\Composer\Rector\AddPackageToRequireComposerRector;
-use Rector\Composer\ValueObject\PackageAndVersion;
-use Rector\Config\RectorConfig;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->ruleWithConfiguration(
- AddPackageToRequireComposerRector::class,
- [new PackageAndVersion('symfony/console', '^3.4')]
- );
-};
-```
-
-↓
-
-```diff
- {
-+ "require": {
-+ "symfony/console": "^3.4"
-+ }
- }
-```
-
-
-
-### AddPackageToRequireDevComposerRector
-
-Add package to "require-dev" in `composer.json`
-
-:wrench: **configure it!**
-
-- class: [`Rector\Composer\Rector\AddPackageToRequireDevComposerRector`](../rules/Composer/Rector/AddPackageToRequireDevComposerRector.php)
-
-```php
-use Rector\Composer\Rector\AddPackageToRequireDevComposerRector;
-use Rector\Composer\ValueObject\PackageAndVersion;
-use Rector\Config\RectorConfig;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->ruleWithConfiguration(
- AddPackageToRequireDevComposerRector::class,
- [new PackageAndVersion('symfony/console', '^3.4')]
- );
-};
-```
-
-↓
-
-```diff
- {
-+ "require-dev": {
-+ "symfony/console": "^3.4"
-+ }
- }
-```
-
-
-
-### ChangePackageVersionComposerRector
-
-Change package version `composer.json`
-
-:wrench: **configure it!**
-
-- class: [`Rector\Composer\Rector\ChangePackageVersionComposerRector`](../rules/Composer/Rector/ChangePackageVersionComposerRector.php)
-
-```php
-use Rector\Composer\Rector\ChangePackageVersionComposerRector;
-use Rector\Composer\ValueObject\PackageAndVersion;
-use Rector\Config\RectorConfig;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->ruleWithConfiguration(
- ChangePackageVersionComposerRector::class,
- [new PackageAndVersion('symfony/console', '^4.4')]
- );
-};
-```
-
-↓
-
-```diff
- {
- "require": {
-- "symfony/console": "^3.4"
-+ "symfony/console": "^4.4"
- }
- }
-```
-
-
-
-### RemovePackageComposerRector
-
-Remove package from "require" and "require-dev" in `composer.json`
-
-:wrench: **configure it!**
-
-- class: [`Rector\Composer\Rector\RemovePackageComposerRector`](../rules/Composer/Rector/RemovePackageComposerRector.php)
-
-```php
-use Rector\Composer\Rector\RemovePackageComposerRector;
-use Rector\Config\RectorConfig;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->ruleWithConfiguration(RemovePackageComposerRector::class, ['symfony/console']);
-};
-```
-
-↓
-
-```diff
- {
-- "require": {
-- "symfony/console": "^3.4"
-- }
- }
-```
-
-
-
-### RenamePackageComposerRector
-
-Change package name in `composer.json`
-
-:wrench: **configure it!**
-
-- class: [`Rector\Composer\Rector\RenamePackageComposerRector`](../rules/Composer/Rector/RenamePackageComposerRector.php)
-
-```php
-use Rector\Composer\Rector\RenamePackageComposerRector;
-use Rector\Composer\ValueObject\RenamePackage;
-use Rector\Config\RectorConfig;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->ruleWithConfiguration(
- RenamePackageComposerRector::class,
- [new RenamePackage('rector/rector', 'rector/rector-src')]
- );
-};
-```
-
-↓
-
-```diff
- {
- "require": {
-- "rector/rector": "dev-main"
-+ "rector/rector-src": "dev-main"
- }
- }
-```
-
-
-
-### ReplacePackageAndVersionComposerRector
-
-Change package name and version `composer.json`
-
-:wrench: **configure it!**
-
-- class: [`Rector\Composer\Rector\ReplacePackageAndVersionComposerRector`](../rules/Composer/Rector/ReplacePackageAndVersionComposerRector.php)
-
-```php
-use Rector\Composer\Rector\ReplacePackageAndVersionComposerRector;
-use Rector\Composer\ValueObject\ReplacePackageAndVersion;
-use Rector\Config\RectorConfig;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->ruleWithConfiguration(
- ReplacePackageAndVersionComposerRector::class,
- [new ReplacePackageAndVersion('symfony/console', 'symfony/http-kernel', '^4.4')]
- );
-};
-```
-
-↓
-
-```diff
- {
- "require-dev": {
-- "symfony/console": "^3.4"
-+ "symfony/http-kernel": "^4.4"
- }
- }
-```
-
-
-
## DeadCode
### RecastingRemovalRector
@@ -6789,36 +6588,6 @@ return static function (RectorConfig $rectorConfig): void {
-### RemoveFuncCallRector
-
-Remove ini_get by configuration
-
-:wrench: **configure it!**
-
-- class: [`Rector\Removing\Rector\FuncCall\RemoveFuncCallRector`](../rules/Removing/Rector/FuncCall/RemoveFuncCallRector.php)
-
-```php
-use Rector\Config\RectorConfig;
-use Rector\Removing\Rector\FuncCall\RemoveFuncCallRector;
-use Rector\Removing\ValueObject\RemoveFuncCall;
-
-return static function (RectorConfig $rectorConfig): void {
- $rectorConfig->ruleWithConfiguration(
- RemoveFuncCallRector::class,
- [new RemoveFuncCall('ini_get', [['y2k_compliance']])]
- );
-};
-```
-
-↓
-
-```diff
--ini_get('y2k_compliance');
- ini_get('keep_me');
-```
-
-
-
### RemoveInterfacesRector
Removes interfaces usage from class.
@@ -8590,12 +8359,7 @@ use Rector\Transform\ValueObject\StaticCallToMethodCall;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(
StaticCallToMethodCallRector::class,
- [new StaticCallToMethodCall(
- 'Nette\Utils\FileSystem',
- 'write',
- 'Symplify\SmartFileSystem\SmartFileSystem',
- 'dumpFile'
- )]
+ [new StaticCallToMethodCall('Nette\Utils\FileSystem', 'write', 'App\Custom\SmartFileSystem', 'dumpFile')]
);
};
```
@@ -8604,7 +8368,7 @@ return static function (RectorConfig $rectorConfig): void {
```diff
-use Nette\Utils\FileSystem;
-+use Symplify\SmartFileSystem\SmartFileSystem;
++use App\Custom\SmartFileSystem;
class SomeClass
{
diff --git a/rules/CodeQuality/Rector/Identical/SimplifyArraySearchRector.php b/rules/CodeQuality/Rector/Identical/SimplifyArraySearchRector.php
index 5fb662517fd..2b9f420797e 100644
--- a/rules/CodeQuality/Rector/Identical/SimplifyArraySearchRector.php
+++ b/rules/CodeQuality/Rector/Identical/SimplifyArraySearchRector.php
@@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\CodeQuality\Rector\Identical;
use PhpParser\Node;
+use PhpParser\Node\Expr;
use PhpParser\Node\Expr\BinaryOp\Identical;
use PhpParser\Node\Expr\BinaryOp\NotIdentical;
use PhpParser\Node\Expr\BooleanNot;
@@ -49,7 +50,7 @@ final class SimplifyArraySearchRector extends AbstractRector
}
return $this->nodeNameResolver->isName($node, 'array_search');
}, function (Node $node) : bool {
- return $this->valueResolver->isFalse($node);
+ return $node instanceof Expr && $this->valueResolver->isFalse($node);
});
if (!$twoNodeMatch instanceof TwoNodeMatch) {
return null;
diff --git a/rules/CodeQuality/Rector/Identical/SimplifyConditionsRector.php b/rules/CodeQuality/Rector/Identical/SimplifyConditionsRector.php
index 676d49188e4..05dd8961604 100644
--- a/rules/CodeQuality/Rector/Identical/SimplifyConditionsRector.php
+++ b/rules/CodeQuality/Rector/Identical/SimplifyConditionsRector.php
@@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\CodeQuality\Rector\Identical;
use PhpParser\Node;
+use PhpParser\Node\Expr;
use PhpParser\Node\Expr\BinaryOp;
use PhpParser\Node\Expr\BinaryOp\BooleanOr;
use PhpParser\Node\Expr\BinaryOp\Identical;
@@ -71,7 +72,7 @@ final class SimplifyConditionsRector extends AbstractRector
$twoNodeMatch = $this->binaryOpManipulator->matchFirstAndSecondConditionNode($identical, static function (Node $node) : bool {
return $node instanceof Identical || $node instanceof NotIdentical;
}, function (Node $node) : bool {
- return $this->valueResolver->isTrueOrFalse($node);
+ return $node instanceof Expr && $this->valueResolver->isTrueOrFalse($node);
});
if (!$twoNodeMatch instanceof TwoNodeMatch) {
return $twoNodeMatch;
diff --git a/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php b/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php
index e2f509e5929..0d9d450170f 100644
--- a/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php
+++ b/rules/CodeQuality/Rector/If_/SimplifyIfReturnBoolRector.php
@@ -73,8 +73,10 @@ CODE_SAMPLE
$ifInnerNode = $node->stmts[0];
/** @var Return_ $nextNode */
$nextNode = $node->getAttribute(AttributeKey::NEXT_NODE);
- /** @var Node $innerIfInnerNode */
$innerIfInnerNode = $ifInnerNode->expr;
+ if (!$innerIfInnerNode instanceof Expr) {
+ return null;
+ }
if ($this->valueResolver->isTrue($innerIfInnerNode)) {
$newReturnNode = $this->processReturnTrue($node, $nextNode);
} elseif ($this->valueResolver->isFalse($innerIfInnerNode)) {
diff --git a/rules/DeadCode/NodeManipulator/CountManipulator.php b/rules/DeadCode/NodeManipulator/CountManipulator.php
index b49e0790104..cc69510c17e 100644
--- a/rules/DeadCode/NodeManipulator/CountManipulator.php
+++ b/rules/DeadCode/NodeManipulator/CountManipulator.php
@@ -30,23 +30,23 @@ final class CountManipulator
$this->nodeNameResolver = $nodeNameResolver;
$this->nodeComparator = $nodeComparator;
}
- public function isCounterHigherThanOne(Expr $node, Expr $expr) : bool
+ public function isCounterHigherThanOne(Expr $firstExpr, Expr $secondExpr) : bool
{
// e.g. count($values) > 0
- if ($node instanceof Greater) {
- return $this->isGreater($node, $expr);
+ if ($firstExpr instanceof Greater) {
+ return $this->isGreater($firstExpr, $secondExpr);
}
// e.g. count($values) >= 1
- if ($node instanceof GreaterOrEqual) {
- return $this->isGreaterOrEqual($node, $expr);
+ if ($firstExpr instanceof GreaterOrEqual) {
+ return $this->isGreaterOrEqual($firstExpr, $secondExpr);
}
// e.g. 0 < count($values)
- if ($node instanceof Smaller) {
- return $this->isSmaller($node, $expr);
+ if ($firstExpr instanceof Smaller) {
+ return $this->isSmaller($firstExpr, $secondExpr);
}
// e.g. 1 <= count($values)
- if ($node instanceof SmallerOrEqual) {
- return $this->isSmallerOrEqual($node, $expr);
+ if ($firstExpr instanceof SmallerOrEqual) {
+ return $this->isSmallerOrEqual($firstExpr, $secondExpr);
}
return \false;
}
diff --git a/rules/Removing/Rector/FuncCall/RemoveFuncCallRector.php b/rules/Removing/Rector/FuncCall/RemoveFuncCallRector.php
deleted file mode 100644
index b8e2d95dee8..00000000000
--- a/rules/Removing/Rector/FuncCall/RemoveFuncCallRector.php
+++ /dev/null
@@ -1,106 +0,0 @@
-breakingRemovalGuard = $breakingRemovalGuard;
- }
- public function getRuleDefinition() : RuleDefinition
- {
- return new RuleDefinition('Remove ini_get by configuration', [new ConfiguredCodeSample(<<<'CODE_SAMPLE'
-ini_get('y2k_compliance');
-ini_get('keep_me');
-CODE_SAMPLE
-, <<<'CODE_SAMPLE'
-ini_get('keep_me');
-CODE_SAMPLE
-, [new RemoveFuncCall('ini_get', [1 => ['y2k_compliance']])])]);
- }
- /**
- * @return array>
- */
- public function getNodeTypes() : array
- {
- return [FuncCall::class];
- }
- /**
- * @param FuncCall $node
- */
- public function refactor(Node $node) : ?Node
- {
- foreach ($this->removeFuncCalls as $removeFuncCall) {
- if (!$this->isName($node, $removeFuncCall->getFuncCall())) {
- continue;
- }
- if ($removeFuncCall->getArgumentPositionAndValues() === []) {
- $this->removeNode($node);
- return $node;
- }
- $removedFuncCall = $this->refactorFuncCallsWithPositions($node, $removeFuncCall);
- if ($removedFuncCall instanceof FuncCall) {
- return $node;
- }
- }
- return null;
- }
- /**
- * @param mixed[] $configuration
- */
- public function configure(array $configuration) : void
- {
- Assert::allIsAOf($configuration, RemoveFuncCall::class);
- $this->removeFuncCalls = $configuration;
- }
- private function refactorFuncCallsWithPositions(FuncCall $funcCall, RemoveFuncCall $removeFuncCall) : ?FuncCall
- {
- foreach ($removeFuncCall->getArgumentPositionAndValues() as $argumentPosition => $values) {
- if (!$this->isArgumentPositionValueMatch($funcCall, $argumentPosition, $values)) {
- continue;
- }
- if ($this->breakingRemovalGuard->isLegalNodeRemoval($funcCall)) {
- $this->removeNode($funcCall);
- return $funcCall;
- }
- }
- return null;
- }
- /**
- * @param mixed[] $values
- */
- private function isArgumentPositionValueMatch(FuncCall $funcCall, int $argumentPosition, array $values) : bool
- {
- if (!isset($funcCall->args[$argumentPosition])) {
- return \false;
- }
- if (!$funcCall->args[$argumentPosition] instanceof Arg) {
- return \false;
- }
- return $this->valueResolver->isValues($funcCall->args[$argumentPosition]->value, $values);
- }
-}
diff --git a/rules/Removing/ValueObject/RemoveFuncCall.php b/rules/Removing/ValueObject/RemoveFuncCall.php
deleted file mode 100644
index 5f92d416d59..00000000000
--- a/rules/Removing/ValueObject/RemoveFuncCall.php
+++ /dev/null
@@ -1,39 +0,0 @@
-
- * @readonly
- */
- private $argumentPositionAndValues = [];
- /**
- * @param array $argumentPositionAndValues
- */
- public function __construct(string $funcCall, array $argumentPositionAndValues = [])
- {
- $this->funcCall = $funcCall;
- $this->argumentPositionAndValues = $argumentPositionAndValues;
- RectorAssert::functionName($funcCall);
- }
- public function getFuncCall() : string
- {
- return $this->funcCall;
- }
- /**
- * @return array
- */
- public function getArgumentPositionAndValues() : array
- {
- return $this->argumentPositionAndValues;
- }
-}
diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php
index 140c651a7f2..c9428b63263 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 = '3820e0075152c72f618226ff213faf847e3d39f7';
+ public const PACKAGE_VERSION = 'a39844ee53169fb0b6d1184672eeb1869a541dd2';
/**
* @api
* @var string
*/
- public const RELEASE_DATE = '2022-09-03 08:16:36';
+ public const RELEASE_DATE = '2022-09-03 09:59:19';
/**
* @var int
*/
diff --git a/src/NodeAnalyzer/ConstFetchAnalyzer.php b/src/NodeAnalyzer/ConstFetchAnalyzer.php
index ada12ddb9c7..b408c26bcd7 100644
--- a/src/NodeAnalyzer/ConstFetchAnalyzer.php
+++ b/src/NodeAnalyzer/ConstFetchAnalyzer.php
@@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\Core\NodeAnalyzer;
use PhpParser\Node;
+use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ConstFetch;
/**
* Read-only utils for ClassConstAnalyzer Node:
@@ -11,24 +12,24 @@ use PhpParser\Node\Expr\ConstFetch;
*/
final class ConstFetchAnalyzer
{
- public function isTrueOrFalse(Node $node) : bool
+ public function isTrueOrFalse(Expr $expr) : bool
{
- if ($this->isTrue($node)) {
+ if ($this->isTrue($expr)) {
return \true;
}
- return $this->isFalse($node);
+ return $this->isFalse($expr);
}
- public function isFalse(Node $node) : bool
+ public function isFalse(Expr $expr) : bool
{
- return $this->isConstantWithLowercasedName($node, 'false');
+ return $this->isConstantWithLowercasedName($expr, 'false');
}
- public function isTrue(Node $node) : bool
+ public function isTrue(Expr $expr) : bool
{
- return $this->isConstantWithLowercasedName($node, 'true');
+ return $this->isConstantWithLowercasedName($expr, 'true');
}
- public function isNull(Node $node) : bool
+ public function isNull(Expr $expr) : bool
{
- return $this->isConstantWithLowercasedName($node, 'null');
+ return $this->isConstantWithLowercasedName($expr, 'null');
}
private function isConstantWithLowercasedName(Node $node, string $name) : bool
{
diff --git a/src/NodeManipulator/ClassManipulator.php b/src/NodeManipulator/ClassManipulator.php
index 069e6a9f2a8..b5f64255119 100644
--- a/src/NodeManipulator/ClassManipulator.php
+++ b/src/NodeManipulator/ClassManipulator.php
@@ -5,13 +5,10 @@ namespace Rector\Core\NodeManipulator;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\Class_;
-use PhpParser\Node\Stmt\Interface_;
-use PhpParser\Node\Stmt\Property;
use PHPStan\Reflection\ReflectionProvider;
use PHPStan\Type\ObjectType;
use Rector\FamilyTree\NodeAnalyzer\ClassChildAnalyzer;
use Rector\NodeNameResolver\NodeNameResolver;
-use Rector\PostRector\Collector\NodesToRemoveCollector;
final class ClassManipulator
{
/**
@@ -19,11 +16,6 @@ final class ClassManipulator
* @var \Rector\NodeNameResolver\NodeNameResolver
*/
private $nodeNameResolver;
- /**
- * @readonly
- * @var \Rector\PostRector\Collector\NodesToRemoveCollector
- */
- private $nodesToRemoveCollector;
/**
* @readonly
* @var \PHPStan\Reflection\ReflectionProvider
@@ -34,10 +26,9 @@ final class ClassManipulator
* @var \Rector\FamilyTree\NodeAnalyzer\ClassChildAnalyzer
*/
private $classChildAnalyzer;
- public function __construct(NodeNameResolver $nodeNameResolver, NodesToRemoveCollector $nodesToRemoveCollector, ReflectionProvider $reflectionProvider, ClassChildAnalyzer $classChildAnalyzer)
+ public function __construct(NodeNameResolver $nodeNameResolver, ReflectionProvider $reflectionProvider, ClassChildAnalyzer $classChildAnalyzer)
{
$this->nodeNameResolver = $nodeNameResolver;
- $this->nodesToRemoveCollector = $nodesToRemoveCollector;
$this->reflectionProvider = $reflectionProvider;
$this->classChildAnalyzer = $classChildAnalyzer;
}
@@ -59,16 +50,6 @@ final class ClassManipulator
}
return \false;
}
- /**
- * @return string[]
- */
- public function getPrivatePropertyNames(Class_ $class) : array
- {
- $privateProperties = \array_filter($class->getProperties(), static function (Property $property) : bool {
- return $property->isPrivate();
- });
- return $this->nodeNameResolver->getNames($privateProperties);
- }
public function hasTrait(Class_ $class, string $desiredTrait) : bool
{
foreach ($class->getTraitUses() as $traitUse) {
@@ -93,24 +74,4 @@ final class ClassManipulator
}
}
}
- /**
- * @return string[]
- * @param \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_ $classLike
- */
- public function getClassLikeNodeParentInterfaceNames($classLike) : array
- {
- if ($classLike instanceof Class_) {
- return $this->nodeNameResolver->getNames($classLike->implements);
- }
- return $this->nodeNameResolver->getNames($classLike->extends);
- }
- public function removeInterface(Class_ $class, string $desiredInterface) : void
- {
- foreach ($class->implements as $implement) {
- if (!$this->nodeNameResolver->isName($implement, $desiredInterface)) {
- continue;
- }
- $this->nodesToRemoveCollector->addNodeToRemove($implement);
- }
- }
}
diff --git a/src/PhpParser/Node/Value/ValueResolver.php b/src/PhpParser/Node/Value/ValueResolver.php
index 33f67bc8fdd..1a86a642544 100644
--- a/src/PhpParser/Node/Value/ValueResolver.php
+++ b/src/PhpParser/Node/Value/ValueResolver.php
@@ -5,7 +5,6 @@ namespace Rector\Core\PhpParser\Node\Value;
use PhpParser\ConstExprEvaluationException;
use PhpParser\ConstExprEvaluator;
-use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Expr\ClassConstFetch;
@@ -131,27 +130,21 @@ final class ValueResolver
}
return \false;
}
- public function isFalse(Node $node) : bool
+ public function isFalse(Expr $expr) : bool
{
- return $this->constFetchAnalyzer->isFalse($node);
+ return $this->constFetchAnalyzer->isFalse($expr);
}
- public function isTrueOrFalse(Node $node) : bool
+ public function isTrueOrFalse(Expr $expr) : bool
{
- return $this->constFetchAnalyzer->isTrueOrFalse($node);
+ return $this->constFetchAnalyzer->isTrueOrFalse($expr);
}
- public function isTrue(Node $node) : bool
+ public function isTrue(Expr $expr) : bool
{
- return $this->constFetchAnalyzer->isTrue($node);
+ return $this->constFetchAnalyzer->isTrue($expr);
}
- public function isNull(Node $node) : bool
+ public function isNull(Expr $expr) : bool
{
- return $this->constFetchAnalyzer->isNull($node);
- }
- public function isValueEqual(Expr $firstExpr, Expr $secondExpr) : bool
- {
- $firstValue = $this->getValue($firstExpr);
- $secondValue = $this->getValue($secondExpr);
- return $firstValue === $secondValue;
+ return $this->constFetchAnalyzer->isNull($expr);
}
/**
* @param Expr[]|null[] $nodes
diff --git a/vendor/autoload.php b/vendor/autoload.php
index 0ff6c78cc03..643b40c3b62 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 ComposerAutoloaderInit5fb610957f9d0d33e4142b638f34727c::getLoader();
+return ComposerAutoloaderInit087fb1f8916d4539ff6d0400d12581e0::getLoader();
diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php
index 740ceed8f41..7f200153cef 100644
--- a/vendor/composer/autoload_classmap.php
+++ b/vendor/composer/autoload_classmap.php
@@ -2393,9 +2393,7 @@ return array(
'Rector\\Removing\\Rector\\Class_\\RemoveParentRector' => $baseDir . '/rules/Removing/Rector/Class_/RemoveParentRector.php',
'Rector\\Removing\\Rector\\Class_\\RemoveTraitUseRector' => $baseDir . '/rules/Removing/Rector/Class_/RemoveTraitUseRector.php',
'Rector\\Removing\\Rector\\FuncCall\\RemoveFuncCallArgRector' => $baseDir . '/rules/Removing/Rector/FuncCall/RemoveFuncCallArgRector.php',
- 'Rector\\Removing\\Rector\\FuncCall\\RemoveFuncCallRector' => $baseDir . '/rules/Removing/Rector/FuncCall/RemoveFuncCallRector.php',
'Rector\\Removing\\ValueObject\\ArgumentRemover' => $baseDir . '/rules/Removing/ValueObject/ArgumentRemover.php',
- 'Rector\\Removing\\ValueObject\\RemoveFuncCall' => $baseDir . '/rules/Removing/ValueObject/RemoveFuncCall.php',
'Rector\\Removing\\ValueObject\\RemoveFuncCallArg' => $baseDir . '/rules/Removing/ValueObject/RemoveFuncCallArg.php',
'Rector\\Renaming\\Collector\\MethodCallRenameCollector' => $baseDir . '/rules/Renaming/Collector/MethodCallRenameCollector.php',
'Rector\\Renaming\\Contract\\MethodCallRenameInterface' => $baseDir . '/rules/Renaming/Contract/MethodCallRenameInterface.php',
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php
index da86c4c9f25..2b53fd4716c 100644
--- a/vendor/composer/autoload_real.php
+++ b/vendor/composer/autoload_real.php
@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
-class ComposerAutoloaderInit5fb610957f9d0d33e4142b638f34727c
+class ComposerAutoloaderInit087fb1f8916d4539ff6d0400d12581e0
{
private static $loader;
@@ -22,19 +22,19 @@ class ComposerAutoloaderInit5fb610957f9d0d33e4142b638f34727c
return self::$loader;
}
- spl_autoload_register(array('ComposerAutoloaderInit5fb610957f9d0d33e4142b638f34727c', 'loadClassLoader'), true, true);
+ spl_autoload_register(array('ComposerAutoloaderInit087fb1f8916d4539ff6d0400d12581e0', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
- spl_autoload_unregister(array('ComposerAutoloaderInit5fb610957f9d0d33e4142b638f34727c', 'loadClassLoader'));
+ spl_autoload_unregister(array('ComposerAutoloaderInit087fb1f8916d4539ff6d0400d12581e0', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
- call_user_func(\Composer\Autoload\ComposerStaticInit5fb610957f9d0d33e4142b638f34727c::getInitializer($loader));
+ call_user_func(\Composer\Autoload\ComposerStaticInit087fb1f8916d4539ff6d0400d12581e0::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
- $includeFiles = \Composer\Autoload\ComposerStaticInit5fb610957f9d0d33e4142b638f34727c::$files;
+ $includeFiles = \Composer\Autoload\ComposerStaticInit087fb1f8916d4539ff6d0400d12581e0::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
- composerRequire5fb610957f9d0d33e4142b638f34727c($fileIdentifier, $file);
+ composerRequire087fb1f8916d4539ff6d0400d12581e0($fileIdentifier, $file);
}
return $loader;
@@ -46,7 +46,7 @@ class ComposerAutoloaderInit5fb610957f9d0d33e4142b638f34727c
* @param string $file
* @return void
*/
-function composerRequire5fb610957f9d0d33e4142b638f34727c($fileIdentifier, $file)
+function composerRequire087fb1f8916d4539ff6d0400d12581e0($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 c18c41ce7f6..b133e573124 100644
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -4,7 +4,7 @@
namespace Composer\Autoload;
-class ComposerStaticInit5fb610957f9d0d33e4142b638f34727c
+class ComposerStaticInit087fb1f8916d4539ff6d0400d12581e0
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@@ -2648,9 +2648,7 @@ class ComposerStaticInit5fb610957f9d0d33e4142b638f34727c
'Rector\\Removing\\Rector\\Class_\\RemoveParentRector' => __DIR__ . '/../..' . '/rules/Removing/Rector/Class_/RemoveParentRector.php',
'Rector\\Removing\\Rector\\Class_\\RemoveTraitUseRector' => __DIR__ . '/../..' . '/rules/Removing/Rector/Class_/RemoveTraitUseRector.php',
'Rector\\Removing\\Rector\\FuncCall\\RemoveFuncCallArgRector' => __DIR__ . '/../..' . '/rules/Removing/Rector/FuncCall/RemoveFuncCallArgRector.php',
- 'Rector\\Removing\\Rector\\FuncCall\\RemoveFuncCallRector' => __DIR__ . '/../..' . '/rules/Removing/Rector/FuncCall/RemoveFuncCallRector.php',
'Rector\\Removing\\ValueObject\\ArgumentRemover' => __DIR__ . '/../..' . '/rules/Removing/ValueObject/ArgumentRemover.php',
- 'Rector\\Removing\\ValueObject\\RemoveFuncCall' => __DIR__ . '/../..' . '/rules/Removing/ValueObject/RemoveFuncCall.php',
'Rector\\Removing\\ValueObject\\RemoveFuncCallArg' => __DIR__ . '/../..' . '/rules/Removing/ValueObject/RemoveFuncCallArg.php',
'Rector\\Renaming\\Collector\\MethodCallRenameCollector' => __DIR__ . '/../..' . '/rules/Renaming/Collector/MethodCallRenameCollector.php',
'Rector\\Renaming\\Contract\\MethodCallRenameInterface' => __DIR__ . '/../..' . '/rules/Renaming/Contract/MethodCallRenameInterface.php',
@@ -3095,9 +3093,9 @@ class ComposerStaticInit5fb610957f9d0d33e4142b638f34727c
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
- $loader->prefixLengthsPsr4 = ComposerStaticInit5fb610957f9d0d33e4142b638f34727c::$prefixLengthsPsr4;
- $loader->prefixDirsPsr4 = ComposerStaticInit5fb610957f9d0d33e4142b638f34727c::$prefixDirsPsr4;
- $loader->classMap = ComposerStaticInit5fb610957f9d0d33e4142b638f34727c::$classMap;
+ $loader->prefixLengthsPsr4 = ComposerStaticInit087fb1f8916d4539ff6d0400d12581e0::$prefixLengthsPsr4;
+ $loader->prefixDirsPsr4 = ComposerStaticInit087fb1f8916d4539ff6d0400d12581e0::$prefixDirsPsr4;
+ $loader->classMap = ComposerStaticInit087fb1f8916d4539ff6d0400d12581e0::$classMap;
}, null, ClassLoader::class);
}
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index dbe0dcfdfdf..4cc26e951cc 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1853,12 +1853,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
- "reference": "bdf6e7c07b91df02000fa286e30e74c7fb7e5301"
+ "reference": "23593a293bb05215e354a8544fd49cac5c223aac"
},
"dist": {
"type": "zip",
- "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/bdf6e7c07b91df02000fa286e30e74c7fb7e5301",
- "reference": "bdf6e7c07b91df02000fa286e30e74c7fb7e5301",
+ "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/23593a293bb05215e354a8544fd49cac5c223aac",
+ "reference": "23593a293bb05215e354a8544fd49cac5c223aac",
"shasum": ""
},
"require": {
@@ -1884,7 +1884,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
- "time": "2022-09-02T10:53:49+00:00",
+ "time": "2022-09-03T07:45:16+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php
index fcd3eb8c6cb..61f544ce229 100644
--- a/vendor/composer/installed.php
+++ b/vendor/composer/installed.php
@@ -2,4 +2,4 @@
namespace RectorPrefix202209;
-return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.14.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '708411c7e45ac85371a99d50f52284971494bede', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.14.0', 'version' => '4.14.0.0', 'reference' => '34bea19b6e03d8153165d8f30bba4c3be86184c1', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.7.0', 'version' => '1.7.0.0', 'reference' => '367a8d9d5f7da2a0136422d27ce8840583926955', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.3', 'version' => '1.8.3.0', 'reference' => '5583623b61caafebd62bc78a99533aa9d769d097', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', 'aliases' => array(), 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'react/cache' => array('pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise-timer' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => 'aa7a73c74b8d8c0f622f5982ff7b0351bc29e495', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.12.0', 'version' => '1.12.0.0', 'reference' => '81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.14.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'a489bf049d6672d9ecdc03280f3f0f29c810cdd4', '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' => 'bdf6e7c07b91df02000fa286e30e74c7fb7e5301', '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' => 'b4b49bf4643751b7dba703fa2f57406082308e64', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '2decdcfeef9d117e4589ebc9e7fdbab11c030813', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '294de0ce80a9eb2c1b2d0d8e2762032dba0044e0', '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' => '3f58e442e134af44aa45316fb7e6033b9ea4e306', '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' => '8c0ac2ed019f8fc0655736f9c2668b519c13fbfe', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/config' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'a0645dc585d378b73c01115dd7ab9348f7d40c85', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '7fccea8728aa2d431a6725b02b3ce759049fc84d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.1.1', 'version' => '3.1.1.0', 'reference' => '8656c9e7f44435eaf428f2aa7f083c65297fb22f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '079e336a1880f457b219aecc3d41bef2f1093b0b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '3f39c04d2630c34019907b02f85672dac99f8659', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '39696bff2c2970b3779a5cac7bf9f0b88fc2b709', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '219aa369ceff116e673852dce47c3a41794c14bd', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '290972cad7b364e3befaa74ba0ec729800fb161c', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symplify/autowire-array-parameter' => array('pretty_version' => '11.1.9', 'version' => '11.1.9.0', 'reference' => 'efc222c5546f07a390ff0e1d7b35282a09ff5a09', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.9', 'version' => '11.1.9.0', 'reference' => '75df164f48ad642ac08337de7410f5ebe814893e', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.9', 'version' => '11.1.9.0', 'reference' => '868b0b3235a2f507a8213a6a9ae6fabe2528fab9', '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.0.0', 'version' => '3.0.0.0', 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.14.0', 'version' => '4.14.0.0', 'reference' => '34bea19b6e03d8153165d8f30bba4c3be86184c1', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.7.0', 'version' => '1.7.0.0', 'reference' => '367a8d9d5f7da2a0136422d27ce8840583926955', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.8.3', 'version' => '1.8.3.0', 'reference' => '5583623b61caafebd62bc78a99533aa9d769d097', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', 'aliases' => array(), 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'react/cache' => array('pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise-timer' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'reference' => 'aa7a73c74b8d8c0f622f5982ff7b0351bc29e495', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.12.0', 'version' => '1.12.0.0', 'reference' => '81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.14.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'a489bf049d6672d9ecdc03280f3f0f29c810cdd4', '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' => '23593a293bb05215e354a8544fd49cac5c223aac', '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' => 'b4b49bf4643751b7dba703fa2f57406082308e64', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '2decdcfeef9d117e4589ebc9e7fdbab11c030813', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '294de0ce80a9eb2c1b2d0d8e2762032dba0044e0', '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' => '3f58e442e134af44aa45316fb7e6033b9ea4e306', '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' => '8c0ac2ed019f8fc0655736f9c2668b519c13fbfe', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/config' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => 'a0645dc585d378b73c01115dd7ab9348f7d40c85', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '7fccea8728aa2d431a6725b02b3ce759049fc84d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.1.1', 'version' => '3.1.1.0', 'reference' => '8656c9e7f44435eaf428f2aa7f083c65297fb22f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '079e336a1880f457b219aecc3d41bef2f1093b0b', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '3f39c04d2630c34019907b02f85672dac99f8659', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.1.3', 'version' => '6.1.3.0', 'reference' => '39696bff2c2970b3779a5cac7bf9f0b88fc2b709', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '219aa369ceff116e673852dce47c3a41794c14bd', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.26.0', 'version' => '1.26.0.0', 'reference' => '9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.1.4', 'version' => '6.1.4.0', 'reference' => '290972cad7b364e3befaa74ba0ec729800fb161c', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.1.1')), 'symplify/autowire-array-parameter' => array('pretty_version' => '11.1.9', 'version' => '11.1.9.0', 'reference' => 'efc222c5546f07a390ff0e1d7b35282a09ff5a09', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '11.1.9', 'version' => '11.1.9.0', 'reference' => '75df164f48ad642ac08337de7410f5ebe814893e', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.9', 'version' => '11.1.9.0', 'reference' => '868b0b3235a2f507a8213a6a9ae6fabe2528fab9', '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/rector/extension-installer/src/GeneratedConfig.php b/vendor/rector/extension-installer/src/GeneratedConfig.php
index d77cb51b9dd..023bfd69598 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 a489bf0'), '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 bdf6e7c'), '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 b4b49bf'), '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 2decdcf'), '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 294de0c'), '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 3f58e44'), '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 8c0ac2e'));
+ 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 a489bf0'), '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 23593a2'), '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 b4b49bf'), '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 2decdcf'), '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 294de0c'), '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 3f58e44'), '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 8c0ac2e'));
private function __construct()
{
}
diff --git a/vendor/rector/rector-doctrine/src/Rector/Class_/TranslationBehaviorRector.php b/vendor/rector/rector-doctrine/src/Rector/Class_/TranslationBehaviorRector.php
index da85674ff85..a8496b1464f 100644
--- a/vendor/rector/rector-doctrine/src/Rector/Class_/TranslationBehaviorRector.php
+++ b/vendor/rector/rector-doctrine/src/Rector/Class_/TranslationBehaviorRector.php
@@ -11,7 +11,6 @@ use PHPStan\Type\ObjectType;
use Rector\Core\Application\FileSystem\RemovedAndAddedFilesCollector;
use Rector\Core\Exception\ShouldNotHappenException;
use Rector\Core\NodeManipulator\ClassInsertManipulator;
-use Rector\Core\NodeManipulator\ClassManipulator;
use Rector\Core\Rector\AbstractRector;
use Rector\Doctrine\NodeAnalyzer\TranslatablePropertyCollectorAndRemover;
use Rector\Doctrine\NodeFactory\TranslationClassNodeFactory;
@@ -35,11 +34,6 @@ final class TranslationBehaviorRector extends AbstractRector
* @var \Rector\Core\NodeManipulator\ClassInsertManipulator
*/
private $classInsertManipulator;
- /**
- * @readonly
- * @var \Rector\Core\NodeManipulator\ClassManipulator
- */
- private $classManipulator;
/**
* @readonly
* @var \Rector\Doctrine\NodeFactory\TranslationClassNodeFactory
@@ -55,10 +49,9 @@ final class TranslationBehaviorRector extends AbstractRector
* @var \Rector\Core\Application\FileSystem\RemovedAndAddedFilesCollector
*/
private $removedAndAddedFilesCollector;
- public function __construct(ClassInsertManipulator $classInsertManipulator, ClassManipulator $classManipulator, TranslationClassNodeFactory $translationClassNodeFactory, TranslatablePropertyCollectorAndRemover $translatablePropertyCollectorAndRemover, RemovedAndAddedFilesCollector $removedAndAddedFilesCollector)
+ public function __construct(ClassInsertManipulator $classInsertManipulator, TranslationClassNodeFactory $translationClassNodeFactory, TranslatablePropertyCollectorAndRemover $translatablePropertyCollectorAndRemover, RemovedAndAddedFilesCollector $removedAndAddedFilesCollector)
{
$this->classInsertManipulator = $classInsertManipulator;
- $this->classManipulator = $classManipulator;
$this->translationClassNodeFactory = $translationClassNodeFactory;
$this->translatablePropertyCollectorAndRemover = $translatablePropertyCollectorAndRemover;
$this->removedAndAddedFilesCollector = $removedAndAddedFilesCollector;
@@ -147,7 +140,7 @@ CODE_SAMPLE
if (!$this->hasImplements($node)) {
return null;
}
- $this->classManipulator->removeInterface($node, 'Gedmo\\Translatable\\Translatable');
+ $this->removeClassInterface($node);
$this->classInsertManipulator->addAsFirstTrait($node, 'Knp\\DoctrineBehaviors\\Model\\Translatable\\TranslatableTrait');
$node->implements[] = new FullyQualified('Knp\\DoctrineBehaviors\\Contract\\Entity\\TranslatableInterface');
$propertyNamesAndPhpDocInfos = $this->translatablePropertyCollectorAndRemover->processClass($node);
@@ -203,4 +196,13 @@ CODE_SAMPLE
}
return \false;
}
+ private function removeClassInterface(Class_ $class) : void
+ {
+ foreach ($class->implements as $key => $implement) {
+ if (!$this->isName($implement, 'Gedmo\\Translatable\\Translatable')) {
+ continue;
+ }
+ unset($class->implements[$key]);
+ }
+ }
}