Updated Rector to commit 18770166ed5ac0c0c02a4de87d789182bbb36a76

18770166ed [Transform] Remove ArgumentFuncCallToMethodCallRector as never used (#3774)
This commit is contained in:
Tomas Votruba 2023-05-08 20:37:13 +00:00
parent ef5c74799d
commit fc5810aace
10 changed files with 16 additions and 412 deletions

View File

@ -1,4 +1,4 @@
# 418 Rules Overview
# 417 Rules Overview
<br>
@ -62,7 +62,7 @@
- [Strict](#strict) (6)
- [Transform](#transform) (34)
- [Transform](#transform) (33)
- [TypeDeclaration](#typedeclaration) (40)
@ -4041,12 +4041,12 @@ Return early prepared value in ifs
{
- $var = null;
-
if (rand(0,1)) {
if (rand(0, 1)) {
- $var = 1;
+ return 1;
}
if (rand(0,1)) {
if (rand(0, 1)) {
- $var = 2;
+ return 2;
}
@ -7865,57 +7865,6 @@ return static function (RectorConfig $rectorConfig): void {
<br>
### ArgumentFuncCallToMethodCallRector
Move help facade-like function calls to constructor injection
:wrench: **configure it!**
- class: [`Rector\Transform\Rector\FuncCall\ArgumentFuncCallToMethodCallRector`](../rules/Transform/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php)
```php
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Transform\Rector\FuncCall\ArgumentFuncCallToMethodCallRector;
use Rector\Transform\ValueObject\ArgumentFuncCallToMethodCall;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(ArgumentFuncCallToMethodCallRector::class, [
new ArgumentFuncCallToMethodCall('view', 'Illuminate\Contracts\View\Factory', 'make'),
]);
};
```
```diff
class SomeController
{
+ /**
+ * @var \Illuminate\Contracts\View\Factory
+ */
+ private $viewFactory;
+
+ public function __construct(\Illuminate\Contracts\View\Factory $viewFactory)
+ {
+ $this->viewFactory = $viewFactory;
+ }
+
public function action()
{
- $template = view('template.blade');
- $viewFactory = view();
+ $template = $this->viewFactory->make('template.blade');
+ $viewFactory = $this->viewFactory;
}
}
```
<br>
### AttributeKeyToClassConstFetchRector
Replace key value on specific attribute to class constant

View File

@ -1,9 +0,0 @@
<?php
declare (strict_types=1);
namespace Rector\Transform\Contract\ValueObject;
interface ArgumentFuncCallToMethodCallInterface
{
public function getFunction() : string;
}

View File

@ -1,210 +0,0 @@
<?php
declare (strict_types=1);
namespace Rector\Transform\Rector\FuncCall;
use PhpParser\Node;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\ClassMethod;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Exception\ShouldNotHappenException;
use Rector\Core\Rector\AbstractRector;
use Rector\Naming\Naming\PropertyNaming;
use Rector\Naming\ValueObject\ExpectedName;
use Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer;
use Rector\PostRector\Collector\PropertyToAddCollector;
use Rector\PostRector\ValueObject\PropertyMetadata;
use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
use Rector\Transform\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface;
use Rector\Transform\ValueObject\ArgumentFuncCallToMethodCall;
use Rector\Transform\ValueObject\ArrayFuncCallToMethodCall;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
use RectorPrefix202305\Webmozart\Assert\Assert;
/**
* @see \Rector\Tests\Transform\Rector\FuncCall\ArgumentFuncCallToMethodCallRector\ArgumentFuncCallToMethodCallRectorTest
*/
final class ArgumentFuncCallToMethodCallRector extends AbstractRector implements ConfigurableRectorInterface
{
/**
* @var ArgumentFuncCallToMethodCallInterface[]
*/
private $argumentFuncCallToMethodCalls = [];
/**
* @readonly
* @var \Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer
*/
private $arrayTypeAnalyzer;
/**
* @readonly
* @var \Rector\Naming\Naming\PropertyNaming
*/
private $propertyNaming;
/**
* @readonly
* @var \Rector\PostRector\Collector\PropertyToAddCollector
*/
private $propertyToAddCollector;
public function __construct(ArrayTypeAnalyzer $arrayTypeAnalyzer, PropertyNaming $propertyNaming, PropertyToAddCollector $propertyToAddCollector)
{
$this->arrayTypeAnalyzer = $arrayTypeAnalyzer;
$this->propertyNaming = $propertyNaming;
$this->propertyToAddCollector = $propertyToAddCollector;
}
public function getRuleDefinition() : RuleDefinition
{
return new RuleDefinition('Move help facade-like function calls to constructor injection', [new ConfiguredCodeSample(<<<'CODE_SAMPLE'
class SomeController
{
public function action()
{
$template = view('template.blade');
$viewFactory = view();
}
}
CODE_SAMPLE
, <<<'CODE_SAMPLE'
class SomeController
{
/**
* @var \Illuminate\Contracts\View\Factory
*/
private $viewFactory;
public function __construct(\Illuminate\Contracts\View\Factory $viewFactory)
{
$this->viewFactory = $viewFactory;
}
public function action()
{
$template = $this->viewFactory->make('template.blade');
$viewFactory = $this->viewFactory;
}
}
CODE_SAMPLE
, [new ArgumentFuncCallToMethodCall('view', 'Illuminate\\Contracts\\View\\Factory', 'make')])]);
}
/**
* @return array<class-string<Node>>
*/
public function getNodeTypes() : array
{
return [FuncCall::class];
}
/**
* @param FuncCall $node
*/
public function refactor(Node $node) : ?Node
{
if ($this->shouldSkipFuncCall($node)) {
return null;
}
/** @var Class_ $classLike */
$classLike = $this->betterNodeFinder->findParentType($node, Class_::class);
foreach ($this->argumentFuncCallToMethodCalls as $argumentFuncCallToMethodCall) {
if (!$this->isName($node, $argumentFuncCallToMethodCall->getFunction())) {
continue;
}
if ($argumentFuncCallToMethodCall instanceof ArgumentFuncCallToMethodCall) {
return $this->refactorFuncCallToMethodCall($argumentFuncCallToMethodCall, $classLike, $node);
}
if ($argumentFuncCallToMethodCall instanceof ArrayFuncCallToMethodCall) {
return $this->refactorArrayFunctionToMethodCall($argumentFuncCallToMethodCall, $node, $classLike);
}
}
return null;
}
/**
* @param mixed[] $configuration
*/
public function configure(array $configuration) : void
{
Assert::allIsAOf($configuration, ArgumentFuncCallToMethodCallInterface::class);
$this->argumentFuncCallToMethodCalls = $configuration;
}
private function shouldSkipFuncCall(FuncCall $funcCall) : bool
{
// we can inject only in injectable class method context
/** @var ClassMethod|null $classMethod */
$classMethod = $this->betterNodeFinder->findParentType($funcCall, ClassMethod::class);
if (!$classMethod instanceof ClassMethod) {
return \true;
}
return $classMethod->isStatic();
}
/**
* @return MethodCall|PropertyFetch|null
*/
private function refactorFuncCallToMethodCall(ArgumentFuncCallToMethodCall $argumentFuncCallToMethodCall, Class_ $class, FuncCall $funcCall) : ?Node
{
$fullyQualifiedObjectType = new FullyQualifiedObjectType($argumentFuncCallToMethodCall->getClass());
$expectedName = $this->propertyNaming->getExpectedNameFromType($fullyQualifiedObjectType);
if (!$expectedName instanceof ExpectedName) {
throw new ShouldNotHappenException();
}
$propertyMetadata = new PropertyMetadata($expectedName->getName(), $fullyQualifiedObjectType, Class_::MODIFIER_PRIVATE);
$this->propertyToAddCollector->addPropertyToClass($class, $propertyMetadata);
$propertyFetchNode = $this->nodeFactory->createPropertyFetch('this', $expectedName->getName());
if ($funcCall->args === []) {
return $this->refactorEmptyFuncCallArgs($argumentFuncCallToMethodCall, $propertyFetchNode);
}
if ($this->isFunctionToMethodCallWithArgs($funcCall, $argumentFuncCallToMethodCall)) {
$methodName = $argumentFuncCallToMethodCall->getMethodIfArgs();
if (!\is_string($methodName)) {
throw new ShouldNotHappenException();
}
return new MethodCall($propertyFetchNode, $methodName, $funcCall->args);
}
return null;
}
/**
* @return PropertyFetch|MethodCall|null
*/
private function refactorArrayFunctionToMethodCall(ArrayFuncCallToMethodCall $arrayFuncCallToMethodCall, FuncCall $funcCall, Class_ $class) : ?Node
{
$propertyName = $this->propertyNaming->fqnToVariableName($arrayFuncCallToMethodCall->getClass());
$propertyFetch = $this->nodeFactory->createPropertyFetch('this', $propertyName);
$fullyQualifiedObjectType = new FullyQualifiedObjectType($arrayFuncCallToMethodCall->getClass());
$propertyMetadata = new PropertyMetadata($propertyName, $fullyQualifiedObjectType, Class_::MODIFIER_PRIVATE);
$this->propertyToAddCollector->addPropertyToClass($class, $propertyMetadata);
return $this->createMethodCallArrayFunctionToMethodCall($funcCall, $arrayFuncCallToMethodCall, $propertyFetch);
}
/**
* @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\PropertyFetch
*/
private function refactorEmptyFuncCallArgs(ArgumentFuncCallToMethodCall $argumentFuncCallToMethodCall, PropertyFetch $propertyFetch)
{
if ($argumentFuncCallToMethodCall->getMethodIfNoArgs() !== null) {
$methodName = $argumentFuncCallToMethodCall->getMethodIfNoArgs();
return new MethodCall($propertyFetch, $methodName);
}
return $propertyFetch;
}
private function isFunctionToMethodCallWithArgs(FuncCall $funcCall, ArgumentFuncCallToMethodCall $argumentFuncCallToMethodCall) : bool
{
if ($argumentFuncCallToMethodCall->getMethodIfArgs() === null) {
return \false;
}
return \count($funcCall->args) >= 1;
}
/**
* @return PropertyFetch|MethodCall|null
*/
private function createMethodCallArrayFunctionToMethodCall(FuncCall $funcCall, ArrayFuncCallToMethodCall $arrayFuncCallToMethodCall, PropertyFetch $propertyFetch) : ?Node
{
if ($funcCall->getArgs() === []) {
return $propertyFetch;
}
if ($this->arrayTypeAnalyzer->isArrayType($funcCall->getArgs()[0]->value)) {
return new MethodCall($propertyFetch, $arrayFuncCallToMethodCall->getArrayMethod(), $funcCall->getArgs());
}
if ($arrayFuncCallToMethodCall->getNonArrayMethod() === '') {
return null;
}
return new MethodCall($propertyFetch, $arrayFuncCallToMethodCall->getNonArrayMethod(), $funcCall->getArgs());
}
}

View File

@ -1,55 +0,0 @@
<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
use Rector\Core\Validation\RectorAssert;
use Rector\Transform\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface;
final class ArgumentFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface
{
/**
* @readonly
* @var string
*/
private $function;
/**
* @readonly
* @var string
*/
private $class;
/**
* @readonly
* @var string|null
*/
private $methodIfArgs;
/**
* @readonly
* @var string|null
*/
private $methodIfNoArgs;
public function __construct(string $function, string $class, ?string $methodIfArgs = null, ?string $methodIfNoArgs = null)
{
$this->function = $function;
$this->class = $class;
$this->methodIfArgs = $methodIfArgs;
$this->methodIfNoArgs = $methodIfNoArgs;
RectorAssert::className($class);
RectorAssert::functionName($function);
}
public function getFunction() : string
{
return $this->function;
}
public function getClass() : string
{
return $this->class;
}
public function getMethodIfNoArgs() : ?string
{
return $this->methodIfNoArgs;
}
public function getMethodIfArgs() : ?string
{
return $this->methodIfArgs;
}
}

View File

@ -1,63 +0,0 @@
<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
use Rector\Core\Validation\RectorAssert;
use Rector\Transform\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface;
final class ArrayFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface
{
/**
* @var non-empty-string
* @readonly
*/
private $function;
/**
* @var non-empty-string
* @readonly
*/
private $class;
/**
* @var non-empty-string
* @readonly
*/
private $arrayMethod;
/**
* @var non-empty-string
* @readonly
*/
private $nonArrayMethod;
/**
* @param non-empty-string $function
* @param non-empty-string $class
* @param non-empty-string $arrayMethod
* @param non-empty-string $nonArrayMethod
*/
public function __construct(string $function, string $class, string $arrayMethod, string $nonArrayMethod)
{
$this->function = $function;
$this->class = $class;
$this->arrayMethod = $arrayMethod;
$this->nonArrayMethod = $nonArrayMethod;
RectorAssert::className($class);
RectorAssert::functionName($function);
RectorAssert::methodName($arrayMethod);
RectorAssert::methodName($nonArrayMethod);
}
public function getFunction() : string
{
return $this->function;
}
public function getClass() : string
{
return $this->class;
}
public function getArrayMethod() : string
{
return $this->arrayMethod;
}
public function getNonArrayMethod() : string
{
return $this->nonArrayMethod;
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'ee666531b8270e996557198e0ea15908faa1787c';
public const PACKAGE_VERSION = '18770166ed5ac0c0c02a4de87d789182bbb36a76';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-08 21:23:30';
public const RELEASE_DATE = '2023-05-08 21:33:30';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit65944907f2f1af613b95b824636bd3b1::getLoader();
return ComposerAutoloaderInit79475237490efa837c48b78044981fa4::getLoader();

View File

@ -2691,7 +2691,6 @@ return array(
'Rector\\Testing\\PHPUnit\\Behavior\\MovingFilesTrait' => $baseDir . '/packages/Testing/PHPUnit/Behavior/MovingFilesTrait.php',
'Rector\\Testing\\PHPUnit\\StaticPHPUnitEnvironment' => $baseDir . '/packages/Testing/PHPUnit/StaticPHPUnitEnvironment.php',
'Rector\\Testing\\TestingParser\\TestingParser' => $baseDir . '/packages/Testing/TestingParser/TestingParser.php',
'Rector\\Transform\\Contract\\ValueObject\\ArgumentFuncCallToMethodCallInterface' => $baseDir . '/rules/Transform/Contract/ValueObject/ArgumentFuncCallToMethodCallInterface.php',
'Rector\\Transform\\NodeAnalyzer\\FuncCallStaticCallToMethodCallAnalyzer' => $baseDir . '/rules/Transform/NodeAnalyzer/FuncCallStaticCallToMethodCallAnalyzer.php',
'Rector\\Transform\\NodeFactory\\PropertyFetchFactory' => $baseDir . '/rules/Transform/NodeFactory/PropertyFetchFactory.php',
'Rector\\Transform\\NodeTypeAnalyzer\\TypeProvidingExprFromClassResolver' => $baseDir . '/rules/Transform/NodeTypeAnalyzer/TypeProvidingExprFromClassResolver.php',
@ -2707,7 +2706,6 @@ return array(
'Rector\\Transform\\Rector\\Class_\\MergeInterfacesRector' => $baseDir . '/rules/Transform/Rector/Class_/MergeInterfacesRector.php',
'Rector\\Transform\\Rector\\Class_\\ParentClassToTraitsRector' => $baseDir . '/rules/Transform/Rector/Class_/ParentClassToTraitsRector.php',
'Rector\\Transform\\Rector\\Class_\\RemoveAllowDynamicPropertiesAttributeRector' => $baseDir . '/rules/Transform/Rector/Class_/RemoveAllowDynamicPropertiesAttributeRector.php',
'Rector\\Transform\\Rector\\FuncCall\\ArgumentFuncCallToMethodCallRector' => $baseDir . '/rules/Transform/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php',
'Rector\\Transform\\Rector\\FuncCall\\FuncCallToConstFetchRector' => $baseDir . '/rules/Transform/Rector/FuncCall/FuncCallToConstFetchRector.php',
'Rector\\Transform\\Rector\\FuncCall\\FuncCallToMethodCallRector' => $baseDir . '/rules/Transform/Rector/FuncCall/FuncCallToMethodCallRector.php',
'Rector\\Transform\\Rector\\FuncCall\\FuncCallToNewRector' => $baseDir . '/rules/Transform/Rector/FuncCall/FuncCallToNewRector.php',
@ -2729,8 +2727,6 @@ return array(
'Rector\\Transform\\Rector\\StaticCall\\StaticCallToNewRector' => $baseDir . '/rules/Transform/Rector/StaticCall/StaticCallToNewRector.php',
'Rector\\Transform\\Rector\\String_\\StringToClassConstantRector' => $baseDir . '/rules/Transform/Rector/String_/StringToClassConstantRector.php',
'Rector\\Transform\\Rector\\String_\\ToStringToMethodCallRector' => $baseDir . '/rules/Transform/Rector/String_/ToStringToMethodCallRector.php',
'Rector\\Transform\\ValueObject\\ArgumentFuncCallToMethodCall' => $baseDir . '/rules/Transform/ValueObject/ArgumentFuncCallToMethodCall.php',
'Rector\\Transform\\ValueObject\\ArrayFuncCallToMethodCall' => $baseDir . '/rules/Transform/ValueObject/ArrayFuncCallToMethodCall.php',
'Rector\\Transform\\ValueObject\\AttributeKeyToClassConstFetch' => $baseDir . '/rules/Transform/ValueObject/AttributeKeyToClassConstFetch.php',
'Rector\\Transform\\ValueObject\\ClassMethodReference' => $baseDir . '/rules/Transform/ValueObject/ClassMethodReference.php',
'Rector\\Transform\\ValueObject\\DimFetchAssignToMethodCall' => $baseDir . '/rules/Transform/ValueObject/DimFetchAssignToMethodCall.php',

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit65944907f2f1af613b95b824636bd3b1
class ComposerAutoloaderInit79475237490efa837c48b78044981fa4
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit65944907f2f1af613b95b824636bd3b1
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit65944907f2f1af613b95b824636bd3b1', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit79475237490efa837c48b78044981fa4', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit65944907f2f1af613b95b824636bd3b1', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit79475237490efa837c48b78044981fa4', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit65944907f2f1af613b95b824636bd3b1::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit79475237490efa837c48b78044981fa4::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit65944907f2f1af613b95b824636bd3b1::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit79475237490efa837c48b78044981fa4::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit65944907f2f1af613b95b824636bd3b1
class ComposerStaticInit79475237490efa837c48b78044981fa4
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2933,7 +2933,6 @@ class ComposerStaticInit65944907f2f1af613b95b824636bd3b1
'Rector\\Testing\\PHPUnit\\Behavior\\MovingFilesTrait' => __DIR__ . '/../..' . '/packages/Testing/PHPUnit/Behavior/MovingFilesTrait.php',
'Rector\\Testing\\PHPUnit\\StaticPHPUnitEnvironment' => __DIR__ . '/../..' . '/packages/Testing/PHPUnit/StaticPHPUnitEnvironment.php',
'Rector\\Testing\\TestingParser\\TestingParser' => __DIR__ . '/../..' . '/packages/Testing/TestingParser/TestingParser.php',
'Rector\\Transform\\Contract\\ValueObject\\ArgumentFuncCallToMethodCallInterface' => __DIR__ . '/../..' . '/rules/Transform/Contract/ValueObject/ArgumentFuncCallToMethodCallInterface.php',
'Rector\\Transform\\NodeAnalyzer\\FuncCallStaticCallToMethodCallAnalyzer' => __DIR__ . '/../..' . '/rules/Transform/NodeAnalyzer/FuncCallStaticCallToMethodCallAnalyzer.php',
'Rector\\Transform\\NodeFactory\\PropertyFetchFactory' => __DIR__ . '/../..' . '/rules/Transform/NodeFactory/PropertyFetchFactory.php',
'Rector\\Transform\\NodeTypeAnalyzer\\TypeProvidingExprFromClassResolver' => __DIR__ . '/../..' . '/rules/Transform/NodeTypeAnalyzer/TypeProvidingExprFromClassResolver.php',
@ -2949,7 +2948,6 @@ class ComposerStaticInit65944907f2f1af613b95b824636bd3b1
'Rector\\Transform\\Rector\\Class_\\MergeInterfacesRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/Class_/MergeInterfacesRector.php',
'Rector\\Transform\\Rector\\Class_\\ParentClassToTraitsRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/Class_/ParentClassToTraitsRector.php',
'Rector\\Transform\\Rector\\Class_\\RemoveAllowDynamicPropertiesAttributeRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/Class_/RemoveAllowDynamicPropertiesAttributeRector.php',
'Rector\\Transform\\Rector\\FuncCall\\ArgumentFuncCallToMethodCallRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php',
'Rector\\Transform\\Rector\\FuncCall\\FuncCallToConstFetchRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/FuncCall/FuncCallToConstFetchRector.php',
'Rector\\Transform\\Rector\\FuncCall\\FuncCallToMethodCallRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/FuncCall/FuncCallToMethodCallRector.php',
'Rector\\Transform\\Rector\\FuncCall\\FuncCallToNewRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/FuncCall/FuncCallToNewRector.php',
@ -2971,8 +2969,6 @@ class ComposerStaticInit65944907f2f1af613b95b824636bd3b1
'Rector\\Transform\\Rector\\StaticCall\\StaticCallToNewRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/StaticCall/StaticCallToNewRector.php',
'Rector\\Transform\\Rector\\String_\\StringToClassConstantRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/String_/StringToClassConstantRector.php',
'Rector\\Transform\\Rector\\String_\\ToStringToMethodCallRector' => __DIR__ . '/../..' . '/rules/Transform/Rector/String_/ToStringToMethodCallRector.php',
'Rector\\Transform\\ValueObject\\ArgumentFuncCallToMethodCall' => __DIR__ . '/../..' . '/rules/Transform/ValueObject/ArgumentFuncCallToMethodCall.php',
'Rector\\Transform\\ValueObject\\ArrayFuncCallToMethodCall' => __DIR__ . '/../..' . '/rules/Transform/ValueObject/ArrayFuncCallToMethodCall.php',
'Rector\\Transform\\ValueObject\\AttributeKeyToClassConstFetch' => __DIR__ . '/../..' . '/rules/Transform/ValueObject/AttributeKeyToClassConstFetch.php',
'Rector\\Transform\\ValueObject\\ClassMethodReference' => __DIR__ . '/../..' . '/rules/Transform/ValueObject/ClassMethodReference.php',
'Rector\\Transform\\ValueObject\\DimFetchAssignToMethodCall' => __DIR__ . '/../..' . '/rules/Transform/ValueObject/DimFetchAssignToMethodCall.php',
@ -3123,9 +3119,9 @@ class ComposerStaticInit65944907f2f1af613b95b824636bd3b1
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit65944907f2f1af613b95b824636bd3b1::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit65944907f2f1af613b95b824636bd3b1::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit65944907f2f1af613b95b824636bd3b1::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit79475237490efa837c48b78044981fa4::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit79475237490efa837c48b78044981fa4::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit79475237490efa837c48b78044981fa4::$classMap;
}, null, ClassLoader::class);
}