mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 08:20:53 +00:00
Updated Rector to commit 80715e62b5
80715e62b5
[CodeQuality] Drop ArrayThisCallToThisMethodCallRector as changes behavior and better handled by FirstClassCallableRector (#2571)
This commit is contained in:
parent
65284cc98a
commit
68845a00bf
|
@ -3,7 +3,6 @@
|
|||
declare (strict_types=1);
|
||||
namespace RectorPrefix202206;
|
||||
|
||||
use Rector\CodeQuality\Rector\Array_\ArrayThisCallToThisMethodCallRector;
|
||||
use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
|
||||
use Rector\CodeQuality\Rector\Assign\CombinedAssignRector;
|
||||
use Rector\CodeQuality\Rector\Assign\SplitListAssignToSeparateLineRector;
|
||||
|
@ -106,5 +105,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, SimplifyIfIssetToNullCoalescingRector::class, ExplicitBoolCompareRector::class, CombineIfRector::class, UseIdenticalOverEqualWithSameTypeRector::class, SimplifyBoolIdenticalTrueRector::class, SimplifyRegexPatternRector::class, BooleanNotIdenticalToNotIdenticalRector::class, CallableThisArrayToAnonymousFunctionRector::class, AndAssignsToSeparateLinesRector::class, ForToForeachRector::class, CompactToVariablesRector::class, CompleteDynamicPropertiesRector::class, IsAWithStringWithThirdArgumentRector::class, StrlenZeroToIdenticalEmptyStringRector::class, RemoveAlwaysTrueConditionSetInConstructorRector::class, ThrowWithPreviousExceptionRector::class, RemoveSoleValueSprintfRector::class, ShortenElseIfRector::class, AddPregQuoteDelimiterRector::class, ArrayMergeOfNonArraysToSimpleArrayRector::class, IntvalToTypeCastRector::class, ArrayKeyExistsTernaryThenValueToCoalescingRector::class, AbsolutizeRequireAndIncludePathRector::class, ChangeArrayPushToArrayAssignRector::class, ForRepeatedCountToOwnVariableRector::class, ForeachItemsAssignToEmptyArrayToAssignRector::class, InlineIfToExplicitIfRector::class, ArrayKeysAndInArrayToArrayKeyExistsRector::class, SplitListAssignToSeparateLineRector::class, UnusedForeachValueToArrayKeysRector::class, ArrayThisCallToThisMethodCallRector::class, CommonNotEqualRector::class, SetTypeToCastRector::class, LogicalToBooleanRector::class, VarToPublicPropertyRector::class, IssetOnPropertyObjectToPropertyExistsRector::class, NewStaticToNewSelfRector::class, DateTimeToDateTimeInterfaceRector::class, UnwrapSprintfOneArgumentRector::class, SwitchNegatedTernaryRector::class, SingularSwitchToIfRector::class, SimplifyIfNullableReturnRector::class, NarrowUnionTypeDocRector::class, FuncGetArgsToVariadicParamRector::class, CallUserFuncToMethodCallRector::class, CallUserFuncWithArrowFunctionToInlineRector::class, CountArrayToEmptyArrayComparisonRector::class, FlipTypeControlToUseExclusiveTypeRector::class, ExplicitMethodCallOverMagicGetSetRector::class, DoWhileBreakFalseToIfElseRector::class, InlineArrayReturnAssignRector::class, InlineIsAInstanceOfRector::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, SimplifyIfIssetToNullCoalescingRector::class, ExplicitBoolCompareRector::class, CombineIfRector::class, UseIdenticalOverEqualWithSameTypeRector::class, SimplifyBoolIdenticalTrueRector::class, SimplifyRegexPatternRector::class, BooleanNotIdenticalToNotIdenticalRector::class, CallableThisArrayToAnonymousFunctionRector::class, AndAssignsToSeparateLinesRector::class, ForToForeachRector::class, CompactToVariablesRector::class, CompleteDynamicPropertiesRector::class, IsAWithStringWithThirdArgumentRector::class, StrlenZeroToIdenticalEmptyStringRector::class, RemoveAlwaysTrueConditionSetInConstructorRector::class, ThrowWithPreviousExceptionRector::class, RemoveSoleValueSprintfRector::class, ShortenElseIfRector::class, AddPregQuoteDelimiterRector::class, ArrayMergeOfNonArraysToSimpleArrayRector::class, IntvalToTypeCastRector::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, DateTimeToDateTimeInterfaceRector::class, UnwrapSprintfOneArgumentRector::class, SwitchNegatedTernaryRector::class, SingularSwitchToIfRector::class, SimplifyIfNullableReturnRector::class, NarrowUnionTypeDocRector::class, FuncGetArgsToVariadicParamRector::class, CallUserFuncToMethodCallRector::class, CallUserFuncWithArrowFunctionToInlineRector::class, CountArrayToEmptyArrayComparisonRector::class, FlipTypeControlToUseExclusiveTypeRector::class, ExplicitMethodCallOverMagicGetSetRector::class, DoWhileBreakFalseToIfElseRector::class, InlineArrayReturnAssignRector::class, InlineIsAInstanceOfRector::class]);
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# 520 Rules Overview
|
||||
# 519 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
|||
|
||||
- [Arguments](#arguments) (5)
|
||||
|
||||
- [CodeQuality](#codequality) (73)
|
||||
- [CodeQuality](#codequality) (72)
|
||||
|
||||
- [CodingStyle](#codingstyle) (35)
|
||||
|
||||
|
@ -390,30 +390,6 @@ Change array_merge of non arrays to array directly
|
|||
|
||||
<br>
|
||||
|
||||
### ArrayThisCallToThisMethodCallRector
|
||||
|
||||
Change `[$this, someMethod]` without any args to `$this->someMethod()`
|
||||
|
||||
- class: [`Rector\CodeQuality\Rector\Array_\ArrayThisCallToThisMethodCallRector`](../rules/CodeQuality/Rector/Array_/ArrayThisCallToThisMethodCallRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
- $values = [$this, 'giveMeMore'];
|
||||
+ $values = $this->giveMeMore();
|
||||
}
|
||||
|
||||
public function giveMeMore()
|
||||
{
|
||||
return 'more';
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### BooleanNotIdenticalToNotIdenticalRector
|
||||
|
||||
Negated identical boolean compare to not identical compare (does not apply to non-bool values)
|
||||
|
|
|
@ -1,137 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\CodeQuality\Rector\Array_;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Arg;
|
||||
use PhpParser\Node\Expr\Array_;
|
||||
use PhpParser\Node\Expr\ArrayDimFetch;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\PropertyFetch;
|
||||
use PhpParser\Node\Expr\Variable;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\Reflection\ReflectionProvider;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\NodeCollector\NodeAnalyzer\ArrayCallableMethodMatcher;
|
||||
use Rector\NodeCollector\ValueObject\ArrayCallable;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
/**
|
||||
* @see \Rector\Tests\CodeQuality\Rector\Array_\ArrayThisCallToThisMethodCallRector\ArrayThisCallToThisMethodCallRectorTest
|
||||
*/
|
||||
final class ArrayThisCallToThisMethodCallRector extends AbstractRector
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeCollector\NodeAnalyzer\ArrayCallableMethodMatcher
|
||||
*/
|
||||
private $arrayCallableMethodMatcher;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(ArrayCallableMethodMatcher $arrayCallableMethodMatcher, ReflectionProvider $reflectionProvider)
|
||||
{
|
||||
$this->arrayCallableMethodMatcher = $arrayCallableMethodMatcher;
|
||||
$this->reflectionProvider = $reflectionProvider;
|
||||
}
|
||||
public function getRuleDefinition() : RuleDefinition
|
||||
{
|
||||
return new RuleDefinition('Change `[$this, someMethod]` without any args to $this->someMethod()', [new CodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
$values = [$this, 'giveMeMore'];
|
||||
}
|
||||
|
||||
public function giveMeMore()
|
||||
{
|
||||
return 'more';
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
, <<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
$values = $this->giveMeMore();
|
||||
}
|
||||
|
||||
public function giveMeMore()
|
||||
{
|
||||
return 'more';
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
)]);
|
||||
}
|
||||
/**
|
||||
* @return array<class-string<Node>>
|
||||
*/
|
||||
public function getNodeTypes() : array
|
||||
{
|
||||
return [Array_::class];
|
||||
}
|
||||
/**
|
||||
* @param Array_ $node
|
||||
*/
|
||||
public function refactor(Node $node) : ?Node
|
||||
{
|
||||
$arrayCallable = $this->arrayCallableMethodMatcher->match($node);
|
||||
if (!$arrayCallable instanceof ArrayCallable) {
|
||||
return null;
|
||||
}
|
||||
if ($this->isAssignedToNetteMagicOnProperty($node)) {
|
||||
return null;
|
||||
}
|
||||
if ($this->isInsideProperty($node)) {
|
||||
return null;
|
||||
}
|
||||
$parentNode = $node->getAttribute(AttributeKey::PARENT_NODE);
|
||||
// skip if part of method
|
||||
if ($parentNode instanceof Arg) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->reflectionProvider->hasClass($arrayCallable->getClass())) {
|
||||
return null;
|
||||
}
|
||||
$classReflection = $this->reflectionProvider->getClass($arrayCallable->getClass());
|
||||
if (!$classReflection->hasMethod($arrayCallable->getMethod())) {
|
||||
return null;
|
||||
}
|
||||
$nativeReflectionClass = $classReflection->getNativeReflection();
|
||||
$nativeReflectionMethod = $nativeReflectionClass->getMethod($arrayCallable->getMethod());
|
||||
if ($nativeReflectionMethod->getNumberOfParameters() === 0) {
|
||||
return new MethodCall(new Variable('this'), $arrayCallable->getMethod());
|
||||
}
|
||||
$extendedMethodReflection = $classReflection->getNativeMethod($arrayCallable->getMethod());
|
||||
return $this->nodeFactory->createClosureFromMethodReflection($extendedMethodReflection);
|
||||
}
|
||||
private function isAssignedToNetteMagicOnProperty(Array_ $array) : bool
|
||||
{
|
||||
$parent = $array->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parent instanceof Assign) {
|
||||
return \false;
|
||||
}
|
||||
if (!$parent->var instanceof ArrayDimFetch) {
|
||||
return \false;
|
||||
}
|
||||
if (!$parent->var->var instanceof PropertyFetch) {
|
||||
return \false;
|
||||
}
|
||||
/** @var PropertyFetch $propertyFetch */
|
||||
$propertyFetch = $parent->var->var;
|
||||
return $this->isName($propertyFetch->name, 'on*');
|
||||
}
|
||||
private function isInsideProperty(Array_ $array) : bool
|
||||
{
|
||||
$parentProperty = $this->betterNodeFinder->findParentType($array, Property::class);
|
||||
return $parentProperty !== null;
|
||||
}
|
||||
}
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '237f255023d122d970f9a567dc4685db9c56b978';
|
||||
public const PACKAGE_VERSION = '80715e62b5da2ad57bd7bc0fbf4be78a12e5e6fa';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-06-26 11:56:28';
|
||||
public const RELEASE_DATE = '2022-06-26 12:11:25';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -41,7 +41,6 @@ use PhpParser\Node\Stmt\Use_;
|
|||
use PhpParser\Node\Stmt\UseUse;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
|
||||
use PHPStan\Reflection\MethodReflection;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
|
||||
|
@ -52,7 +51,6 @@ use Rector\Core\Exception\NotImplementedYetException;
|
|||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use Rector\Core\NodeDecorator\PropertyTypeDecorator;
|
||||
use Rector\Core\Php\PhpVersionProvider;
|
||||
use Rector\Core\PhpParser\AstResolver;
|
||||
use Rector\Core\ValueObject\MethodName;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
|
@ -107,17 +105,12 @@ final class NodeFactory
|
|||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||
*/
|
||||
private $currentNodeProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\AstResolver
|
||||
*/
|
||||
private $reflectionAstResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\NodeDecorator\PropertyTypeDecorator
|
||||
*/
|
||||
private $propertyTypeDecorator;
|
||||
public function __construct(BuilderFactory $builderFactory, PhpDocInfoFactory $phpDocInfoFactory, PhpVersionProvider $phpVersionProvider, StaticTypeMapper $staticTypeMapper, NodeNameResolver $nodeNameResolver, PhpDocTypeChanger $phpDocTypeChanger, CurrentNodeProvider $currentNodeProvider, AstResolver $reflectionAstResolver, PropertyTypeDecorator $propertyTypeDecorator)
|
||||
public function __construct(BuilderFactory $builderFactory, PhpDocInfoFactory $phpDocInfoFactory, PhpVersionProvider $phpVersionProvider, StaticTypeMapper $staticTypeMapper, NodeNameResolver $nodeNameResolver, PhpDocTypeChanger $phpDocTypeChanger, CurrentNodeProvider $currentNodeProvider, PropertyTypeDecorator $propertyTypeDecorator)
|
||||
{
|
||||
$this->builderFactory = $builderFactory;
|
||||
$this->phpDocInfoFactory = $phpDocInfoFactory;
|
||||
|
@ -126,7 +119,6 @@ final class NodeFactory
|
|||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
$this->phpDocTypeChanger = $phpDocTypeChanger;
|
||||
$this->currentNodeProvider = $currentNodeProvider;
|
||||
$this->reflectionAstResolver = $reflectionAstResolver;
|
||||
$this->propertyTypeDecorator = $propertyTypeDecorator;
|
||||
}
|
||||
/**
|
||||
|
@ -422,14 +414,6 @@ final class NodeFactory
|
|||
{
|
||||
return new ConstFetch(new Name('true'));
|
||||
}
|
||||
public function createClosureFromMethodReflection(MethodReflection $methodReflection) : Closure
|
||||
{
|
||||
$classMethod = $this->reflectionAstResolver->resolveClassMethodFromMethodReflection($methodReflection);
|
||||
if (!$classMethod instanceof ClassMethod) {
|
||||
throw new ShouldNotHappenException();
|
||||
}
|
||||
return $this->createClosureFromClassMethod($classMethod);
|
||||
}
|
||||
/**
|
||||
* @param string|ObjectReference::* $constantName
|
||||
*/
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit38ba857e9e694c7dd8d7f2a0a6917c37::getLoader();
|
||||
return ComposerAutoloaderInit9654d1f39e99e3f4b32bf14eaa6c8cf3::getLoader();
|
||||
|
|
1
vendor/composer/autoload_classmap.php
vendored
1
vendor/composer/autoload_classmap.php
vendored
|
@ -1336,7 +1336,6 @@ return array(
|
|||
'Rector\\CodeQuality\\NodeManipulator\\ClassMethodReturnTypeManipulator' => $baseDir . '/rules/CodeQuality/NodeManipulator/ClassMethodReturnTypeManipulator.php',
|
||||
'Rector\\CodeQuality\\NodeManipulator\\ExprBoolCaster' => $baseDir . '/rules/CodeQuality/NodeManipulator/ExprBoolCaster.php',
|
||||
'Rector\\CodeQuality\\NodeTypeGroup' => $baseDir . '/rules/CodeQuality/NodeTypeGroup.php',
|
||||
'Rector\\CodeQuality\\Rector\\Array_\\ArrayThisCallToThisMethodCallRector' => $baseDir . '/rules/CodeQuality/Rector/Array_/ArrayThisCallToThisMethodCallRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\Array_\\CallableThisArrayToAnonymousFunctionRector' => $baseDir . '/rules/CodeQuality/Rector/Array_/CallableThisArrayToAnonymousFunctionRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\Assign\\CombinedAssignRector' => $baseDir . '/rules/CodeQuality/Rector/Assign/CombinedAssignRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\Assign\\SplitListAssignToSeparateLineRector' => $baseDir . '/rules/CodeQuality/Rector/Assign/SplitListAssignToSeparateLineRector.php',
|
||||
|
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit38ba857e9e694c7dd8d7f2a0a6917c37
|
||||
class ComposerAutoloaderInit9654d1f39e99e3f4b32bf14eaa6c8cf3
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInit38ba857e9e694c7dd8d7f2a0a6917c37
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit38ba857e9e694c7dd8d7f2a0a6917c37', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit9654d1f39e99e3f4b32bf14eaa6c8cf3', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit38ba857e9e694c7dd8d7f2a0a6917c37', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit9654d1f39e99e3f4b32bf14eaa6c8cf3', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit9654d1f39e99e3f4b32bf14eaa6c8cf3::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit9654d1f39e99e3f4b32bf14eaa6c8cf3::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire38ba857e9e694c7dd8d7f2a0a6917c37($fileIdentifier, $file);
|
||||
composerRequire9654d1f39e99e3f4b32bf14eaa6c8cf3($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInit38ba857e9e694c7dd8d7f2a0a6917c37
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire38ba857e9e694c7dd8d7f2a0a6917c37($fileIdentifier, $file)
|
||||
function composerRequire9654d1f39e99e3f4b32bf14eaa6c8cf3($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
9
vendor/composer/autoload_static.php
vendored
9
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37
|
||||
class ComposerStaticInit9654d1f39e99e3f4b32bf14eaa6c8cf3
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
|
@ -1637,7 +1637,6 @@ class ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37
|
|||
'Rector\\CodeQuality\\NodeManipulator\\ClassMethodReturnTypeManipulator' => __DIR__ . '/../..' . '/rules/CodeQuality/NodeManipulator/ClassMethodReturnTypeManipulator.php',
|
||||
'Rector\\CodeQuality\\NodeManipulator\\ExprBoolCaster' => __DIR__ . '/../..' . '/rules/CodeQuality/NodeManipulator/ExprBoolCaster.php',
|
||||
'Rector\\CodeQuality\\NodeTypeGroup' => __DIR__ . '/../..' . '/rules/CodeQuality/NodeTypeGroup.php',
|
||||
'Rector\\CodeQuality\\Rector\\Array_\\ArrayThisCallToThisMethodCallRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/Array_/ArrayThisCallToThisMethodCallRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\Array_\\CallableThisArrayToAnonymousFunctionRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/Array_/CallableThisArrayToAnonymousFunctionRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\Assign\\CombinedAssignRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/Assign/CombinedAssignRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\Assign\\SplitListAssignToSeparateLineRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/Assign/SplitListAssignToSeparateLineRector.php',
|
||||
|
@ -3407,9 +3406,9 @@ class ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit38ba857e9e694c7dd8d7f2a0a6917c37::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit9654d1f39e99e3f4b32bf14eaa6c8cf3::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit9654d1f39e99e3f4b32bf14eaa6c8cf3::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit9654d1f39e99e3f4b32bf14eaa6c8cf3::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user