mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-12 14:12:23 +00:00
Updated Rector to commit b422a9d747
b422a9d747
[Core] Replace deprecated ShellCode:: with Symfony Command:: for status (#737)
This commit is contained in:
parent
f791d9d767
commit
f3f75a2919
|
@ -28,7 +28,7 @@ final class PhpDocNodeMapper
|
|||
*/
|
||||
private $cloningPhpDocNodeVisitor;
|
||||
/**
|
||||
* @var \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $phpDocNodeVisitors;
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,7 @@ final class PropertyType
|
|||
*/
|
||||
private $varType;
|
||||
/**
|
||||
* @var \PhpParser\Node\Name|\PhpParser\Node\NullableType|PhpParserUnionType|null
|
||||
* @var \PhpParser\Node|null
|
||||
*/
|
||||
private $propertyTypeNode;
|
||||
/**
|
||||
|
|
|
@ -25,7 +25,7 @@ final class FileFormatter
|
|||
*/
|
||||
private $parameterProvider;
|
||||
/**
|
||||
* @var \Rector\FileFormatter\Contract\Formatter\FileFormatterInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $fileFormatters = [];
|
||||
/**
|
||||
|
|
|
@ -13,7 +13,7 @@ final class AddedFileWithNodes implements \Rector\FileSystemRector\Contract\Adde
|
|||
*/
|
||||
private $filePath;
|
||||
/**
|
||||
* @var \PhpParser\Node[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $nodes;
|
||||
/**
|
||||
|
|
|
@ -38,7 +38,7 @@ final class NodeNameResolver
|
|||
*/
|
||||
private $callAnalyzer;
|
||||
/**
|
||||
* @var \Rector\NodeNameResolver\Contract\NodeNameResolverInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $nodeNameResolvers = [];
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,7 @@ use Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind;
|
|||
final class PHPStanStaticTypeMapper
|
||||
{
|
||||
/**
|
||||
* @var \Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $typeMappers;
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,7 @@ use Rector\ReadWrite\Contract\ReadNodeAnalyzerInterface;
|
|||
final class ReadExprAnalyzer
|
||||
{
|
||||
/**
|
||||
* @var \Rector\ReadWrite\Contract\ReadNodeAnalyzerInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $readNodeAnalyzers;
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,7 @@ use Rector\StaticTypeMapper\Contract\PhpParser\PhpParserNodeMapperInterface;
|
|||
final class PhpParserNodeMapper
|
||||
{
|
||||
/**
|
||||
* @var \Rector\StaticTypeMapper\Contract\PhpParser\PhpParserNodeMapperInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $phpParserNodeMappers;
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,7 @@ use Rector\StaticTypeMapper\Contract\PhpDocParser\PhpDocTypeMapperInterface;
|
|||
final class PhpDocTypeMapper
|
||||
{
|
||||
/**
|
||||
* @var \Rector\StaticTypeMapper\Contract\PhpDocParser\PhpDocTypeMapperInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $phpDocTypeMappers;
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPStan\Type\Type;
|
|||
final class ShortenedObjectType extends \PHPStan\Type\ObjectType
|
||||
{
|
||||
/**
|
||||
* @var class-string
|
||||
* @var string
|
||||
*/
|
||||
private $fullyQualifiedName;
|
||||
/**
|
||||
|
|
|
@ -22,9 +22,6 @@ final class ArgumentAdder
|
|||
* @var string|null
|
||||
*/
|
||||
private $argumentName;
|
||||
/**
|
||||
* @var mixed|null
|
||||
*/
|
||||
private $argumentDefaultValue = null;
|
||||
/**
|
||||
* @var string|null
|
||||
|
|
|
@ -10,7 +10,7 @@ final class SwapFuncCallArguments
|
|||
*/
|
||||
private $function;
|
||||
/**
|
||||
* @var int[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $order;
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,7 @@ use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
|
|||
final class ClassNameImportSkipper
|
||||
{
|
||||
/**
|
||||
* @var \Rector\CodingStyle\Contract\ClassNameImport\ClassNameImportSkipVoterInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $classNameImportSkipVoters;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class ConcatStringAndPlaceholders
|
|||
*/
|
||||
private $content;
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $placeholderNodes;
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,7 @@ use PhpParser\Node\Name;
|
|||
final class NameAndParent
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Name|\PhpParser\Node\Identifier
|
||||
* @var \PhpParser\Node
|
||||
*/
|
||||
private $nameNode;
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ final class ComposerFileProcessor implements \Rector\Core\Contract\Processor\Fil
|
|||
*/
|
||||
private $composerJsonPrinter;
|
||||
/**
|
||||
* @var \Rector\Composer\Contract\Rector\ComposerRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $composerRectors;
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,7 @@ final class AssignAndRootExprAndNodesToAdd
|
|||
*/
|
||||
private $assignAndRootExpr;
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr[]|\PhpParser\Node\Stmt\Return_[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $nodesToAdd;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class FluentMethodCalls
|
|||
*/
|
||||
private $rootMethodCall;
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr\MethodCall[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $fluentMethodCalls;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class NormalToFluent
|
|||
*/
|
||||
private $class;
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $methodNames;
|
||||
/**
|
||||
|
|
|
@ -10,8 +10,6 @@ use PhpParser\Node\Stmt\Class_;
|
|||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\Type\MixedType;
|
||||
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
|
||||
use Rector\Core\NodeManipulator\ClassInsertManipulator;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\MethodName;
|
||||
|
@ -29,14 +27,9 @@ final class DowngradePropertyPromotionRector extends \Rector\Core\Rector\Abstrac
|
|||
* @var \Rector\Core\NodeManipulator\ClassInsertManipulator
|
||||
*/
|
||||
private $classInsertManipulator;
|
||||
/**
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger
|
||||
*/
|
||||
private $phpDocTypeChanger;
|
||||
public function __construct(\Rector\Core\NodeManipulator\ClassInsertManipulator $classInsertManipulator, \Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger $phpDocTypeChanger)
|
||||
public function __construct(\Rector\Core\NodeManipulator\ClassInsertManipulator $classInsertManipulator)
|
||||
{
|
||||
$this->classInsertManipulator = $classInsertManipulator;
|
||||
$this->phpDocTypeChanger = $phpDocTypeChanger;
|
||||
}
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
|
@ -173,7 +166,6 @@ CODE_SAMPLE
|
|||
$property = $this->nodeFactory->createProperty($name);
|
||||
$property->flags = $param->flags;
|
||||
$property->type = $param->type;
|
||||
$this->decoratePropertyWithParamDocInfo($param, $property);
|
||||
if ($param->default !== null) {
|
||||
$property->props[0]->default = $param->default;
|
||||
}
|
||||
|
@ -181,23 +173,4 @@ CODE_SAMPLE
|
|||
}
|
||||
return $properties;
|
||||
}
|
||||
private function decoratePropertyWithParamDocInfo(\PhpParser\Node\Param $param, \PhpParser\Node\Stmt\Property $property) : void
|
||||
{
|
||||
$constructor = $param->getAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::METHOD_NODE);
|
||||
$phpDocInfo = $this->phpDocInfoFactory->createFromNode($constructor);
|
||||
if ($phpDocInfo === null) {
|
||||
return;
|
||||
}
|
||||
$name = $this->getName($param->var);
|
||||
if ($name === null) {
|
||||
return;
|
||||
}
|
||||
$type = $phpDocInfo->getParamType($name);
|
||||
// MixedType likely means there was no param type defined
|
||||
if ($type instanceof \PHPStan\Type\MixedType) {
|
||||
return;
|
||||
}
|
||||
$propertyDocInfo = $this->phpDocInfoFactory->createEmpty($property);
|
||||
$this->phpDocTypeChanger->changeVarType($propertyDocInfo, $type);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,11 +6,11 @@ namespace Rector\DowngradePhp80\ValueObject;
|
|||
final class DowngradeAttributeToAnnotation
|
||||
{
|
||||
/**
|
||||
* @var class-string
|
||||
* @var string
|
||||
*/
|
||||
private $attributeClass;
|
||||
/**
|
||||
* @var class-string|string|null
|
||||
* @var string|null
|
||||
*/
|
||||
private $tag;
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,7 @@ use Rector\Naming\Contract\RenameValueObjectInterface;
|
|||
final class PropertyRenameGuard
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Naming\Contract\Guard\ConflictingNameGuardInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $conflictingNameGuards;
|
||||
/**
|
||||
|
|
|
@ -6,11 +6,11 @@ namespace Rector\Order\ValueObject;
|
|||
final class SortedClassMethodsAndOriginalClassMethods
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $sortedClassMethods;
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $originalClassMethods;
|
||||
/**
|
||||
|
|
|
@ -14,11 +14,11 @@ use PhpParser\Node\Expr\Variable;
|
|||
final class VariableAssignPair
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr\Variable|\PhpParser\Node\Expr\ArrayDimFetch|\PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\StaticPropertyFetch
|
||||
* @var \PhpParser\Node
|
||||
*/
|
||||
private $variable;
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr\Assign|\PhpParser\Node\Expr\AssignOp|\PhpParser\Node\Expr\AssignRef
|
||||
* @var \PhpParser\Node
|
||||
*/
|
||||
private $assign;
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
|||
final class StrStartsWithRector extends \Rector\Core\Rector\AbstractRector
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Php80\Contract\StrStartWithMatchAndRefactorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $strStartWithMatchAndRefactors;
|
||||
/**
|
||||
|
|
|
@ -6,11 +6,11 @@ namespace Rector\Php80\ValueObject;
|
|||
final class AnnotationToAttribute
|
||||
{
|
||||
/**
|
||||
* @var class-string|string
|
||||
* @var string
|
||||
*/
|
||||
private $tag;
|
||||
/**
|
||||
* @var class-string
|
||||
* @var string|null
|
||||
*/
|
||||
private $attributeClass;
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,7 @@ use Rector\Php80\Enum\MatchKind;
|
|||
final class CondAndExpr
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $condExprs;
|
||||
/**
|
||||
|
|
|
@ -19,7 +19,7 @@ final class ReplaceStringWithClassConstant
|
|||
*/
|
||||
private $argPosition;
|
||||
/**
|
||||
* @var class-string
|
||||
* @var string
|
||||
*/
|
||||
private $classWithConstants;
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ final class RemoveFuncCall
|
|||
*/
|
||||
private $funcCall;
|
||||
/**
|
||||
* @var array<int, mixed[]>
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $argumentPositionAndValues = [];
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ final class PseudoNamespaceToNamespace
|
|||
*/
|
||||
private $namespacePrefix;
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $excludedClasses = [];
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,7 @@ final class StaticCallToFuncCallRector extends \Rector\Core\Rector\AbstractRecto
|
|||
*/
|
||||
public const STATIC_CALLS_TO_FUNCTIONS = 'static_calls_to_functions';
|
||||
/**
|
||||
* @var \Rector\Transform\ValueObject\StaticCallToFuncCall[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $staticCallsToFunctions = [];
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,7 @@ use PHPStan\Type\ObjectType;
|
|||
final class GetAndSetToMethodCall
|
||||
{
|
||||
/**
|
||||
* @var class-string
|
||||
* @var string
|
||||
*/
|
||||
private $classType;
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Rector\Transform\ValueObject;
|
|||
final class MethodCallToMethodCall
|
||||
{
|
||||
/**
|
||||
* @var class-string
|
||||
* @var string
|
||||
*/
|
||||
private $oldType;
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ final class MethodCallToMethodCall
|
|||
*/
|
||||
private $oldMethod;
|
||||
/**
|
||||
* @var class-string
|
||||
* @var string
|
||||
*/
|
||||
private $newType;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class ParentClassToTraits
|
|||
*/
|
||||
private $parentType;
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $traitNames;
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,7 @@ final class ParamTypeInferer
|
|||
*/
|
||||
private $genericClassStringTypeNormalizer;
|
||||
/**
|
||||
* @var \Rector\TypeDeclaration\Contract\TypeInferer\ParamTypeInfererInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $paramTypeInferers;
|
||||
/**
|
||||
|
|
|
@ -34,7 +34,7 @@ final class ApplicationFileProcessor
|
|||
*/
|
||||
private $symfonyStyle;
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Processor\FileProcessorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $fileProcessors = [];
|
||||
/**
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '138aa5ea681111d2da5b712580b56eafc35863ba';
|
||||
public const PACKAGE_VERSION = 'b422a9d7470745642728b91c12f7fb4782df9331';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-08-22 22:52:44';
|
||||
public const RELEASE_DATE = '2021-08-22 22:52:09';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210822\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
|
|
@ -30,7 +30,7 @@ final class InitCommand extends \RectorPrefix20210822\Symfony\Component\Console\
|
|||
*/
|
||||
private $symfonyStyle;
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Template\TemplateResolverInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $templateResolvers;
|
||||
/**
|
||||
|
|
|
@ -79,7 +79,7 @@ final class ProcessCommand extends \RectorPrefix20210822\Symfony\Component\Conso
|
|||
*/
|
||||
private $missedRectorDueVersionChecker;
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Rector\RectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $rectors;
|
||||
/**
|
||||
|
|
|
@ -25,7 +25,7 @@ final class ShowCommand extends \RectorPrefix20210822\Symfony\Component\Console\
|
|||
*/
|
||||
private $showOutputFormatterCollector;
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Rector\RectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $rectors;
|
||||
/**
|
||||
|
|
|
@ -7,15 +7,6 @@ use Rector\Caching\UnchangedFilesFilter;
|
|||
use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
final class PhpFilesFinder
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private const NON_PHP_FILE_EXTENSIONS = [
|
||||
// Laravel
|
||||
'.blade.php',
|
||||
// Smarty
|
||||
'.tpl',
|
||||
];
|
||||
/**
|
||||
* @var \Rector\Core\FileSystem\FilesFinder
|
||||
*/
|
||||
|
@ -36,16 +27,10 @@ final class PhpFilesFinder
|
|||
public function findInPaths(array $paths) : array
|
||||
{
|
||||
$phpFileInfos = $this->filesFinder->findInDirectoriesAndFiles($paths);
|
||||
// filter out non-PHP files
|
||||
foreach ($phpFileInfos as $key => $phpFileInfo) {
|
||||
$pathName = $phpFileInfo->getPathname();
|
||||
foreach (self::NON_PHP_FILE_EXTENSIONS as $nonPHPFileExtension) {
|
||||
if (\substr_compare($pathName, $nonPHPFileExtension, -\strlen($nonPHPFileExtension)) === 0) {
|
||||
unset($phpFileInfos[$key]);
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
// filter out non-PHP php files, e.g. blade templates in Laravel
|
||||
$phpFileInfos = \array_filter($phpFileInfos, function (\Symplify\SmartFileSystem\SmartFileInfo $smartFileInfo) : bool {
|
||||
return \substr_compare($smartFileInfo->getPathname(), '.blade.php', -\strlen('.blade.php')) !== 0;
|
||||
});
|
||||
return $this->unchangedFilesFilter->filterAndJoinWithDependentFileInfos($phpFileInfos);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ final class RectorKernel extends \RectorPrefix20210822\Symfony\Component\HttpKer
|
|||
*/
|
||||
private $configureCallValuesCollector;
|
||||
/**
|
||||
* @var \Symplify\SmartFileSystem\SmartFileInfo[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $configFileInfos;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ use Rector\Core\ValueObject\StaticNonPhpFileSuffixes;
|
|||
final class NonPhpFileProcessor implements \Rector\Core\Contract\Processor\FileProcessorInterface
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Rector\NonPhpRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $nonPhpRectors;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ use Rector\Core\Contract\PHPStan\Reflection\TypeToCallReflectionResolver\TypeToC
|
|||
final class TypeToCallReflectionResolverRegistry
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Core\Contract\PHPStan\Reflection\TypeToCallReflectionResolver\TypeToCallReflectionResolverInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $resolvers;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ use PhpParser\NodeAbstract;
|
|||
final class FileWithoutNamespace extends \PhpParser\NodeAbstract
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Stmt[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
public $stmts;
|
||||
/**
|
||||
|
|
|
@ -17,7 +17,7 @@ final class RectorNodeTraverser extends \PhpParser\NodeTraverser
|
|||
*/
|
||||
private $areNodeVisitorsPrepared = \false;
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Rector\PhpRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $phpRectors;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ use RectorPrefix20210822\Symfony\Component\Console\Style\SymfonyStyle;
|
|||
final class MissingRectorRulesReporter
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Rector\RectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $rectors;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class BootstrapConfigs
|
|||
*/
|
||||
private $mainConfigFileInfo;
|
||||
/**
|
||||
* @var \Symplify\SmartFileSystem\SmartFileInfo[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $setConfigFileInfos;
|
||||
/**
|
||||
|
|
|
@ -27,11 +27,11 @@ final class Configuration
|
|||
*/
|
||||
private $outputFormat = \Rector\ChangesReporting\Output\ConsoleOutputFormatter::NAME;
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $fileExtensions = ['php'];
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $paths = [];
|
||||
/**
|
||||
|
|
|
@ -21,7 +21,7 @@ final class FileDiff
|
|||
*/
|
||||
private $diffConsoleFormatted;
|
||||
/**
|
||||
* @var \Rector\ChangesReporting\ValueObject\RectorWithLineChange[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $rectorWithLineChanges = [];
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,7 @@ final class SprintfStringAndArgs
|
|||
*/
|
||||
private $string;
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $arrayItems;
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ final class FileFactory
|
|||
*/
|
||||
private $changedFilesDetector;
|
||||
/**
|
||||
* @var \Rector\Core\Contract\Processor\FileProcessorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $fileProcessors;
|
||||
/**
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838::getLoader();
|
||||
return ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee::getLoader();
|
||||
|
|
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 ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838
|
||||
class ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee', '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\ComposerStaticInit27c429e3a45b065c36f0445ab5b93838::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInita6442f7eb59e6d6d9f123557b03848ee::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit27c429e3a45b065c36f0445ab5b93838::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInita6442f7eb59e6d6d9f123557b03848ee::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire27c429e3a45b065c36f0445ab5b93838($fileIdentifier, $file);
|
||||
composerRequirea6442f7eb59e6d6d9f123557b03848ee($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire27c429e3a45b065c36f0445ab5b93838($fileIdentifier, $file)
|
||||
function composerRequirea6442f7eb59e6d6d9f123557b03848ee($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit27c429e3a45b065c36f0445ab5b93838
|
||||
class ComposerStaticInita6442f7eb59e6d6d9f123557b03848ee
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
|
@ -3853,9 +3853,9 @@ class ComposerStaticInit27c429e3a45b065c36f0445ab5b93838
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit27c429e3a45b065c36f0445ab5b93838::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit27c429e3a45b065c36f0445ab5b93838::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit27c429e3a45b065c36f0445ab5b93838::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInita6442f7eb59e6d6d9f123557b03848ee::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInita6442f7eb59e6d6d9f123557b03848ee::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInita6442f7eb59e6d6d9f123557b03848ee::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -8,11 +8,11 @@ use PhpParser\Node\Expr\ArrayItem;
|
|||
final class ArrayItemsAndFluentClass
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr\ArrayItem[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $arrayItems;
|
||||
/**
|
||||
* @var array<string, \PhpParser\Node\Expr>
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $fluentCalls;
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ final class ArrayToFluentCall
|
|||
*/
|
||||
private $class;
|
||||
/**
|
||||
* @var array<string, string>
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $arrayKeysToFluentCalls;
|
||||
/**
|
||||
|
|
|
@ -6,11 +6,11 @@ namespace Rector\Doctrine\ValueObject;
|
|||
final class OptionalAndRequiredParamNames
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $optionalParamNames;
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $requiredParamNames;
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,7 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
|||
final class PropertyNamesAndPhpDocInfos
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Doctrine\ValueObject\PropertyNameAndPhpDocInfo[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $propertyNameAndPhpDocInfos;
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ use Rector\Nette\Contract\Rector\LatteRectorInterface;
|
|||
final class LatteFileProcessor implements \Rector\Core\Contract\Processor\FileProcessorInterface
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Nette\Contract\Rector\LatteRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $latteRectors;
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ use Rector\Nette\Contract\Rector\NeonRectorInterface;
|
|||
final class NeonFileProcessor implements \Rector\Core\Contract\Processor\FileProcessorInterface
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Nette\Contract\Rector\NeonRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $neonRectors;
|
||||
/**
|
||||
|
|
|
@ -34,11 +34,11 @@ final class EventAndListenerTree
|
|||
*/
|
||||
private $eventDispatcherDispatchMethodCall;
|
||||
/**
|
||||
* @var array<class-string, \PhpParser\Node\Stmt\ClassMethod[]>
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $listenerMethodsByEventSubscriberClass;
|
||||
/**
|
||||
* @var \Rector\Nette\Kdyby\ValueObject\GetterMethodBlueprint[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $getterMethodBlueprints;
|
||||
/**
|
||||
|
|
|
@ -19,9 +19,6 @@ final class VariableWithType
|
|||
* @var \PHPStan\Type\Type
|
||||
*/
|
||||
private $type;
|
||||
/**
|
||||
* @var \PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\NullableType|\PhpParser\Node\UnionType|null
|
||||
*/
|
||||
private $phpParserTypeNode;
|
||||
/**
|
||||
* @param Identifier|Name|NullableType|UnionType|null $phpParserTypeNode
|
||||
|
|
|
@ -8,11 +8,11 @@ use Rector\Nette\Contract\ValueObject\ParameterArrayInterface;
|
|||
final class TemplateParametersAssigns implements \Rector\Nette\Contract\ValueObject\ParameterArrayInterface
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Nette\ValueObject\AlwaysTemplateParameterAssign[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $templateParameterAssigns;
|
||||
/**
|
||||
* @var \Rector\Nette\ValueObject\ConditionalTemplateParameterAssign[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $conditionalTemplateParameterAssign;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class DataProviderClassMethodRecipe
|
|||
*/
|
||||
private $methodName;
|
||||
/**
|
||||
* @var \PhpParser\Node\Arg[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $args;
|
||||
/**
|
||||
|
|
|
@ -11,11 +11,11 @@ use PhpParser\Node\Stmt\Expression;
|
|||
final class ExpectationMock
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr\Variable|\PhpParser\Node\Expr\PropertyFetch
|
||||
* @var \PhpParser\Node\Expr
|
||||
*/
|
||||
private $expectationVariable;
|
||||
/**
|
||||
* @var \PhpParser\Node\Arg[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $methodArguments;
|
||||
/**
|
||||
|
@ -27,7 +27,7 @@ final class ExpectationMock
|
|||
*/
|
||||
private $expr;
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr[]|null[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $withArguments;
|
||||
/**
|
||||
|
|
|
@ -27,7 +27,7 @@ final class ServiceDefinition
|
|||
*/
|
||||
private $alias;
|
||||
/**
|
||||
* @var \Rector\Symfony\Contract\Tag\TagInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $tags;
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,7 @@ use Rector\Symfony\ValueObject\ServiceDefinition;
|
|||
final class ServiceMap
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Symfony\ValueObject\ServiceDefinition[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $services;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class Tag implements \Rector\Symfony\Contract\Tag\TagInterface
|
|||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var array<string, mixed>
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $data = [];
|
||||
/**
|
||||
|
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
|
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
|||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20210822\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838', false) && !interface_exists('ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838', false) && !trait_exists('ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838', false)) {
|
||||
spl_autoload_call('RectorPrefix20210822\ComposerAutoloaderInit27c429e3a45b065c36f0445ab5b93838');
|
||||
if (!class_exists('ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee', false) && !interface_exists('ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee', false) && !trait_exists('ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee', false)) {
|
||||
spl_autoload_call('RectorPrefix20210822\ComposerAutoloaderInita6442f7eb59e6d6d9f123557b03848ee');
|
||||
}
|
||||
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('RectorPrefix20210822\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -3308,9 +3308,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20210822\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire27c429e3a45b065c36f0445ab5b93838')) {
|
||||
function composerRequire27c429e3a45b065c36f0445ab5b93838() {
|
||||
return \RectorPrefix20210822\composerRequire27c429e3a45b065c36f0445ab5b93838(...func_get_args());
|
||||
if (!function_exists('composerRequirea6442f7eb59e6d6d9f123557b03848ee')) {
|
||||
function composerRequirea6442f7eb59e6d6d9f123557b03848ee() {
|
||||
return \RectorPrefix20210822\composerRequirea6442f7eb59e6d6d9f123557b03848ee(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
|
|
@ -16,7 +16,7 @@ use UnexpectedValueException;
|
|||
final class FlexFormsProcessor implements \Rector\Core\Contract\Processor\FileProcessorInterface
|
||||
{
|
||||
/**
|
||||
* @var \Ssch\TYPO3Rector\Contract\FileProcessor\FlexForms\Rector\FlexFormRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $flexFormRectors;
|
||||
/**
|
||||
|
|
|
@ -13,7 +13,7 @@ use Ssch\TYPO3Rector\Contract\FileProcessor\Fluid\Rector\FluidRectorInterface;
|
|||
final class FluidFileProcessor implements \Rector\Core\Contract\Processor\FileProcessorInterface
|
||||
{
|
||||
/**
|
||||
* @var \Ssch\TYPO3Rector\Contract\FileProcessor\Fluid\Rector\FluidRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $fluidRectors;
|
||||
/**
|
||||
|
|
|
@ -26,7 +26,7 @@ final class IconsFileProcessor implements \Rector\Core\Contract\Processor\FilePr
|
|||
*/
|
||||
private $smartFileSystem;
|
||||
/**
|
||||
* @var \Ssch\TYPO3Rector\Contract\FileProcessor\Resources\IconRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $iconsRector;
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,7 @@ final class OldConditionToExpressionLanguageTypoScriptRector extends \Ssch\TYPO3
|
|||
*/
|
||||
private $currentFileProvider;
|
||||
/**
|
||||
* @var \Ssch\TYPO3Rector\Contract\FileProcessor\TypoScript\Conditions\TyposcriptConditionMatcher[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $conditionMatchers = [];
|
||||
/**
|
||||
|
|
|
@ -66,7 +66,7 @@ final class TypoScriptFileProcessor implements \Ssch\TYPO3Rector\Contract\Proces
|
|||
*/
|
||||
private $rectorOutputStyle;
|
||||
/**
|
||||
* @var \Ssch\TYPO3Rector\Contract\FileProcessor\TypoScript\TypoScriptRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $typoScriptRectors = [];
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,7 @@ final class FormYamlFileProcessor implements \Rector\Core\Contract\Processor\Fil
|
|||
*/
|
||||
private $currentFileProvider;
|
||||
/**
|
||||
* @var \Ssch\TYPO3Rector\Contract\FileProcessor\Yaml\Form\FormYamlRectorInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $transformer;
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ final class DatabaseConnectionToDbalRector extends \Rector\Core\Rector\AbstractR
|
|||
*/
|
||||
private $typo3NodeResolver;
|
||||
/**
|
||||
* @var \Ssch\TYPO3Rector\Contract\Helper\Database\Refactorings\DatabaseConnectionToDbalRefactoring[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $databaseConnectionRefactorings;
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,7 @@ final class SimpleNameResolver
|
|||
*/
|
||||
private const ANONYMOUS_CLASS_REGEX = '#^AnonymousClass[\\w+]#';
|
||||
/**
|
||||
* @var \Symplify\Astral\Contract\NodeNameResolverInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $nodeNameResolvers;
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,7 @@ use RectorPrefix20210822\Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||
final class AutowireInterfacesCompilerPass implements \RectorPrefix20210822\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $typesToAutowire;
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,7 @@ final class Skipper
|
|||
*/
|
||||
private const FILE_ELEMENT = 'file_elements';
|
||||
/**
|
||||
* @var \Symplify\Skipper\Contract\SkipVoterInterface[]
|
||||
* @var mixed[]
|
||||
*/
|
||||
private $skipVoters;
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user