mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 00:10:51 +00:00
Updated Rector to commit a30b2ef8d1
a30b2ef8d1
[Renaming] Add generic rename annotation to RenameAnnotationRector (#1341)
This commit is contained in:
parent
b1d14570fa
commit
22732248fc
|
@ -9495,7 +9495,7 @@ Turns defined annotations above properties and methods to their new values.
|
|||
|
||||
```php
|
||||
use Rector\Renaming\Rector\ClassMethod\RenameAnnotationRector;
|
||||
use Rector\Renaming\ValueObject\RenameAnnotation;
|
||||
use Rector\Renaming\ValueObject\RenameAnnotationByType;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
||||
|
||||
|
@ -9504,8 +9504,8 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
|||
|
||||
$services->set(RenameAnnotationRector::class)
|
||||
->call('configure', [[
|
||||
RenameAnnotationRector::RENAMED_ANNOTATIONS_IN_TYPES => ValueObjectInliner::inline([
|
||||
new RenameAnnotation('PHPUnit\Framework\TestCase', 'test', 'scenario'),
|
||||
RenameAnnotationRector::RENAMED_ANNOTATIONS => ValueObjectInliner::inline([
|
||||
new RenameAnnotationByType('PHPUnit\Framework\TestCase', 'test', 'scenario'),
|
||||
]),
|
||||
]]);
|
||||
};
|
||||
|
|
10
rules/Renaming/Contract/RenameAnnotationInterface.php
Normal file
10
rules/Renaming/Contract/RenameAnnotationInterface.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Renaming\Contract;
|
||||
|
||||
interface RenameAnnotationInterface
|
||||
{
|
||||
public function getOldAnnotation() : string;
|
||||
public function getNewAnnotation() : string;
|
||||
}
|
|
@ -6,11 +6,13 @@ namespace Rector\Renaming\Rector\ClassMethod;
|
|||
use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockTagReplacer;
|
||||
use Rector\Renaming\ValueObject\RenameAnnotation;
|
||||
use Rector\Renaming\Contract\RenameAnnotationInterface;
|
||||
use Rector\Renaming\ValueObject\RenameAnnotationByType;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
use RectorPrefix20211129\Webmozart\Assert\Assert;
|
||||
|
@ -22,11 +24,11 @@ final class RenameAnnotationRector extends \Rector\Core\Rector\AbstractRector im
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RENAMED_ANNOTATIONS_IN_TYPES = 'renamed_annotations_in_types';
|
||||
public const RENAMED_ANNOTATIONS = 'renamed_annotations';
|
||||
/**
|
||||
* @var RenameAnnotation[]
|
||||
* @var RenameAnnotationInterface[]
|
||||
*/
|
||||
private $renamedAnnotations = [];
|
||||
private $renameAnnotations = [];
|
||||
/**
|
||||
* @var \Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockTagReplacer
|
||||
*/
|
||||
|
@ -38,7 +40,9 @@ final class RenameAnnotationRector extends \Rector\Core\Rector\AbstractRector im
|
|||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Turns defined annotations above properties and methods to their new values.', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeTest extends PHPUnit\Framework\TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class SomeTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
|
@ -49,7 +53,9 @@ class SomeTest extends PHPUnit\Framework\TestCase
|
|||
}
|
||||
CODE_SAMPLE
|
||||
, <<<'CODE_SAMPLE'
|
||||
class SomeTest extends PHPUnit\Framework\TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class SomeTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @scenario
|
||||
|
@ -59,14 +65,14 @@ class SomeTest extends PHPUnit\Framework\TestCase
|
|||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
, [self::RENAMED_ANNOTATIONS_IN_TYPES => [new \Rector\Renaming\ValueObject\RenameAnnotation('PHPUnit\\Framework\\TestCase', 'test', 'scenario')]])]);
|
||||
, [new \Rector\Renaming\ValueObject\RenameAnnotationByType('PHPUnit\\Framework\\TestCase', 'test', 'scenario')])]);
|
||||
}
|
||||
/**
|
||||
* @return array<class-string<Node>>
|
||||
*/
|
||||
public function getNodeTypes() : array
|
||||
{
|
||||
return [\PhpParser\Node\Stmt\ClassMethod::class, \PhpParser\Node\Stmt\Property::class];
|
||||
return [\PhpParser\Node\Stmt\ClassMethod::class, \PhpParser\Node\Stmt\Property::class, \PhpParser\Node\Stmt\Expression::class];
|
||||
}
|
||||
/**
|
||||
* @param ClassMethod|Property $node
|
||||
|
@ -78,11 +84,11 @@ CODE_SAMPLE
|
|||
return null;
|
||||
}
|
||||
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node);
|
||||
foreach ($this->renamedAnnotations as $renamedAnnotation) {
|
||||
if (!$this->isObjectType($classLike, $renamedAnnotation->getObjectType())) {
|
||||
foreach ($this->renameAnnotations as $renameAnnotation) {
|
||||
if ($renameAnnotation instanceof \Rector\Renaming\ValueObject\RenameAnnotationByType && !$this->isObjectType($classLike, $renameAnnotation->getObjectType())) {
|
||||
continue;
|
||||
}
|
||||
$this->docBlockTagReplacer->replaceTagByAnother($phpDocInfo, $renamedAnnotation->getOldAnnotation(), $renamedAnnotation->getNewAnnotation());
|
||||
$this->docBlockTagReplacer->replaceTagByAnother($phpDocInfo, $renameAnnotation->getOldAnnotation(), $renameAnnotation->getNewAnnotation());
|
||||
}
|
||||
return $node;
|
||||
}
|
||||
|
@ -91,8 +97,9 @@ CODE_SAMPLE
|
|||
*/
|
||||
public function configure(array $configuration) : void
|
||||
{
|
||||
$renamedAnnotationsInTypes = $configuration[self::RENAMED_ANNOTATIONS_IN_TYPES] ?? $configuration;
|
||||
\RectorPrefix20211129\Webmozart\Assert\Assert::allIsAOf($renamedAnnotationsInTypes, \Rector\Renaming\ValueObject\RenameAnnotation::class);
|
||||
$this->renamedAnnotations = $renamedAnnotationsInTypes;
|
||||
$renamedAnnotations = $configuration[self::RENAMED_ANNOTATIONS] ?? $configuration;
|
||||
\RectorPrefix20211129\Webmozart\Assert\Assert::isArray($renamedAnnotations);
|
||||
\RectorPrefix20211129\Webmozart\Assert\Assert::allIsAOf($renamedAnnotations, \Rector\Renaming\Contract\RenameAnnotationInterface::class);
|
||||
$this->renameAnnotations = $renamedAnnotations;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,14 +3,12 @@
|
|||
declare (strict_types=1);
|
||||
namespace Rector\Renaming\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
final class RenameAnnotation
|
||||
use Rector\Renaming\Contract\RenameAnnotationInterface;
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class RenameAnnotation implements \Rector\Renaming\Contract\RenameAnnotationInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $type;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -19,16 +17,10 @@ final class RenameAnnotation
|
|||
* @var string
|
||||
*/
|
||||
private $newAnnotation;
|
||||
public function __construct(string $type, string $oldAnnotation, string $newAnnotation)
|
||||
public function __construct(string $oldAnnotation, string $newAnnotation)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->oldAnnotation = $oldAnnotation;
|
||||
$this->newAnnotation = $newAnnotation;
|
||||
\Rector\Core\Validation\RectorAssert::className($type);
|
||||
}
|
||||
public function getObjectType() : \PHPStan\Type\ObjectType
|
||||
{
|
||||
return new \PHPStan\Type\ObjectType($this->type);
|
||||
}
|
||||
public function getOldAnnotation() : string
|
||||
{
|
||||
|
|
42
rules/Renaming/ValueObject/RenameAnnotationByType.php
Normal file
42
rules/Renaming/ValueObject/RenameAnnotationByType.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Renaming\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
use Rector\Renaming\Contract\RenameAnnotationInterface;
|
||||
final class RenameAnnotationByType implements \Rector\Renaming\Contract\RenameAnnotationInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $type;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $oldAnnotation;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $newAnnotation;
|
||||
public function __construct(string $type, string $oldAnnotation, string $newAnnotation)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->oldAnnotation = $oldAnnotation;
|
||||
$this->newAnnotation = $newAnnotation;
|
||||
\Rector\Core\Validation\RectorAssert::className($type);
|
||||
}
|
||||
public function getObjectType() : \PHPStan\Type\ObjectType
|
||||
{
|
||||
return new \PHPStan\Type\ObjectType($this->type);
|
||||
}
|
||||
public function getOldAnnotation() : string
|
||||
{
|
||||
return $this->oldAnnotation;
|
||||
}
|
||||
public function getNewAnnotation() : string
|
||||
{
|
||||
return $this->newAnnotation;
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@ declare (strict_types=1);
|
|||
namespace Rector\Renaming\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
final class RenameProperty
|
||||
{
|
||||
/**
|
||||
|
@ -23,6 +24,7 @@ final class RenameProperty
|
|||
$this->type = $type;
|
||||
$this->oldProperty = $oldProperty;
|
||||
$this->newProperty = $newProperty;
|
||||
\Rector\Core\Validation\RectorAssert::className($type);
|
||||
}
|
||||
public function getObjectType() : \PHPStan\Type\ObjectType
|
||||
{
|
||||
|
|
|
@ -4,6 +4,7 @@ declare (strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
final class NewArgToMethodCall
|
||||
{
|
||||
/**
|
||||
|
@ -23,6 +24,7 @@ final class NewArgToMethodCall
|
|||
$this->type = $type;
|
||||
$this->value = $value;
|
||||
$this->methodCall = $methodCall;
|
||||
\Rector\Core\Validation\RectorAssert::className($type);
|
||||
}
|
||||
public function getObjectType() : \PHPStan\Type\ObjectType
|
||||
{
|
||||
|
|
|
@ -4,6 +4,7 @@ declare (strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
final class NewToStaticCall
|
||||
{
|
||||
/**
|
||||
|
@ -23,6 +24,8 @@ final class NewToStaticCall
|
|||
$this->type = $type;
|
||||
$this->staticCallClass = $staticCallClass;
|
||||
$this->staticCallMethod = $staticCallMethod;
|
||||
\Rector\Core\Validation\RectorAssert::className($type);
|
||||
\Rector\Core\Validation\RectorAssert::className($staticCallClass);
|
||||
}
|
||||
public function getObjectType() : \PHPStan\Type\ObjectType
|
||||
{
|
||||
|
|
|
@ -4,6 +4,7 @@ declare (strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
final class UnsetAndIssetToMethodCall
|
||||
{
|
||||
/**
|
||||
|
@ -23,6 +24,7 @@ final class UnsetAndIssetToMethodCall
|
|||
$this->type = $type;
|
||||
$this->issetMethodCall = $issetMethodCall;
|
||||
$this->unsedMethodCall = $unsedMethodCall;
|
||||
\Rector\Core\Validation\RectorAssert::className($type);
|
||||
}
|
||||
public function getObjectType() : \PHPStan\Type\ObjectType
|
||||
{
|
||||
|
|
|
@ -4,6 +4,7 @@ declare (strict_types=1);
|
|||
namespace Rector\Transform\ValueObject;
|
||||
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Core\Validation\RectorAssert;
|
||||
final class WrapReturn
|
||||
{
|
||||
/**
|
||||
|
@ -23,6 +24,7 @@ final class WrapReturn
|
|||
$this->type = $type;
|
||||
$this->method = $method;
|
||||
$this->isArrayWrap = $isArrayWrap;
|
||||
\Rector\Core\Validation\RectorAssert::className($type);
|
||||
}
|
||||
public function getObjectType() : \PHPStan\Type\ObjectType
|
||||
{
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '23679ac81a2852ab05d993ae4b158a025c92d784';
|
||||
public const PACKAGE_VERSION = 'a30b2ef8d1013b3a31ec3d7876d9c8b083dcb89b';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-11-29 09:44:16';
|
||||
public const RELEASE_DATE = '2021-11-29 10:07:44';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211129\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 ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf::getLoader();
|
||||
return ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a::getLoader();
|
||||
|
|
2
vendor/composer/autoload_classmap.php
vendored
2
vendor/composer/autoload_classmap.php
vendored
|
@ -2735,6 +2735,7 @@ return array(
|
|||
'Rector\\Removing\\ValueObject\\RemoveFuncCallArg' => $baseDir . '/rules/Removing/ValueObject/RemoveFuncCallArg.php',
|
||||
'Rector\\Renaming\\Collector\\MethodCallRenameCollector' => $baseDir . '/rules/Renaming/Collector/MethodCallRenameCollector.php',
|
||||
'Rector\\Renaming\\Contract\\MethodCallRenameInterface' => $baseDir . '/rules/Renaming/Contract/MethodCallRenameInterface.php',
|
||||
'Rector\\Renaming\\Contract\\RenameAnnotationInterface' => $baseDir . '/rules/Renaming/Contract/RenameAnnotationInterface.php',
|
||||
'Rector\\Renaming\\Contract\\RenameClassConstFetchInterface' => $baseDir . '/rules/Renaming/Contract/RenameClassConstFetchInterface.php',
|
||||
'Rector\\Renaming\\NodeManipulator\\ClassRenamer' => $baseDir . '/rules/Renaming/NodeManipulator/ClassRenamer.php',
|
||||
'Rector\\Renaming\\NodeManipulator\\SwitchManipulator' => $baseDir . '/rules/Renaming/NodeManipulator/SwitchManipulator.php',
|
||||
|
@ -2753,6 +2754,7 @@ return array(
|
|||
'Rector\\Renaming\\ValueObject\\MethodCallRenameWithArrayKey' => $baseDir . '/rules/Renaming/ValueObject/MethodCallRenameWithArrayKey.php',
|
||||
'Rector\\Renaming\\ValueObject\\PseudoNamespaceToNamespace' => $baseDir . '/rules/Renaming/ValueObject/PseudoNamespaceToNamespace.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameAnnotation' => $baseDir . '/rules/Renaming/ValueObject/RenameAnnotation.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameAnnotationByType' => $baseDir . '/rules/Renaming/ValueObject/RenameAnnotationByType.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameClassAndConstFetch' => $baseDir . '/rules/Renaming/ValueObject/RenameClassAndConstFetch.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameClassConstFetch' => $baseDir . '/rules/Renaming/ValueObject/RenameClassConstFetch.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameProperty' => $baseDir . '/rules/Renaming/ValueObject/RenameProperty.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 ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf
|
||||
class ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a', '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\ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit25b11574a2a1e5aadc7bc926a638a05a::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit25b11574a2a1e5aadc7bc926a638a05a::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire540d91814d945bddf2434b3b27e6cdcf($fileIdentifier, $file);
|
||||
composerRequire25b11574a2a1e5aadc7bc926a638a05a($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire540d91814d945bddf2434b3b27e6cdcf($fileIdentifier, $file)
|
||||
function composerRequire25b11574a2a1e5aadc7bc926a638a05a($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
10
vendor/composer/autoload_static.php
vendored
10
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf
|
||||
class ComposerStaticInit25b11574a2a1e5aadc7bc926a638a05a
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
|
@ -3132,6 +3132,7 @@ class ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf
|
|||
'Rector\\Removing\\ValueObject\\RemoveFuncCallArg' => __DIR__ . '/../..' . '/rules/Removing/ValueObject/RemoveFuncCallArg.php',
|
||||
'Rector\\Renaming\\Collector\\MethodCallRenameCollector' => __DIR__ . '/../..' . '/rules/Renaming/Collector/MethodCallRenameCollector.php',
|
||||
'Rector\\Renaming\\Contract\\MethodCallRenameInterface' => __DIR__ . '/../..' . '/rules/Renaming/Contract/MethodCallRenameInterface.php',
|
||||
'Rector\\Renaming\\Contract\\RenameAnnotationInterface' => __DIR__ . '/../..' . '/rules/Renaming/Contract/RenameAnnotationInterface.php',
|
||||
'Rector\\Renaming\\Contract\\RenameClassConstFetchInterface' => __DIR__ . '/../..' . '/rules/Renaming/Contract/RenameClassConstFetchInterface.php',
|
||||
'Rector\\Renaming\\NodeManipulator\\ClassRenamer' => __DIR__ . '/../..' . '/rules/Renaming/NodeManipulator/ClassRenamer.php',
|
||||
'Rector\\Renaming\\NodeManipulator\\SwitchManipulator' => __DIR__ . '/../..' . '/rules/Renaming/NodeManipulator/SwitchManipulator.php',
|
||||
|
@ -3150,6 +3151,7 @@ class ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf
|
|||
'Rector\\Renaming\\ValueObject\\MethodCallRenameWithArrayKey' => __DIR__ . '/../..' . '/rules/Renaming/ValueObject/MethodCallRenameWithArrayKey.php',
|
||||
'Rector\\Renaming\\ValueObject\\PseudoNamespaceToNamespace' => __DIR__ . '/../..' . '/rules/Renaming/ValueObject/PseudoNamespaceToNamespace.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameAnnotation' => __DIR__ . '/../..' . '/rules/Renaming/ValueObject/RenameAnnotation.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameAnnotationByType' => __DIR__ . '/../..' . '/rules/Renaming/ValueObject/RenameAnnotationByType.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameClassAndConstFetch' => __DIR__ . '/../..' . '/rules/Renaming/ValueObject/RenameClassAndConstFetch.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameClassConstFetch' => __DIR__ . '/../..' . '/rules/Renaming/ValueObject/RenameClassConstFetch.php',
|
||||
'Rector\\Renaming\\ValueObject\\RenameProperty' => __DIR__ . '/../..' . '/rules/Renaming/ValueObject/RenameProperty.php',
|
||||
|
@ -3772,9 +3774,9 @@ class ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit540d91814d945bddf2434b3b27e6cdcf::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit25b11574a2a1e5aadc7bc926a638a05a::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit25b11574a2a1e5aadc7bc926a638a05a::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit25b11574a2a1e5aadc7bc926a638a05a::$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('RectorPrefix20211129\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf', false) && !interface_exists('ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf', false) && !trait_exists('ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf', false)) {
|
||||
spl_autoload_call('RectorPrefix20211129\ComposerAutoloaderInit540d91814d945bddf2434b3b27e6cdcf');
|
||||
if (!class_exists('ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a', false) && !interface_exists('ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a', false) && !trait_exists('ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a', false)) {
|
||||
spl_autoload_call('RectorPrefix20211129\ComposerAutoloaderInit25b11574a2a1e5aadc7bc926a638a05a');
|
||||
}
|
||||
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('RectorPrefix20211129\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -81,9 +81,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20211129\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire540d91814d945bddf2434b3b27e6cdcf')) {
|
||||
function composerRequire540d91814d945bddf2434b3b27e6cdcf() {
|
||||
return \RectorPrefix20211129\composerRequire540d91814d945bddf2434b3b27e6cdcf(...func_get_args());
|
||||
if (!function_exists('composerRequire25b11574a2a1e5aadc7bc926a638a05a')) {
|
||||
function composerRequire25b11574a2a1e5aadc7bc926a638a05a() {
|
||||
return \RectorPrefix20211129\composerRequire25b11574a2a1e5aadc7bc926a638a05a(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user