diff --git a/config/set/code-quality.php b/config/set/code-quality.php index 0858b824995..a346a161c17 100644 --- a/config/set/code-quality.php +++ b/config/set/code-quality.php @@ -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]); }; diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index 1f520c8a538..a93c35267db 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 414 Rules Overview +# 413 Rules Overview
@@ -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) { + } ```
@@ -1547,25 +1550,6 @@ Simplify tautology ternary to value
-### 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; - }; -``` - -
- ### SimplifyUselessVariableRector Removes useless variable assigns diff --git a/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php b/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php index 00c3442ea99..e84e6646f5e 100644 --- a/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php +++ b/rules/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector.php @@ -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> diff --git a/rules/CodeQuality/Rector/FunctionLike/SimplifyUselessLastVariableAssignRector.php b/rules/CodeQuality/Rector/FunctionLike/SimplifyUselessLastVariableAssignRector.php deleted file mode 100644 index ae4bf55f0f7..00000000000 --- a/rules/CodeQuality/Rector/FunctionLike/SimplifyUselessLastVariableAssignRector.php +++ /dev/null @@ -1,270 +0,0 @@ -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> - */ - 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; - } -} diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 2116012f30d..17c04a14b2a 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/vendor/autoload.php b/vendor/autoload.php index cae2ee289e3..022b12af8b1 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit7c96cac68aa678588e9ac8ea243e6ab0::getLoader(); +return ComposerAutoloaderInit35e18a8931c4aea513f968d2f8a64100::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 8d63f61c181..3a09bb9fc46 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -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', diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 86c3adb0860..c6f6ba75bc2 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -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; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 026edcf6f9c..4204c2ffe83 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -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); }