Updated Rector to commit 11b278ca27f23ba4a2c55df877664fc23413a81d

11b278ca27 [CodeQuality] Remove SimplifyUselessLastVariableAssignRector as overly complex and should be handled individually (#3784)
This commit is contained in:
Tomas Votruba 2023-05-10 07:10:45 +00:00
parent 2cad3fa15d
commit 2cb797e1b1
9 changed files with 34 additions and 311 deletions

View File

@ -48,7 +48,6 @@ use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector;
use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector;
use Rector\CodeQuality\Rector\FuncCall\UnwrapSprintfOneArgumentRector;
use Rector\CodeQuality\Rector\FunctionLike\RemoveAlwaysTrueConditionSetInConstructorRector;
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessLastVariableAssignRector;
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
use Rector\CodeQuality\Rector\Identical\BooleanNotIdenticalToNotIdenticalRector;
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
@ -116,5 +115,5 @@ return static function (RectorConfig $rectorConfig) : void {
'mbstrrpos' => 'mb_strrpos',
'mbsubstr' => 'mb_substr',
]);
$rectorConfig->rules([CombinedAssignRector::class, SimplifyEmptyArrayCheckRector::class, ReplaceMultipleBooleanNotRector::class, ForeachToInArrayRector::class, SimplifyForeachToCoalescingRector::class, SimplifyFuncGetArgsCountRector::class, SimplifyInArrayValuesRector::class, SimplifyStrposLowerRector::class, GetClassToInstanceOfRector::class, SimplifyArraySearchRector::class, SimplifyConditionsRector::class, SimplifyIfNotNullReturnRector::class, SimplifyIfReturnBoolRector::class, SimplifyUselessVariableRector::class, UnnecessaryTernaryExpressionRector::class, RemoveExtraParametersRector::class, SimplifyDeMorganBinaryRector::class, SimplifyTautologyTernaryRector::class, SimplifyForeachToArrayFilterRector::class, SingleInArrayToCompareRector::class, SimplifyIfElseToTernaryRector::class, JoinStringConcatRector::class, ConsecutiveNullCompareReturnsToNullCoalesceQueueRector::class, ExplicitBoolCompareRector::class, CombineIfRector::class, UseIdenticalOverEqualWithSameTypeRector::class, SimplifyBoolIdenticalTrueRector::class, SimplifyRegexPatternRector::class, BooleanNotIdenticalToNotIdenticalRector::class, StrvalToTypeCastRector::class, FloatvalToTypeCastRector::class, CallableThisArrayToAnonymousFunctionRector::class, AndAssignsToSeparateLinesRector::class, CompactToVariablesRector::class, CompleteDynamicPropertiesRector::class, IsAWithStringWithThirdArgumentRector::class, StrlenZeroToIdenticalEmptyStringRector::class, RemoveAlwaysTrueConditionSetInConstructorRector::class, ThrowWithPreviousExceptionRector::class, RemoveSoleValueSprintfRector::class, ShortenElseIfRector::class, AddPregQuoteDelimiterRector::class, ArrayMergeOfNonArraysToSimpleArrayRector::class, IntvalToTypeCastRector::class, BoolvalToTypeCastRector::class, ArrayKeyExistsTernaryThenValueToCoalescingRector::class, AbsolutizeRequireAndIncludePathRector::class, ChangeArrayPushToArrayAssignRector::class, ForRepeatedCountToOwnVariableRector::class, ForeachItemsAssignToEmptyArrayToAssignRector::class, InlineIfToExplicitIfRector::class, ArrayKeysAndInArrayToArrayKeyExistsRector::class, SplitListAssignToSeparateLineRector::class, UnusedForeachValueToArrayKeysRector::class, CommonNotEqualRector::class, SetTypeToCastRector::class, LogicalToBooleanRector::class, VarToPublicPropertyRector::class, IssetOnPropertyObjectToPropertyExistsRector::class, NewStaticToNewSelfRector::class, UnwrapSprintfOneArgumentRector::class, SwitchNegatedTernaryRector::class, SingularSwitchToIfRector::class, SimplifyIfNullableReturnRector::class, NarrowUnionTypeDocRector::class, FuncGetArgsToVariadicParamRector::class, CallUserFuncToMethodCallRector::class, CallUserFuncWithArrowFunctionToInlineRector::class, CountArrayToEmptyArrayComparisonRector::class, FlipTypeControlToUseExclusiveTypeRector::class, ExplicitMethodCallOverMagicGetSetRector::class, InlineArrayReturnAssignRector::class, InlineIsAInstanceOfRector::class, TernaryFalseExpressionToIfRector::class, InlineConstructorDefaultToPropertyRector::class, SimplifyUselessLastVariableAssignRector::class, ReturnTypeFromStrictScalarReturnExprRector::class, TernaryEmptyArrayArrayDimFetchToCoalesceRector::class, OptionalParametersAfterRequiredRector::class, SimplifyEmptyCheckOnEmptyArrayRector::class, SwitchTrueToIfRector::class, CleanupUnneededNullsafeOperatorRector::class, MakeTypedPropertyNullableIfCheckedRector::class, RemoveFinalFromEntityRector::class, DisallowedEmptyRuleFixerRector::class]);
$rectorConfig->rules([CombinedAssignRector::class, SimplifyEmptyArrayCheckRector::class, ReplaceMultipleBooleanNotRector::class, ForeachToInArrayRector::class, SimplifyForeachToCoalescingRector::class, SimplifyFuncGetArgsCountRector::class, SimplifyInArrayValuesRector::class, SimplifyStrposLowerRector::class, GetClassToInstanceOfRector::class, SimplifyArraySearchRector::class, SimplifyConditionsRector::class, SimplifyIfNotNullReturnRector::class, SimplifyIfReturnBoolRector::class, SimplifyUselessVariableRector::class, UnnecessaryTernaryExpressionRector::class, RemoveExtraParametersRector::class, SimplifyDeMorganBinaryRector::class, SimplifyTautologyTernaryRector::class, SimplifyForeachToArrayFilterRector::class, SingleInArrayToCompareRector::class, SimplifyIfElseToTernaryRector::class, JoinStringConcatRector::class, ConsecutiveNullCompareReturnsToNullCoalesceQueueRector::class, ExplicitBoolCompareRector::class, CombineIfRector::class, UseIdenticalOverEqualWithSameTypeRector::class, SimplifyBoolIdenticalTrueRector::class, SimplifyRegexPatternRector::class, BooleanNotIdenticalToNotIdenticalRector::class, StrvalToTypeCastRector::class, FloatvalToTypeCastRector::class, CallableThisArrayToAnonymousFunctionRector::class, AndAssignsToSeparateLinesRector::class, CompactToVariablesRector::class, CompleteDynamicPropertiesRector::class, IsAWithStringWithThirdArgumentRector::class, StrlenZeroToIdenticalEmptyStringRector::class, RemoveAlwaysTrueConditionSetInConstructorRector::class, ThrowWithPreviousExceptionRector::class, RemoveSoleValueSprintfRector::class, ShortenElseIfRector::class, AddPregQuoteDelimiterRector::class, ArrayMergeOfNonArraysToSimpleArrayRector::class, IntvalToTypeCastRector::class, BoolvalToTypeCastRector::class, ArrayKeyExistsTernaryThenValueToCoalescingRector::class, AbsolutizeRequireAndIncludePathRector::class, ChangeArrayPushToArrayAssignRector::class, ForRepeatedCountToOwnVariableRector::class, ForeachItemsAssignToEmptyArrayToAssignRector::class, InlineIfToExplicitIfRector::class, ArrayKeysAndInArrayToArrayKeyExistsRector::class, SplitListAssignToSeparateLineRector::class, UnusedForeachValueToArrayKeysRector::class, CommonNotEqualRector::class, SetTypeToCastRector::class, LogicalToBooleanRector::class, VarToPublicPropertyRector::class, IssetOnPropertyObjectToPropertyExistsRector::class, NewStaticToNewSelfRector::class, UnwrapSprintfOneArgumentRector::class, SwitchNegatedTernaryRector::class, SingularSwitchToIfRector::class, SimplifyIfNullableReturnRector::class, NarrowUnionTypeDocRector::class, FuncGetArgsToVariadicParamRector::class, CallUserFuncToMethodCallRector::class, CallUserFuncWithArrowFunctionToInlineRector::class, CountArrayToEmptyArrayComparisonRector::class, FlipTypeControlToUseExclusiveTypeRector::class, ExplicitMethodCallOverMagicGetSetRector::class, InlineArrayReturnAssignRector::class, InlineIsAInstanceOfRector::class, TernaryFalseExpressionToIfRector::class, InlineConstructorDefaultToPropertyRector::class, ReturnTypeFromStrictScalarReturnExprRector::class, TernaryEmptyArrayArrayDimFetchToCoalesceRector::class, OptionalParametersAfterRequiredRector::class, SimplifyEmptyCheckOnEmptyArrayRector::class, SwitchTrueToIfRector::class, CleanupUnneededNullsafeOperatorRector::class, MakeTypedPropertyNullableIfCheckedRector::class, RemoveFinalFromEntityRector::class, DisallowedEmptyRuleFixerRector::class]);
};

