mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-30 07:50:53 +00:00
Updated Rector to commit 14f67de7e9
14f67de7e9
[League] Remove only League upgrade set from core, give space for community package with whole vendor (#1305)
This commit is contained in:
parent
3c4575dfa1
commit
4dc2c773aa
|
@ -1,38 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20211125;
|
||||
|
||||
use PHPStan\Type\ObjectWithoutClassType;
|
||||
use PHPStan\Type\StringType;
|
||||
use PHPStan\Type\VoidType;
|
||||
use Rector\Composer\Rector\ChangePackageVersionComposerRector;
|
||||
use Rector\Composer\ValueObject\PackageAndVersion;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\LeagueEvent\Rector\MethodCall\DispatchStringToObjectRector;
|
||||
use Rector\Removing\Rector\Class_\RemoveInterfacesRector;
|
||||
use Rector\Removing\Rector\Class_\RemoveParentRector;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Rector\Transform\Rector\Class_\AddInterfaceByParentRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector;
|
||||
use Rector\TypeDeclaration\ValueObject\AddParamTypeDeclaration;
|
||||
use Rector\TypeDeclaration\ValueObject\AddReturnTypeDeclaration;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$parameters->set(\Rector\Core\Configuration\Option::AUTO_IMPORT_NAMES, \true);
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Composer\Rector\ChangePackageVersionComposerRector::class)->call('configure', [[\Rector\Composer\Rector\ChangePackageVersionComposerRector::PACKAGES_AND_VERSIONS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Composer\ValueObject\PackageAndVersion('league/event', '^3.0')])]]);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->call('configure', [[\Rector\Renaming\Rector\MethodCall\RenameMethodRector::METHOD_CALL_RENAMES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Renaming\ValueObject\MethodCallRename('League\\Event\\EventInterface', 'getName', 'eventName'), new \Rector\Renaming\ValueObject\MethodCallRename('League\\Event\\EmitterInterface', 'emit', 'dispatch'), new \Rector\Renaming\ValueObject\MethodCallRename('League\\Event\\EmitterInterface', 'addListener', 'subscribeTo'), new \Rector\Renaming\ValueObject\MethodCallRename('League\\Event\\EmitterInterface', 'addOneTimeListener', 'subscribeOneTo'), new \Rector\Renaming\ValueObject\MethodCallRename('League\\Event\\EmitterInterface', 'useListenerProvider', 'subscribeListenersFrom'), new \Rector\Renaming\ValueObject\MethodCallRename('League\\Event\\ListenerInterface', 'handle', '__invoke')])]]);
|
||||
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector::class)->call('configure', [[\Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector::PARAMETER_TYPEHINTS => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\TypeDeclaration\ValueObject\AddParamTypeDeclaration('League\\Event\\ListenerInterface', '__invoke', 0, new \PHPStan\Type\ObjectWithoutClassType())])]]);
|
||||
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector::class)->call('configure', [[\Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector::METHOD_RETURN_TYPES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\TypeDeclaration\ValueObject\AddReturnTypeDeclaration('League\\Event\\EventInterface', 'eventName', new \PHPStan\Type\StringType()), new \Rector\TypeDeclaration\ValueObject\AddReturnTypeDeclaration('League\\Event\\ListenerInterface', '__invoke', new \PHPStan\Type\VoidType())])]]);
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->call('configure', [[\Rector\Renaming\Rector\Name\RenameClassRector::OLD_TO_NEW_CLASSES => ['League\\Event\\Emitter' => 'League\\Event\\EventDispatcher', 'League\\Event\\ListenerInterface' => 'League\\Event\\Listener', 'League\\Event\\GeneratorInterface' => 'League\\Event\\EventGenerator', 'League\\Event\\ListenerProviderInterface' => 'League\\Event\\ListenerSubscriber', 'League\\Event\\ListenerAcceptorInterface' => 'League\\Event\\ListenerRegistry']]]);
|
||||
$services->set(\Rector\Transform\Rector\Class_\AddInterfaceByParentRector::class)->call('configure', [[\Rector\Transform\Rector\Class_\AddInterfaceByParentRector::INTERFACE_BY_PARENT => ['League\\Event\\Event' => 'League\\Event\\HasEventName', 'League\\Event\\AbstractListener' => 'League\\Event\\Listener']]]);
|
||||
$services->set(\Rector\Removing\Rector\Class_\RemoveInterfacesRector::class)->call('configure', [[\Rector\Removing\Rector\Class_\RemoveInterfacesRector::INTERFACES_TO_REMOVE => ['League\\Event\\EventInterface']]]);
|
||||
$services->set(\Rector\Removing\Rector\Class_\RemoveParentRector::class)->call('configure', [[\Rector\Removing\Rector\Class_\RemoveParentRector::PARENT_TYPES_TO_REMOVE => ['League\\Event\\AbstractEvent', 'League\\Event\\Event', 'League\\Event\\AbstractListener']]]);
|
||||
$services->set(\Rector\LeagueEvent\Rector\MethodCall\DispatchStringToObjectRector::class);
|
||||
};
|
|
@ -1,4 +1,4 @@
|
|||
# 498 Rules Overview
|
||||
# 501 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
|||
|
||||
- [Composer](#composer) (6)
|
||||
|
||||
- [DeadCode](#deadcode) (49)
|
||||
- [DeadCode](#deadcode) (50)
|
||||
|
||||
- [DependencyInjection](#dependencyinjection) (3)
|
||||
|
||||
|
@ -26,9 +26,9 @@
|
|||
|
||||
- [DowngradePhp54](#downgradephp54) (6)
|
||||
|
||||
- [DowngradePhp55](#downgradephp55) (3)
|
||||
- [DowngradePhp55](#downgradephp55) (4)
|
||||
|
||||
- [DowngradePhp56](#downgradephp56) (3)
|
||||
- [DowngradePhp56](#downgradephp56) (4)
|
||||
|
||||
- [DowngradePhp70](#downgradephp70) (12)
|
||||
|
||||
|
@ -42,14 +42,12 @@
|
|||
|
||||
- [DowngradePhp80](#downgradephp80) (19)
|
||||
|
||||
- [DowngradePhp81](#downgradephp81) (6)
|
||||
- [DowngradePhp81](#downgradephp81) (7)
|
||||
|
||||
- [EarlyReturn](#earlyreturn) (11)
|
||||
|
||||
- [Generics](#generics) (1)
|
||||
|
||||
- [LeagueEvent](#leagueevent) (1)
|
||||
|
||||
- [MockeryToProphecy](#mockerytoprophecy) (2)
|
||||
|
||||
- [MysqlToMysqli](#mysqltomysqli) (4)
|
||||
|
@ -2576,7 +2574,7 @@ Use `class` keyword for class name resolution in string instead of hardcoded str
|
|||
|
||||
```diff
|
||||
-$value = 'App\SomeClass::someMethod()';
|
||||
+$value = \App\SomeClass . '::someMethod()';
|
||||
+$value = \App\SomeClass::class . '::someMethod()';
|
||||
```
|
||||
|
||||
<br>
|
||||
|
@ -3686,6 +3684,29 @@ Remove unused if check to non-empty array before foreach of the array
|
|||
|
||||
<br>
|
||||
|
||||
### RemoveUnusedParamInRequiredAutowireRector
|
||||
|
||||
Remove unused parameter in required autowire method
|
||||
|
||||
- class: [`Rector\DeadCode\Rector\ClassMethod\RemoveUnusedParamInRequiredAutowireRector`](../rules/DeadCode/Rector/ClassMethod/RemoveUnusedParamInRequiredAutowireRector.php)
|
||||
|
||||
```diff
|
||||
use Symfony\Contracts\Service\Attribute\Required;
|
||||
|
||||
final class SomeService
|
||||
{
|
||||
private $visibilityManipulator;
|
||||
|
||||
#[Required]
|
||||
- public function autowireSomeService(VisibilityManipulator $visibilityManipulator)
|
||||
+ public function autowireSomeService()
|
||||
{
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### RemoveUnusedPrivateClassConstantRector
|
||||
|
||||
Remove unused class constants
|
||||
|
@ -4210,6 +4231,19 @@ Downgrade arbitrary expression arguments to `empty()` and `isset()`
|
|||
|
||||
<br>
|
||||
|
||||
### DowngradeBoolvalRector
|
||||
|
||||
Replace `boolval()` by type casting to boolean
|
||||
|
||||
- class: [`Rector\DowngradePhp55\Rector\FuncCall\DowngradeBoolvalRector`](../rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php)
|
||||
|
||||
```diff
|
||||
-$bool = boolval($value);
|
||||
+$bool = (bool) $value;
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### DowngradeClassConstantToStringRector
|
||||
|
||||
Replace <class>::class constant by string class names
|
||||
|
@ -4295,6 +4329,21 @@ Changes ** (exp) operator to pow(val, val2)
|
|||
|
||||
<br>
|
||||
|
||||
### DowngradeUseFunctionRector
|
||||
|
||||
Replace imports of functions and constants
|
||||
|
||||
- class: [`Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector`](../rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php)
|
||||
|
||||
```diff
|
||||
-use function Foo\Bar\baz;
|
||||
-
|
||||
-$var = baz();
|
||||
+$var = \Foo\Bar\baz();
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
## DowngradePhp70
|
||||
|
||||
### DowngradeAnonymousClassRector
|
||||
|
@ -5732,6 +5781,24 @@ change instanceof Object to is_resource
|
|||
|
||||
<br>
|
||||
|
||||
### DowngradePureIntersectionTypeRector
|
||||
|
||||
Remove the intersection type params and returns, add `@param/@return` tags instead
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradePureIntersectionTypeRector`](../rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php)
|
||||
|
||||
```diff
|
||||
-function someFunction(): Foo&Bar
|
||||
+/**
|
||||
+ * @return Foo&Bar
|
||||
+ */
|
||||
+function someFunction()
|
||||
{
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### DowngradeReadonlyPropertyRector
|
||||
|
||||
Remove "readonly" property type, add a "@readonly" tag instead
|
||||
|
@ -6104,36 +6171,6 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
|||
|
||||
<br>
|
||||
|
||||
## LeagueEvent
|
||||
|
||||
### DispatchStringToObjectRector
|
||||
|
||||
Change string events to anonymous class which implement \League\Event\HasEventName
|
||||
|
||||
- class: [`Rector\LeagueEvent\Rector\MethodCall\DispatchStringToObjectRector`](../rules/LeagueEvent/Rector/MethodCall/DispatchStringToObjectRector.php)
|
||||
|
||||
```diff
|
||||
final class SomeClass
|
||||
{
|
||||
/** @var \League\Event\EventDispatcher */
|
||||
private $dispatcher;
|
||||
|
||||
public function run()
|
||||
{
|
||||
- $this->dispatcher->dispatch('my-event');
|
||||
+ $this->dispatcher->dispatch(new class implements \League\Event\HasEventName
|
||||
+ {
|
||||
+ public function eventName(): string
|
||||
+ {
|
||||
+ return 'my-event';
|
||||
+ }
|
||||
+ });
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
## MockeryToProphecy
|
||||
|
||||
### MockeryCloseRemoveRector
|
||||
|
@ -8403,11 +8440,11 @@ Replace property declaration of new state with direct new
|
|||
```diff
|
||||
class SomeClass
|
||||
{
|
||||
private Logger $logger;
|
||||
|
||||
- private Logger $logger;
|
||||
-
|
||||
public function __construct(
|
||||
- ?Logger $logger = null,
|
||||
+ Logger $logger = new NullLogger,
|
||||
+ private Logger $logger = new NullLogger,
|
||||
) {
|
||||
- $this->logger = $logger ?? new NullLogger;
|
||||
}
|
||||
|
|
|
@ -52,10 +52,6 @@ final class SetList implements \Rector\Set\Contract\SetListInterface
|
|||
* @var string
|
||||
*/
|
||||
public const GMAGICK_TO_IMAGICK = __DIR__ . '/../../../config/set/gmagick_to_imagick.php';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const LEAGUE_EVENT_30 = __DIR__ . '/../../../config/set/league-event-30.php';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
|
|
@ -1,141 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\LeagueEvent\Rector\MethodCall;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Arg;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\New_;
|
||||
use PhpParser\Node\Expr\PropertyFetch;
|
||||
use PhpParser\Node\Expr\Variable;
|
||||
use PhpParser\Node\Name\FullyQualified;
|
||||
use PhpParser\Node\Param;
|
||||
use PhpParser\Node\Stmt;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PhpParser\Node\Stmt\PropertyProperty;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
use PHPStan\Type\ObjectType;
|
||||
use PHPStan\Type\StringType;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\MethodName;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
/**
|
||||
* @see \Rector\Tests\LeagueEvent\Rector\MethodCall\DispatchStringToObjectRector\DispatchStringToObjectRectorTest
|
||||
*/
|
||||
final class DispatchStringToObjectRector extends \Rector\Core\Rector\AbstractRector
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private const STMTS = 'stmts';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private const NAME = 'name';
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Change string events to anonymous class which implement \\League\\Event\\HasEventName', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
final class SomeClass
|
||||
{
|
||||
/** @var \League\Event\EventDispatcher */
|
||||
private $dispatcher;
|
||||
|
||||
public function run()
|
||||
{
|
||||
$this->dispatcher->dispatch('my-event');
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
, <<<'CODE_SAMPLE'
|
||||
final class SomeClass
|
||||
{
|
||||
/** @var \League\Event\EventDispatcher */
|
||||
private $dispatcher;
|
||||
|
||||
public function run()
|
||||
{
|
||||
$this->dispatcher->dispatch(new class implements \League\Event\HasEventName
|
||||
{
|
||||
public function eventName(): string
|
||||
{
|
||||
return 'my-event';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
)]);
|
||||
}
|
||||
/**
|
||||
* @return array<class-string<Expr>>
|
||||
*/
|
||||
public function getNodeTypes() : array
|
||||
{
|
||||
return [\PhpParser\Node\Expr\MethodCall::class];
|
||||
}
|
||||
/**
|
||||
* @param MethodCall $node
|
||||
*/
|
||||
public function refactor(\PhpParser\Node $node) : ?\PhpParser\Node
|
||||
{
|
||||
if ($this->shouldSkip($node)) {
|
||||
return null;
|
||||
}
|
||||
return $this->updateNode($node);
|
||||
}
|
||||
private function shouldSkip(\PhpParser\Node\Expr\MethodCall $methodCall) : bool
|
||||
{
|
||||
if (!$this->isNames($methodCall->name, ['dispatch', 'emit'])) {
|
||||
return \true;
|
||||
}
|
||||
if (!$this->nodeTypeResolver->isObjectTypes($methodCall->var, [new \PHPStan\Type\ObjectType('League\\Event\\EventDispatcher'), new \PHPStan\Type\ObjectType('League\\Event\\Emitter')])) {
|
||||
return \true;
|
||||
}
|
||||
if (!isset($methodCall->args[0])) {
|
||||
return \true;
|
||||
}
|
||||
if (!$methodCall->args[0] instanceof \PhpParser\Node\Arg) {
|
||||
return \true;
|
||||
}
|
||||
return !$this->getType($methodCall->args[0]->value) instanceof \PHPStan\Type\StringType;
|
||||
}
|
||||
private function updateNode(\PhpParser\Node\Expr\MethodCall $methodCall) : \PhpParser\Node\Expr\MethodCall
|
||||
{
|
||||
/** @var Arg $firstArg */
|
||||
$firstArg = $methodCall->args[0];
|
||||
$methodCall->args[0] = new \PhpParser\Node\Arg($this->createNewAnonymousEventClass($firstArg->value));
|
||||
return $methodCall;
|
||||
}
|
||||
private function createNewAnonymousEventClass(\PhpParser\Node\Expr $expr) : \PhpParser\Node\Expr\New_
|
||||
{
|
||||
$implements = [new \PhpParser\Node\Name\FullyQualified('League\\Event\\HasEventName')];
|
||||
return new \PhpParser\Node\Expr\New_(new \PhpParser\Node\Stmt\Class_(null, ['implements' => $implements, self::STMTS => $this->createAnonymousEventClassBody()]), [new \PhpParser\Node\Arg($expr)]);
|
||||
}
|
||||
/**
|
||||
* @return Stmt[]
|
||||
*/
|
||||
private function createAnonymousEventClassBody() : array
|
||||
{
|
||||
$return = new \PhpParser\Node\Stmt\Return_(new \PhpParser\Node\Expr\PropertyFetch(new \PhpParser\Node\Expr\Variable('this'), 'name'));
|
||||
return [new \PhpParser\Node\Stmt\Property(\PhpParser\Node\Stmt\Class_::MODIFIER_PRIVATE, [new \PhpParser\Node\Stmt\PropertyProperty(self::NAME)]), new \PhpParser\Node\Stmt\ClassMethod(\Rector\Core\ValueObject\MethodName::CONSTRUCT, ['flags' => \PhpParser\Node\Stmt\Class_::MODIFIER_PUBLIC, 'params' => $this->createConstructParams(), self::STMTS => [new \PhpParser\Node\Stmt\Expression($this->createConstructAssign())]]), new \PhpParser\Node\Stmt\ClassMethod('eventName', ['flags' => \PhpParser\Node\Stmt\Class_::MODIFIER_PUBLIC, 'returnType' => 'string', self::STMTS => [$return]])];
|
||||
}
|
||||
/**
|
||||
* @return Param[]
|
||||
*/
|
||||
private function createConstructParams() : array
|
||||
{
|
||||
return [new \PhpParser\Node\Param(new \PhpParser\Node\Expr\Variable(self::NAME), null, 'string')];
|
||||
}
|
||||
private function createConstructAssign() : \PhpParser\Node\Expr\Assign
|
||||
{
|
||||
$propertyFetch = new \PhpParser\Node\Expr\PropertyFetch(new \PhpParser\Node\Expr\Variable('this'), 'name');
|
||||
return new \PhpParser\Node\Expr\Assign($propertyFetch, new \PhpParser\Node\Expr\Variable(self::NAME));
|
||||
}
|
||||
}
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '12ac17392fa3f08687efd047feabd34cea9b1e62';
|
||||
public const PACKAGE_VERSION = '14f67de7e91d17fe9bd27fa5dfa28a445a1ea94c';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-11-25 11:21:56';
|
||||
public const RELEASE_DATE = '2021-11-25 12:36:16';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211125\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6::getLoader();
|
||||
return ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349::getLoader();
|
||||
|
|
1
vendor/composer/autoload_classmap.php
vendored
1
vendor/composer/autoload_classmap.php
vendored
|
@ -2085,7 +2085,6 @@ return array(
|
|||
'Rector\\Laravel\\ValueObject\\AddArgumentDefaultValue' => $vendorDir . '/rector/rector-laravel/src/ValueObject/AddArgumentDefaultValue.php',
|
||||
'Rector\\Laravel\\ValueObject\\ServiceNameTypeAndVariableName' => $vendorDir . '/rector/rector-laravel/src/ValueObject/ServiceNameTypeAndVariableName.php',
|
||||
'Rector\\Laravel\\ValueObject\\TypeToTimeMethodAndPosition' => $vendorDir . '/rector/rector-laravel/src/ValueObject/TypeToTimeMethodAndPosition.php',
|
||||
'Rector\\LeagueEvent\\Rector\\MethodCall\\DispatchStringToObjectRector' => $baseDir . '/rules/LeagueEvent/Rector/MethodCall/DispatchStringToObjectRector.php',
|
||||
'Rector\\MockeryToProphecy\\Collector\\MockVariableCollector' => $baseDir . '/rules/MockeryToProphecy/Collector/MockVariableCollector.php',
|
||||
'Rector\\MockeryToProphecy\\Rector\\ClassMethod\\MockeryCreateMockToProphizeRector' => $baseDir . '/rules/MockeryToProphecy/Rector/ClassMethod/MockeryCreateMockToProphizeRector.php',
|
||||
'Rector\\MockeryToProphecy\\Rector\\StaticCall\\MockeryCloseRemoveRector' => $baseDir . '/rules/MockeryToProphecy/Rector/StaticCall/MockeryCloseRemoveRector.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 ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6
|
||||
class ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInita378f01759779c21d23eddbf84bc56a6::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit9700ae60b7b5a0e4487aaa0707d29349::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInita378f01759779c21d23eddbf84bc56a6::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit9700ae60b7b5a0e4487aaa0707d29349::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirea378f01759779c21d23eddbf84bc56a6($fileIdentifier, $file);
|
||||
composerRequire9700ae60b7b5a0e4487aaa0707d29349($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequirea378f01759779c21d23eddbf84bc56a6($fileIdentifier, $file)
|
||||
function composerRequire9700ae60b7b5a0e4487aaa0707d29349($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
9
vendor/composer/autoload_static.php
vendored
9
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInita378f01759779c21d23eddbf84bc56a6
|
||||
class ComposerStaticInit9700ae60b7b5a0e4487aaa0707d29349
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
|
@ -2482,7 +2482,6 @@ class ComposerStaticInita378f01759779c21d23eddbf84bc56a6
|
|||
'Rector\\Laravel\\ValueObject\\AddArgumentDefaultValue' => __DIR__ . '/..' . '/rector/rector-laravel/src/ValueObject/AddArgumentDefaultValue.php',
|
||||
'Rector\\Laravel\\ValueObject\\ServiceNameTypeAndVariableName' => __DIR__ . '/..' . '/rector/rector-laravel/src/ValueObject/ServiceNameTypeAndVariableName.php',
|
||||
'Rector\\Laravel\\ValueObject\\TypeToTimeMethodAndPosition' => __DIR__ . '/..' . '/rector/rector-laravel/src/ValueObject/TypeToTimeMethodAndPosition.php',
|
||||
'Rector\\LeagueEvent\\Rector\\MethodCall\\DispatchStringToObjectRector' => __DIR__ . '/../..' . '/rules/LeagueEvent/Rector/MethodCall/DispatchStringToObjectRector.php',
|
||||
'Rector\\MockeryToProphecy\\Collector\\MockVariableCollector' => __DIR__ . '/../..' . '/rules/MockeryToProphecy/Collector/MockVariableCollector.php',
|
||||
'Rector\\MockeryToProphecy\\Rector\\ClassMethod\\MockeryCreateMockToProphizeRector' => __DIR__ . '/../..' . '/rules/MockeryToProphecy/Rector/ClassMethod/MockeryCreateMockToProphizeRector.php',
|
||||
'Rector\\MockeryToProphecy\\Rector\\StaticCall\\MockeryCloseRemoveRector' => __DIR__ . '/../..' . '/rules/MockeryToProphecy/Rector/StaticCall/MockeryCloseRemoveRector.php',
|
||||
|
@ -3767,9 +3766,9 @@ class ComposerStaticInita378f01759779c21d23eddbf84bc56a6
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInita378f01759779c21d23eddbf84bc56a6::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInita378f01759779c21d23eddbf84bc56a6::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInita378f01759779c21d23eddbf84bc56a6::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit9700ae60b7b5a0e4487aaa0707d29349::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit9700ae60b7b5a0e4487aaa0707d29349::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit9700ae60b7b5a0e4487aaa0707d29349::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
|
@ -12,8 +12,8 @@ if (!class_exists('GenerateChangelogCommand', false) && !interface_exists('Gener
|
|||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20211125\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6', false) && !interface_exists('ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6', false) && !trait_exists('ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6', false)) {
|
||||
spl_autoload_call('RectorPrefix20211125\ComposerAutoloaderInita378f01759779c21d23eddbf84bc56a6');
|
||||
if (!class_exists('ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349', false) && !interface_exists('ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349', false) && !trait_exists('ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349', false)) {
|
||||
spl_autoload_call('RectorPrefix20211125\ComposerAutoloaderInit9700ae60b7b5a0e4487aaa0707d29349');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20211125\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -81,9 +81,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20211125\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequirea378f01759779c21d23eddbf84bc56a6')) {
|
||||
function composerRequirea378f01759779c21d23eddbf84bc56a6() {
|
||||
return \RectorPrefix20211125\composerRequirea378f01759779c21d23eddbf84bc56a6(...func_get_args());
|
||||
if (!function_exists('composerRequire9700ae60b7b5a0e4487aaa0707d29349')) {
|
||||
function composerRequire9700ae60b7b5a0e4487aaa0707d29349() {
|
||||
return \RectorPrefix20211125\composerRequire9700ae60b7b5a0e4487aaa0707d29349(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user