mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit fc10fce13dcf9767f54e4202b509020fed338645
fc10fce13d
[Rectify] [Php81] Enable Rectify on Readonly Property only (#1384)
This commit is contained in:
parent
4a5f1c82b3
commit
c726969380
@ -10,6 +10,7 @@ use RectorPrefix20211204\Symplify\Astral\NodeTraverser\SimpleCallableNodeTravers
|
||||
final class CommentsMerger
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
*/
|
||||
private $simpleCallableNodeTraverser;
|
||||
|
@ -43,6 +43,7 @@ final class PhpDocInfo
|
||||
*/
|
||||
private $isSingleLine = \false;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
*/
|
||||
private $originalPhpDocNode;
|
||||
@ -51,34 +52,42 @@ final class PhpDocInfo
|
||||
*/
|
||||
private $hasChanged = \false;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
*/
|
||||
private $phpDocNode;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator
|
||||
*/
|
||||
private $betterTokenIterator;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PhpParser\Node
|
||||
*/
|
||||
private $node;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
||||
*/
|
||||
private $annotationNaming;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||
*/
|
||||
private $currentNodeProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
||||
*/
|
||||
private $rectorChangeCollector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeFinder\PhpDocNodeByTypeFinder
|
||||
*/
|
||||
private $phpDocNodeByTypeFinder;
|
||||
|
@ -25,34 +25,42 @@ final class PhpDocInfoFactory
|
||||
*/
|
||||
private $phpDocInfosByObjectHash = [];
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeMapper
|
||||
*/
|
||||
private $phpDocNodeMapper;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||
*/
|
||||
private $currentNodeProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
||||
*/
|
||||
private $lexer;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\BetterPhpDocParser
|
||||
*/
|
||||
private $betterPhpDocParser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
||||
*/
|
||||
private $annotationNaming;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
||||
*/
|
||||
private $rectorChangeCollector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeFinder\PhpDocNodeByTypeFinder
|
||||
*/
|
||||
private $phpDocNodeByTypeFinder;
|
||||
|
@ -14,10 +14,12 @@ final class TokenIteratorFactory
|
||||
*/
|
||||
private const INDEX = 'index';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
||||
*/
|
||||
private $lexer;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
|
@ -12,6 +12,7 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation\CurlyListNod
|
||||
final class PhpDocClassRenamer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
||||
*/
|
||||
private $classAnnotationMatcher;
|
||||
|
@ -23,18 +23,22 @@ use Rector\TypeDeclaration\PhpDocParser\ParamPhpDocNodeFactory;
|
||||
final class PhpDocTypeChanger
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\TypeComparator\TypeComparator
|
||||
*/
|
||||
private $typeComparator;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\TypeDeclaration\PhpDocParser\ParamPhpDocNodeFactory
|
||||
*/
|
||||
private $paramPhpDocNodeFactory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
|
@ -11,6 +11,7 @@ use Rector\Naming\ValueObject\ParamRename;
|
||||
final class PropertyDocBlockManipulator
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||
*/
|
||||
private $phpDocInfoFactory;
|
||||
|
@ -16,10 +16,12 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class VarAnnotationManipulator
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||
*/
|
||||
private $phpDocInfoFactory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger
|
||||
*/
|
||||
private $phpDocTypeChanger;
|
||||
|
@ -16,19 +16,23 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentCon
|
||||
final class PhpDocNodeMapper
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
||||
*/
|
||||
private $currentTokenIteratorProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor
|
||||
*/
|
||||
private $parentConnectingPhpDocNodeVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor
|
||||
*/
|
||||
private $cloningPhpDocNodeVisitor;
|
||||
/**
|
||||
* @var \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface[]
|
||||
* @readonly
|
||||
*/
|
||||
private $phpDocNodeVisitors;
|
||||
/**
|
||||
|
@ -8,6 +8,7 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
final class ChangedPhpDocNodeTraverserFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor
|
||||
*/
|
||||
private $changedPhpDocNodeVisitor;
|
||||
|
@ -12,6 +12,7 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractP
|
||||
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||
*/
|
||||
private $attributeMirrorer;
|
||||
|
@ -12,6 +12,7 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractP
|
||||
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||
*/
|
||||
private $attributeMirrorer;
|
||||
|
@ -12,6 +12,7 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractP
|
||||
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||
*/
|
||||
private $attributeMirrorer;
|
||||
|
@ -12,6 +12,7 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractP
|
||||
final class ParamPhpDocNodeVisitor extends \RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||
*/
|
||||
private $attributeMirrorer;
|
||||
|
@ -18,10 +18,12 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractP
|
||||
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
||||
*/
|
||||
private $currentTokenIteratorProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||
*/
|
||||
private $attributeMirrorer;
|
||||
|
@ -17,10 +17,12 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractP
|
||||
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
||||
*/
|
||||
private $currentTokenIteratorProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||
*/
|
||||
private $attributeMirrorer;
|
||||
|
@ -25,14 +25,17 @@ use RectorPrefix20211204\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesCaller
|
||||
*/
|
||||
private $privatesCaller;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
||||
*/
|
||||
private $tokenIteratorFactory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\DoctrineAnnotationDecorator
|
||||
*/
|
||||
private $doctrineAnnotationDecorator;
|
||||
|
@ -13,6 +13,7 @@ use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
final class BetterTypeParser extends \PHPStan\PhpDocParser\Parser\TypeParser
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
||||
*/
|
||||
private $tokenIteratorFactory;
|
||||
|
@ -19,10 +19,12 @@ final class ClassAnnotationMatcher
|
||||
*/
|
||||
private $fullyQualifiedNameByHash = [];
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\CodingStyle\NodeAnalyzer\UseImportNameMatcher
|
||||
*/
|
||||
private $useImportNameMatcher;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
|
@ -40,22 +40,27 @@ final class DoctrineAnnotationDecorator
|
||||
*/
|
||||
private const NESTED_ANNOTATION_END_REGEX = '#(\\s+)?\\}\\)(\\s+)?#';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||
*/
|
||||
private $currentNodeProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
||||
*/
|
||||
private $classAnnotationMatcher;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser
|
||||
*/
|
||||
private $staticDoctrineAnnotationParser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
||||
*/
|
||||
private $tokenIteratorFactory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||
*/
|
||||
private $attributeMirrorer;
|
||||
|
@ -22,22 +22,27 @@ use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
final class PhpDocFromTypeDeclarationDecorator
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||
*/
|
||||
private $phpDocInfoFactory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger
|
||||
*/
|
||||
private $phpDocTypeChanger;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\PHPStanStaticTypeMapper\Utils\TypeUnwrapper
|
||||
*/
|
||||
private $typeUnwrapper;
|
||||
|
@ -17,10 +17,12 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation\CurlyListNod
|
||||
final class StaticDoctrineAnnotationParser
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\PlainValueParser
|
||||
*/
|
||||
private $plainValueParser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\ArrayParser
|
||||
*/
|
||||
private $arrayParser;
|
||||
|
@ -12,6 +12,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
final class ArrayParser
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\PlainValueParser
|
||||
*/
|
||||
private $plainValueParser;
|
||||
|
@ -29,10 +29,12 @@ final class PlainValueParser
|
||||
*/
|
||||
private $arrayParser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
||||
*/
|
||||
private $classAnnotationMatcher;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||
*/
|
||||
private $currentNodeProvider;
|
||||
|
@ -74,22 +74,27 @@ final class PhpDocInfoPrinter
|
||||
*/
|
||||
private $phpDocInfo;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\SimplePhpDocParser\PhpDocNodeTraverser
|
||||
*/
|
||||
private $changedPhpDocNodeTraverser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Printer\EmptyPhpDocDetector
|
||||
*/
|
||||
private $emptyPhpDocDetector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Printer\DocBlockInliner
|
||||
*/
|
||||
private $docBlockInliner;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Printer\RemoveNodesStartAndEndResolver
|
||||
*/
|
||||
private $removeNodesStartAndEndResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor
|
||||
*/
|
||||
private $changedPhpDocNodeVisitor;
|
||||
|
@ -17,6 +17,7 @@ final class BetterTokenIterator extends \PHPStan\PhpDocParser\Parser\TokenIterat
|
||||
*/
|
||||
private const INDEX = 'index';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
|
@ -9,6 +9,7 @@ use Stringable;
|
||||
final class SpacingAwareTemplateTagValueNode extends \PHPStan\PhpDocParser\Ast\PhpDoc\TemplateTagValueNode
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $preposition;
|
||||
|
@ -7,10 +7,12 @@ use Rector\Core\Exception\ShouldNotHappenException;
|
||||
final class StartAndEnd
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var int
|
||||
*/
|
||||
private $start;
|
||||
/**
|
||||
* @readonly
|
||||
* @var int
|
||||
*/
|
||||
private $end;
|
||||
|
@ -9,6 +9,7 @@ use Stringable;
|
||||
final class BracketsAwareUnionTypeNode extends \PHPStan\PhpDocParser\Ast\Type\UnionTypeNode
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var bool
|
||||
*/
|
||||
private $isWrappedInBrackets = \false;
|
||||
|
@ -7,6 +7,7 @@ use Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface;
|
||||
final class Cache
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface
|
||||
*/
|
||||
private $cacheStorage;
|
||||
|
@ -11,10 +11,12 @@ use RectorPrefix20211204\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
final class CacheFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
*/
|
||||
private $parameterProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\SmartFileSystem\SmartFileSystem
|
||||
*/
|
||||
private $smartFileSystem;
|
||||
|
@ -16,10 +16,12 @@ use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
final class ChangedFilesDetector
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Caching\Config\FileHashComputer
|
||||
*/
|
||||
private $fileHashComputer;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Caching\Cache
|
||||
*/
|
||||
private $cache;
|
||||
|
@ -11,14 +11,17 @@ use RectorPrefix20211204\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
final class DependencyResolver
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Analyser\NodeScopeResolver
|
||||
*/
|
||||
private $nodeScopeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var PHPStanDependencyResolver
|
||||
*/
|
||||
private $phpStanDependencyResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
|
@ -8,6 +8,7 @@ use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
final class UnchangedFilesFilter
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Caching\Detector\ChangedFilesDetector
|
||||
*/
|
||||
private $changedFilesDetector;
|
||||
|
@ -6,14 +6,17 @@ namespace Rector\Caching\ValueObject;
|
||||
final class CacheFilePaths
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $firstDirectory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $secondDirectory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $filePath;
|
||||
|
@ -10,6 +10,7 @@ namespace Rector\Caching\ValueObject;
|
||||
final class CacheItem
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $variableKey;
|
||||
|
@ -7,6 +7,7 @@ use Rector\Core\Contract\Rector\RectorInterface;
|
||||
final class RectorsChangelogResolver
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\ChangesReporting\Annotation\AnnotationExtractor
|
||||
*/
|
||||
private $annotationExtractor;
|
||||
|
@ -12,10 +12,12 @@ use Rector\Core\ValueObject\Application\File;
|
||||
final class RectorChangeCollector
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Logging\CurrentRectorProvider
|
||||
*/
|
||||
private $currentRectorProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Provider\CurrentFileProvider
|
||||
*/
|
||||
private $currentFileProvider;
|
||||
|
@ -23,10 +23,12 @@ final class ConsoleOutputFormatter implements \Rector\ChangesReporting\Contract\
|
||||
*/
|
||||
private const ON_LINE_REGEX = '# on line #';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Contract\Console\OutputStyleInterface
|
||||
*/
|
||||
private $outputStyle;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\ChangesReporting\Annotation\RectorsChangelogResolver
|
||||
*/
|
||||
private $rectorsChangelogResolver;
|
||||
|
@ -15,6 +15,7 @@ final class JsonOutputFormatter implements \Rector\ChangesReporting\Contract\Out
|
||||
*/
|
||||
public const NAME = 'json';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\ChangesReporting\Annotation\RectorsChangelogResolver
|
||||
*/
|
||||
private $rectorsChangelogResolver;
|
||||
|
@ -17,9 +17,11 @@ final class RectorWithLineChange implements \RectorPrefix20211204\Symplify\EasyP
|
||||
private const KEY_LINE = 'line';
|
||||
/**
|
||||
* @var class-string<RectorInterface>
|
||||
* @readonly
|
||||
*/
|
||||
private $rectorClass;
|
||||
/**
|
||||
* @readonly
|
||||
* @var int
|
||||
*/
|
||||
private $line;
|
||||
|
@ -10,6 +10,7 @@ use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
final class ErrorFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Error\ExceptionCorrector
|
||||
*/
|
||||
private $exceptionCorrector;
|
||||
|
@ -10,10 +10,12 @@ use RectorPrefix20211204\Symplify\ConsoleColorDiff\Console\Output\ConsoleDiffer;
|
||||
final class FileDiffFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Differ\DefaultDiffer
|
||||
*/
|
||||
private $defaultDiffer;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\ConsoleColorDiff\Console\Output\ConsoleDiffer
|
||||
*/
|
||||
private $consoleDiffer;
|
||||
|
@ -14,6 +14,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class CommentRemover
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Comments\NodeTraverser\CommentRemovingNodeTraverser
|
||||
*/
|
||||
private $commentRemovingNodeTraverser;
|
||||
|
@ -16,6 +16,7 @@ final class DocBlockUpdater
|
||||
*/
|
||||
public const SPACE_OR_ASTERISK_REGEX = '#(\\s|\\*)+#';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Printer\PhpDocInfoPrinter
|
||||
*/
|
||||
private $phpDocInfoPrinter;
|
||||
|
@ -21,10 +21,12 @@ use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
|
||||
final class FluentChainMethodCallNodeAnalyzer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
||||
*/
|
||||
private $nodeTypeResolver;
|
||||
|
@ -9,6 +9,7 @@ use Rector\Core\Reflection\ReflectionResolver;
|
||||
final class SameClassMethodCallAnalyzer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Reflection\ReflectionResolver
|
||||
*/
|
||||
private $reflectionResolver;
|
||||
|
@ -9,6 +9,7 @@ use Rector\FamilyTree\Reflection\FamilyRelationsAnalyzer;
|
||||
final class ClassChildAnalyzer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\FamilyTree\Reflection\FamilyRelationsAnalyzer
|
||||
*/
|
||||
private $familyRelationsAnalyzer;
|
||||
|
@ -31,26 +31,32 @@ use RectorPrefix20211204\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
final class FamilyRelationsAnalyzer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\AstResolver
|
||||
*/
|
||||
private $astResolver;
|
||||
|
@ -9,10 +9,12 @@ use PHPStan\Type\Type;
|
||||
final class PropertyType
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Type\Type
|
||||
*/
|
||||
private $varType;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PhpParser\Node\ComplexType|\PhpParser\Node\Name|null
|
||||
*/
|
||||
private $propertyTypeNode;
|
||||
|
@ -14,6 +14,7 @@ use Rector\FileFormatter\ValueObjectFactory\EditorConfigConfigurationBuilder;
|
||||
final class EditorConfigParser
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Idiosyncratic\EditorConfig\EditorConfig
|
||||
*/
|
||||
private $editorConfig;
|
||||
|
@ -17,15 +17,18 @@ use RectorPrefix20211204\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
final class FileFormatter
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\FileFormatter\EditorConfig\EditorConfigParser
|
||||
*/
|
||||
private $editorConfigParser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
*/
|
||||
private $parameterProvider;
|
||||
/**
|
||||
* @var \Rector\FileFormatter\Contract\Formatter\FileFormatterInterface[]
|
||||
* @readonly
|
||||
*/
|
||||
private $fileFormatters = [];
|
||||
/**
|
||||
|
@ -15,6 +15,7 @@ use Rector\FileFormatter\ValueObjectFactory\EditorConfigConfigurationBuilder;
|
||||
final class JsonFileFormatter implements \Rector\FileFormatter\Contract\Formatter\FileFormatterInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Ergebnis\Json\Printer\PrinterInterface
|
||||
*/
|
||||
private $jsonPrinter;
|
||||
|
@ -9,14 +9,17 @@ namespace Rector\FileFormatter\ValueObject;
|
||||
final class EditorConfigConfiguration
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\FileFormatter\ValueObject\Indent
|
||||
*/
|
||||
private $indent;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\FileFormatter\ValueObject\NewLine
|
||||
*/
|
||||
private $newLine;
|
||||
/**
|
||||
* @readonly
|
||||
* @var bool
|
||||
*/
|
||||
private $insertFinalNewline;
|
||||
|
@ -41,6 +41,7 @@ final class Indent
|
||||
*/
|
||||
private const PARSE_INDENT_REGEX = '/^(?P<indent>( +|\\t+)).*/m';
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $string;
|
||||
|
@ -39,6 +39,7 @@ final class NewLine
|
||||
*/
|
||||
private const VALID_NEWLINE_REGEX = '#^(?>\\r\\n|\\n|\\r)$#';
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $string;
|
||||
|
@ -11,10 +11,12 @@ use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
final class FileInfoParser
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator
|
||||
*/
|
||||
private $nodeScopeAndMetadataDecorator;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Parser\RectorParser
|
||||
*/
|
||||
private $rectorParser;
|
||||
|
@ -8,10 +8,12 @@ use Rector\FileSystemRector\Contract\AddedFileInterface;
|
||||
final class AddedFileWithContent implements \Rector\FileSystemRector\Contract\AddedFileInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $filePath;
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $fileContent;
|
||||
|
@ -9,11 +9,13 @@ use Rector\FileSystemRector\Contract\FileWithNodesInterface;
|
||||
final class AddedFileWithNodes implements \Rector\FileSystemRector\Contract\AddedFileInterface, \Rector\FileSystemRector\Contract\FileWithNodesInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $filePath;
|
||||
/**
|
||||
* @var \PhpParser\Node\Stmt[]
|
||||
* @readonly
|
||||
*/
|
||||
private $nodes;
|
||||
/**
|
||||
|
@ -20,22 +20,27 @@ use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
final class AddedFileWithNodesFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Autodiscovery\Configuration\CategoryNamespaceProvider
|
||||
*/
|
||||
private $categoryNamespaceProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\PSR4\FileRelocationResolver
|
||||
*/
|
||||
private $fileRelocationResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\RenamedClassesDataCollector
|
||||
*/
|
||||
private $renamedClassesDataCollector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\PSR4\FileInfoAnalyzer\FileInfoDeletionAnalyzer
|
||||
*/
|
||||
private $fileInfoDeletionAnalyzer;
|
||||
|
@ -29,22 +29,27 @@ use Rector\NodeTypeResolver\NodeTypeResolver;
|
||||
final class ArrayCallableMethodMatcher
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
||||
*/
|
||||
private $nodeTypeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\Value\ValueResolver
|
||||
*/
|
||||
private $valueResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -10,6 +10,7 @@ use Rector\Core\Util\StringUtils;
|
||||
final class StaticAnalyzer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
|
@ -7,14 +7,17 @@ use PhpParser\Node\Expr;
|
||||
final class ArrayCallable
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PhpParser\Node\Expr
|
||||
*/
|
||||
private $callerExpr;
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $class;
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $method;
|
||||
|
@ -7,14 +7,17 @@ use PhpParser\Node\Expr;
|
||||
final class ArrayCallableDynamicMethod
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PhpParser\Node\Expr
|
||||
*/
|
||||
private $callerExpr;
|
||||
/**
|
||||
* @readonly
|
||||
* @var string
|
||||
*/
|
||||
private $class;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PhpParser\Node\Expr
|
||||
*/
|
||||
private $method;
|
||||
|
@ -18,10 +18,12 @@ final class InvalidNameNodeReporter
|
||||
*/
|
||||
private const FILE = 'file';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Provider\CurrentFileProvider
|
||||
*/
|
||||
private $currentFileProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Printer\BetterStandardPrinter
|
||||
*/
|
||||
private $betterStandardPrinter;
|
||||
|
@ -22,23 +22,28 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class NodeNameResolver
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\Regex\RegexPatternDetector
|
||||
*/
|
||||
private $regexPatternDetector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\CodingStyle\Naming\ClassNaming
|
||||
*/
|
||||
private $classNaming;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\Error\InvalidNameNodeReporter
|
||||
*/
|
||||
private $invalidNameNodeReporter;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\NodeAnalyzer\CallAnalyzer
|
||||
*/
|
||||
private $callAnalyzer;
|
||||
/**
|
||||
* @var \Rector\NodeNameResolver\Contract\NodeNameResolverInterface[]
|
||||
* @readonly
|
||||
*/
|
||||
private $nodeNameResolvers = [];
|
||||
/**
|
||||
|
@ -16,6 +16,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class FuncCallNameResolver implements \Rector\NodeNameResolver\Contract\NodeNameResolverInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
|
@ -15,6 +15,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class NameNameResolver implements \Rector\NodeNameResolver\Contract\NodeNameResolverInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver\FuncCallNameResolver
|
||||
*/
|
||||
private $funcCallNameResolver;
|
||||
|
@ -31,10 +31,12 @@ final class ContextAnalyzer
|
||||
*/
|
||||
private const LOOP_NODES = [\PhpParser\Node\Stmt\For_::class, \PhpParser\Node\Stmt\Foreach_::class, \PhpParser\Node\Stmt\While_::class, \PhpParser\Node\Stmt\Do_::class];
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
||||
*/
|
||||
private $nodeTypeResolver;
|
||||
|
@ -13,6 +13,7 @@ final class ScopeAwareNodeFinder
|
||||
*/
|
||||
private $isBreakingNodeFoundFirst = \false;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -13,6 +13,7 @@ use Rector\Core\PhpParser\Node\BetterNodeFinder;
|
||||
final class ParentScopeFinder
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -19,10 +19,12 @@ final class ScopeNestingComparator
|
||||
*/
|
||||
private $doubleIfBranchExprs = [];
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Comparing\NodeComparator
|
||||
*/
|
||||
private $nodeComparator;
|
||||
|
@ -12,18 +12,22 @@ use Rector\PostRector\Collector\NodesToReplaceCollector;
|
||||
final class AssignRemover
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\PostRector\Collector\NodesToReplaceCollector
|
||||
*/
|
||||
private $nodesToReplaceCollector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
||||
*/
|
||||
private $rectorChangeCollector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeRemoval\NodeRemover
|
||||
*/
|
||||
private $nodeRemover;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\DeadCode\NodeManipulator\LivingCodeManipulator
|
||||
*/
|
||||
private $livingCodeManipulator;
|
||||
|
@ -19,10 +19,12 @@ use Rector\PostRector\Collector\NodesToRemoveCollector;
|
||||
final class NodeRemover
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\PostRector\Collector\NodesToRemoveCollector
|
||||
*/
|
||||
private $nodesToRemoveCollector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
||||
*/
|
||||
private $rectorChangeCollector;
|
||||
|
@ -26,6 +26,7 @@ use RectorPrefix20211204\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
final class PHPStanServicesFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\DependencyInjection\Container
|
||||
*/
|
||||
private $container;
|
||||
|
@ -13,6 +13,7 @@ use Rector\Core\Reflection\ReflectionResolver;
|
||||
final class MethodParameterTypeResolver
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Reflection\ReflectionResolver
|
||||
*/
|
||||
private $reflectionResolver;
|
||||
|
@ -15,26 +15,32 @@ use Rector\NodeTypeResolver\PHPStan\Scope\PHPStanNodeScopeResolver;
|
||||
final class NodeScopeAndMetadataDecorator
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PhpParser\NodeVisitor\CloningVisitor
|
||||
*/
|
||||
private $cloningVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeVisitor\NamespaceNodeVisitor
|
||||
*/
|
||||
private $namespaceNodeVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PHPStan\Scope\PHPStanNodeScopeResolver
|
||||
*/
|
||||
private $phpStanNodeScopeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeVisitor\StatementNodeVisitor
|
||||
*/
|
||||
private $statementNodeVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PhpParser\NodeVisitor\NodeConnectingVisitor
|
||||
*/
|
||||
private $nodeConnectingVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeVisitor\FunctionLikeParamArgPositionNodeVisitor
|
||||
*/
|
||||
private $functionLikeParamArgPositionNodeVisitor;
|
||||
|
@ -12,6 +12,7 @@ use PHPStan\Type\TypeTraverser;
|
||||
final class GenericClassStringTypeCorrector
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
|
@ -19,22 +19,27 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class PregMatchTypeCorrector
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNestingScope\ParentScopeFinder
|
||||
*/
|
||||
private $parentScopeFinder;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Comparing\NodeComparator
|
||||
*/
|
||||
private $nodeComparator;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\NodeAnalyzer\ArgsAnalyzer
|
||||
*/
|
||||
private $argsAnalyzer;
|
||||
|
@ -51,38 +51,47 @@ final class NodeTypeResolver
|
||||
*/
|
||||
private $nodeTypeResolvers = [];
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\TypeDeclaration\PHPStan\Type\ObjectTypeSpecifier
|
||||
*/
|
||||
private $objectTypeSpecifier;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
||||
*/
|
||||
private $classAnalyzer;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\GenericClassStringTypeCorrector
|
||||
*/
|
||||
private $genericClassStringTypeCorrector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\HasOffsetTypeCorrector
|
||||
*/
|
||||
private $hasOffsetTypeCorrector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\AccessoryNonEmptyStringTypeCorrector
|
||||
*/
|
||||
private $accessoryNonEmptyStringTypeCorrector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver\IdentifierTypeResolver
|
||||
*/
|
||||
private $identifierTypeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\Configuration\RenamedClassesDataCollector
|
||||
*/
|
||||
private $renamedClassesDataCollector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -23,6 +23,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class ClassAndInterfaceTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
|
@ -24,6 +24,7 @@ final class ClassMethodOrClassConstTypeResolver implements \Rector\NodeTypeResol
|
||||
*/
|
||||
private $nodeTypeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -27,14 +27,17 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class NameTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
|
@ -25,10 +25,12 @@ use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
|
||||
final class NewTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
||||
*/
|
||||
private $classAnalyzer;
|
||||
|
@ -39,18 +39,22 @@ final class ParamTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeT
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
*/
|
||||
private $simpleCallableNodeTraverser;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||
*/
|
||||
private $phpDocInfoFactory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -29,14 +29,17 @@ final class PropertyFetchTypeResolver implements \Rector\NodeTypeResolver\Contra
|
||||
*/
|
||||
private $nodeTypeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -27,10 +27,12 @@ final class StaticCallMethodCallTypeResolver implements \Rector\NodeTypeResolver
|
||||
*/
|
||||
private $nodeTypeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
|
@ -19,6 +19,7 @@ use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
||||
final class TraitTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
|
@ -21,10 +21,12 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
final class VariableTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||
*/
|
||||
private $phpDocInfoFactory;
|
||||
|
@ -16,6 +16,7 @@ final class NamespaceNodeVisitor extends \PhpParser\NodeVisitorAbstract
|
||||
*/
|
||||
private $useNodes = [];
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -18,6 +18,7 @@ use RectorPrefix20211204\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
final class RemoveDeepChainMethodCallNodeVisitor extends \PhpParser\NodeVisitorAbstract
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var int
|
||||
*/
|
||||
private $nestedChainMethodCallLimit;
|
||||
@ -26,6 +27,7 @@ final class RemoveDeepChainMethodCallNodeVisitor extends \PhpParser\NodeVisitorA
|
||||
*/
|
||||
private $removingExpression;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
|
@ -43,42 +43,52 @@ final class PHPStanNodeScopeResolver
|
||||
*/
|
||||
private const CONTEXT = 'context';
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Caching\Detector\ChangedFilesDetector
|
||||
*/
|
||||
private $changedFilesDetector;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Caching\FileSystem\DependencyResolver
|
||||
*/
|
||||
private $dependencyResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Analyser\NodeScopeResolver
|
||||
*/
|
||||
private $nodeScopeResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor\RemoveDeepChainMethodCallNodeVisitor
|
||||
*/
|
||||
private $removeDeepChainMethodCallNodeVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PHPStan\Scope\ScopeFactory
|
||||
*/
|
||||
private $scopeFactory;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\StaticReflection\SourceLocator\RenamedClassesSourceLocator
|
||||
*/
|
||||
private $renamedClassesSourceLocator;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\StaticReflection\SourceLocator\ParentAttributeSourceLocator
|
||||
*/
|
||||
private $parentAttributeSourceLocator;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PHPStan\Scope\TraitScopeFaker
|
||||
*/
|
||||
private $traitScopeFaker;
|
||||
|
@ -10,6 +10,7 @@ use Symplify\SmartFileSystem\SmartFileInfo;
|
||||
final class ScopeFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var PHPStanScopeFactory
|
||||
*/
|
||||
private $phpStanScopeFactory;
|
||||
|
@ -11,10 +11,12 @@ use RectorPrefix20211204\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
final class TraitScopeFaker
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
|
@ -19,6 +19,7 @@ use Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeAnalyzer;
|
||||
final class StaticTypeAnalyzer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeAnalyzer
|
||||
*/
|
||||
private $unionTypeAnalyzer;
|
||||
|
@ -22,6 +22,7 @@ use Rector\NodeTypeResolver\PHPStan\TypeHasher;
|
||||
final class TypeFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PHPStan\TypeHasher
|
||||
*/
|
||||
private $typeHasher;
|
||||
|
@ -10,10 +10,12 @@ use Rector\NodeTypeResolver\ValueObject\OldToNewType;
|
||||
final class DocBlockClassRenamer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PhpDocNodeVisitor\ClassRenamePhpDocNodeVisitor
|
||||
*/
|
||||
private $classRenamePhpDocNodeVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PhpDoc\PhpDocNodeTraverser\RenamingPhpDocNodeVisitorFactory
|
||||
*/
|
||||
private $renamingPhpDocNodeVisitorFactory;
|
||||
|
@ -10,10 +10,12 @@ use Rector\NodeTypeResolver\PhpDocNodeVisitor\NameImportingPhpDocNodeVisitor;
|
||||
final class DocBlockNameImporter
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PhpDocNodeVisitor\NameImportingPhpDocNodeVisitor
|
||||
*/
|
||||
private $nameImportingPhpDocNodeVisitor;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PhpDoc\PhpDocNodeTraverser\ImportingPhpDocNodeTraverserFactory
|
||||
*/
|
||||
private $importingPhpDocNodeTraverserFactory;
|
||||
|
@ -10,6 +10,7 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
final class DocBlockTagReplacer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
||||
*/
|
||||
private $annotationNaming;
|
||||
|
@ -8,6 +8,7 @@ use RectorPrefix20211204\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
final class ImportingPhpDocNodeTraverserFactory
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeTypeResolver\PhpDocNodeVisitor\NameImportingPhpDocNodeVisitor
|
||||
*/
|
||||
private $nameImportingPhpDocNodeVisitor;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user