View File

@ -1,4 +1,4 @@
# 414 Rules Overview
# 413 Rules Overview
<br>
@ -6,7 +6,7 @@
- [Arguments](#arguments) (6)
- [CodeQuality](#codequality) (78)
- [CodeQuality](#codequality) (77)
- [CodingStyle](#codingstyle) (37)
@ -1343,13 +1343,16 @@ Simplify `is_array` and `empty` functions combination into a simple identical ch
### SimplifyEmptyCheckOnEmptyArrayRector
Simplify `empty` functions calls on empty arrays
Simplify `empty()` functions calls on empty arrays
- class: [`Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector`](../rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php)
```diff
-$array = []; if(empty($values))
+$array = []; if([] === $values)
$array = [];
-if (empty($values)) {
+if ([] === $values) {
}
```
<br>
@ -1547,25 +1550,6 @@ Simplify tautology ternary to value
<br>
### SimplifyUselessLastVariableAssignRector
Removes the latest useless variable assigns before a variable will return.
- class: [`Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessLastVariableAssignRector`](../rules/CodeQuality/Rector/FunctionLike/SimplifyUselessLastVariableAssignRector.php)
```diff
function ($b) {
- $a = true;
if ($b === 1) {
return $b;
}
- return $a;
+ return true;
};
```
<br>
### SimplifyUselessVariableRector
Removes useless variable assigns

View File

@ -60,7 +60,19 @@ final class SimplifyEmptyCheckOnEmptyArrayRector extends AbstractScopeAwareRecto
}
public function getRuleDefinition() : RuleDefinition
{
return new RuleDefinition('Simplify `empty` functions calls on empty arrays', [new CodeSample('$array = []; if(empty($values))', '$array = []; if([] === $values)')]);
return new RuleDefinition('Simplify empty() functions calls on empty arrays', [new CodeSample(<<<'CODE_SAMPLE'
$array = [];
if (empty($values)) {
}
CODE_SAMPLE
, <<<'CODE_SAMPLE'
$array = [];
if ([] === $values) {
}
CODE_SAMPLE
)]);
}
/**
* @return array<class-string<Node>>

View File

@ -1,270 +0,0 @@
<?php
declare (strict_types=1);
namespace Rector\CodeQuality\Rector\FunctionLike;
use PhpParser\Comment\Doc;
use PhpParser\Node;
use PhpParser\Node\Expr\Array_;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Expr\AssignOp;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\Expression;
use PhpParser\Node\Stmt\Return_;
use PHPStan\Type\MixedType;
use Rector\CodeQuality\NodeAnalyzer\ReturnAnalyzer;
use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
use Rector\Core\NodeAnalyzer\ExprAnalyzer;
use Rector\Core\NodeAnalyzer\VariableAnalyzer;
use Rector\Core\NodeManipulator\ArrayManipulator;
use Rector\Core\PhpParser\Node\AssignAndBinaryMap;
use Rector\Core\Rector\AbstractRector;
use Rector\DeadCode\NodeAnalyzer\ExprUsedInNodeAnalyzer;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
/**
* @see \Rector\Tests\CodeQuality\Rector\FunctionLike\SimplifyUselessLastVariableAssignRector\SimplifyUselessLastVariableAssignRectorTest
*/
final class SimplifyUselessLastVariableAssignRector extends AbstractRector
{
/**
* @readonly
* @var \Rector\Core\PhpParser\Node\AssignAndBinaryMap
*/
private $assignAndBinaryMap;
/**
* @readonly
* @var \Rector\Core\NodeAnalyzer\VariableAnalyzer
*/
private $variableAnalyzer;
/**
* @readonly
* @var \Rector\CodeQuality\NodeAnalyzer\ReturnAnalyzer
*/
private $returnAnalyzer;
/**
* @readonly
* @var \Rector\DeadCode\NodeAnalyzer\ExprUsedInNodeAnalyzer
*/
private $exprUsedInNodeAnalyzer;
/**
* @readonly
* @var \Rector\Core\NodeManipulator\ArrayManipulator
*/
private $arrayManipulator;
/**
* @readonly
* @var \Rector\Core\NodeAnalyzer\ExprAnalyzer
*/
private $exprAnalyzer;
public function __construct(AssignAndBinaryMap $assignAndBinaryMap, VariableAnalyzer $variableAnalyzer, ReturnAnalyzer $returnAnalyzer, ExprUsedInNodeAnalyzer $exprUsedInNodeAnalyzer, ArrayManipulator $arrayManipulator, ExprAnalyzer $exprAnalyzer)
{
$this->assignAndBinaryMap = $assignAndBinaryMap;
$this->variableAnalyzer = $variableAnalyzer;
$this->returnAnalyzer = $returnAnalyzer;
$this->exprUsedInNodeAnalyzer = $exprUsedInNodeAnalyzer;
$this->arrayManipulator = $arrayManipulator;
$this->exprAnalyzer = $exprAnalyzer;
}
public function getRuleDefinition() : RuleDefinition
{
return new RuleDefinition('Removes the latest useless variable assigns before a variable will return.', [new CodeSample(<<<'CODE_SAMPLE'
function ($b) {
$a = true;
if ($b === 1) {
return $b;
}
return $a;
};
CODE_SAMPLE
, <<<'CODE_SAMPLE'
function ($b) {
if ($b === 1) {
return $b;
}
return true;
};
CODE_SAMPLE
)]);
}
/**
* @return array<class-string<Node>>
*/
public function getNodeTypes() : array
{
return [StmtsAwareInterface::class];
}
/**
* @param StmtsAwareInterface $node
*/
public function refactor(Node $node) : ?Node
{
$stmts = $node->stmts;
if ($stmts === null) {
return null;
}
foreach ($stmts as $stmt) {
if (!$stmt instanceof Return_) {
continue;
}
if ($this->shouldSkip($stmt)) {
return null;
}
$assignStmt = $this->getLatestVariableAssignment($stmts, $stmt);
if (!$assignStmt instanceof Expression) {
return null;
}
if ($this->shouldSkipOnAssignStmt($assignStmt)) {
return null;
}
if ($this->isAssigmentUseless($stmts, $assignStmt, $stmt)) {
return null;
}
$assign = $assignStmt->expr;
if (!$assign instanceof Assign && !$assign instanceof AssignOp) {
return null;
}
$this->removeNode($assignStmt);
return $this->processSimplifyUselessVariable($node, $stmt, $assign);
}
return null;
}
private function shouldSkip(Return_ $return) : bool
{
$variable = $return->expr;
if (!$variable instanceof Variable) {
return \true;
}
if ($this->returnAnalyzer->hasByRefReturn($return)) {
return \true;
}
if ($this->variableAnalyzer->isStaticOrGlobal($variable)) {
return \true;
}
if ($this->variableAnalyzer->isUsedByReference($variable)) {
return \true;
}
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($return);
return !$phpDocInfo->getVarType() instanceof MixedType;
}
/**
* @param Stmt[] $stmts
*/
private function getLatestVariableAssignment(array $stmts, Return_ $return) : ?Expression
{
$returnVariable = $return->expr;
if (!$returnVariable instanceof Variable) {
return null;
}
//Search for the latest variable assigment
foreach (\array_reverse($stmts) as $stmt) {
if (!$stmt instanceof Expression) {
continue;
}
$assignNode = $stmt->expr;
if (!$assignNode instanceof Assign && !$assignNode instanceof AssignOp) {
continue;
}
$currentVariableNode = $assignNode->var;
if (!$currentVariableNode instanceof Variable) {
continue;
}
if ($this->nodeNameResolver->areNamesEqual($returnVariable, $currentVariableNode)) {
return $stmt;
}
}
return null;
}
private function shouldSkipOnAssignStmt(Expression $expression) : bool
{
if ($this->hasSomeComment($expression)) {
return \true;
}
$assign = $expression->expr;
if (!$assign instanceof Assign && !$assign instanceof AssignOp) {
return \true;
}
$variable = $assign->var;
if (!$variable instanceof Variable) {
return \true;
}
$value = $assign->expr;
if ($this->exprAnalyzer->isDynamicExpr($value)) {
return \true;
}
return $value instanceof Array_ && $this->arrayManipulator->isDynamicArray($value);
}
private function hasSomeComment(Expression $expression) : bool
{
if ($expression->getComments() !== []) {
return \true;
}
return $expression->getDocComment() instanceof Doc;
}
/**
* @param Stmt[] $stmts
*/
private function isAssigmentUseless(array $stmts, Expression $expression, Return_ $return) : bool
{
$assign = $expression->expr;
if (!$assign instanceof Assign && !$assign instanceof AssignOp) {
return \false;
}
$variable = $assign->var;
if (!$variable instanceof Variable) {
return \false;
}
$nodesInRange = $this->getNodesInRange($stmts, $expression, $return);
if ($nodesInRange === null) {
return \false;
}
//Find the variable usage
$variableUsageNodes = $this->betterNodeFinder->find($nodesInRange, function (Node $node) use($variable) : bool {
return $this->exprUsedInNodeAnalyzer->isUsed($node, $variable);
});
//Should be exactly used 2 times (assignment + return)
return \count($variableUsageNodes) !== 2;
}
/**
* @param Stmt[] $stmts
* @return Stmt[]|null
*/
private function getNodesInRange(array $stmts, Expression $expression, Return_ $return) : ?array
{
$resultStmts = [];
$wasStarted = \false;
foreach ($stmts as $stmt) {
if ($stmt === $expression) {
$wasStarted = \true;
}
if ($wasStarted) {
$resultStmts[] = $stmt;
}
if ($stmt === $return) {
return $resultStmts;
}
}
if ($wasStarted) {
// This should not happen, if you land here check your given parameter
return null;
}
return $resultStmts;
}
/**
* @param \PhpParser\Node\Expr\Assign|\PhpParser\Node\Expr\AssignOp $assign
*/
private function processSimplifyUselessVariable(StmtsAwareInterface $stmtsAware, Return_ $return, $assign) : ?StmtsAwareInterface
{
if (!$assign instanceof Assign) {
$binaryClass = $this->assignAndBinaryMap->getAlternative($assign);
if ($binaryClass === null) {
return null;
}
$return->expr = new $binaryClass($assign->var, $assign->expr);
} else {
$return->expr = $assign->expr;
}
return $stmtsAware;
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '76da9489fe16c5854d5fed29b81197940025e975';
public const PACKAGE_VERSION = '11b278ca27f23ba4a2c55df877664fc23413a81d';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-10 06:03:12';
public const RELEASE_DATE = '2023-05-10 09:06:51';
/**
* @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 ComposerAutoloaderInit7c96cac68aa678588e9ac8ea243e6ab0::getLoader();
return ComposerAutoloaderInit35e18a8931c4aea513f968d2f8a64100::getLoader();

View File

@ -1262,7 +1262,6 @@ return array(
'Rector\\CodeQuality\\Rector\\FuncCall\\StrvalToTypeCastRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/StrvalToTypeCastRector.php',
'Rector\\CodeQuality\\Rector\\FuncCall\\UnwrapSprintfOneArgumentRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/UnwrapSprintfOneArgumentRector.php',
'Rector\\CodeQuality\\Rector\\FunctionLike\\RemoveAlwaysTrueConditionSetInConstructorRector' => $baseDir . '/rules/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector.php',
'Rector\\CodeQuality\\Rector\\FunctionLike\\SimplifyUselessLastVariableAssignRector' => $baseDir . '/rules/CodeQuality/Rector/FunctionLike/SimplifyUselessLastVariableAssignRector.php',
'Rector\\CodeQuality\\Rector\\FunctionLike\\SimplifyUselessVariableRector' => $baseDir . '/rules/CodeQuality/Rector/FunctionLike/SimplifyUselessVariableRector.php',
'Rector\\CodeQuality\\Rector\\Identical\\BooleanNotIdenticalToNotIdenticalRector' => $baseDir . '/rules/CodeQuality/Rector/Identical/BooleanNotIdenticalToNotIdenticalRector.php',
'Rector\\CodeQuality\\Rector\\Identical\\FlipTypeControlToUseExclusiveTypeRector' => $baseDir . '/rules/CodeQuality/Rector/Identical/FlipTypeControlToUseExclusiveTypeRector.php',

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit7c96cac68aa678588e9ac8ea243e6ab0
class ComposerAutoloaderInit35e18a8931c4aea513f968d2f8a64100
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit7c96cac68aa678588e9ac8ea243e6ab0
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit7c96cac68aa678588e9ac8ea243e6ab0', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit35e18a8931c4aea513f968d2f8a64100', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit7c96cac68aa678588e9ac8ea243e6ab0', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit35e18a8931c4aea513f968d2f8a64100', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit35e18a8931c4aea513f968d2f8a64100::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit35e18a8931c4aea513f968d2f8a64100::$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 ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0
class ComposerStaticInit35e18a8931c4aea513f968d2f8a64100
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -1504,7 +1504,6 @@ class ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0
'Rector\\CodeQuality\\Rector\\FuncCall\\StrvalToTypeCastRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/StrvalToTypeCastRector.php',
'Rector\\CodeQuality\\Rector\\FuncCall\\UnwrapSprintfOneArgumentRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/UnwrapSprintfOneArgumentRector.php',
'Rector\\CodeQuality\\Rector\\FunctionLike\\RemoveAlwaysTrueConditionSetInConstructorRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FunctionLike/RemoveAlwaysTrueConditionSetInConstructorRector.php',
'Rector\\CodeQuality\\Rector\\FunctionLike\\SimplifyUselessLastVariableAssignRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FunctionLike/SimplifyUselessLastVariableAssignRector.php',
'Rector\\CodeQuality\\Rector\\FunctionLike\\SimplifyUselessVariableRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FunctionLike/SimplifyUselessVariableRector.php',
'Rector\\CodeQuality\\Rector\\Identical\\BooleanNotIdenticalToNotIdenticalRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/Identical/BooleanNotIdenticalToNotIdenticalRector.php',
'Rector\\CodeQuality\\Rector\\Identical\\FlipTypeControlToUseExclusiveTypeRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/Identical/FlipTypeControlToUseExclusiveTypeRector.php',
@ -3112,9 +3111,9 @@ class ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7c96cac68aa678588e9ac8ea243e6ab0::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit35e18a8931c4aea513f968d2f8a64100::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit35e18a8931c4aea513f968d2f8a64100::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit35e18a8931c4aea513f968d2f8a64100::$classMap;
}, null, ClassLoader::class);
}