mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit bb609b28e327ca1fb7827b6bc548013d19a2cf4e
bb609b28e3
[Core] Always reset stopTraversal to false on next Rector visit (#4182)
This commit is contained in:
parent
8ea0fec420
commit
3313a231b7
@ -8,13 +8,7 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagValueNode;
|
|||||||
use Stringable;
|
use Stringable;
|
||||||
final class ArrayItemNode implements PhpDocTagValueNode
|
final class ArrayItemNode implements PhpDocTagValueNode
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var mixed
|
|
||||||
*/
|
|
||||||
public $value;
|
public $value;
|
||||||
/**
|
|
||||||
* @var mixed
|
|
||||||
*/
|
|
||||||
public $key = null;
|
public $key = null;
|
||||||
use NodeAttributes;
|
use NodeAttributes;
|
||||||
/**
|
/**
|
||||||
|
@ -40,42 +40,34 @@ use Rector\StaticTypeMapper\StaticTypeMapper;
|
|||||||
final class PhpDocInfo
|
final class PhpDocInfo
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
* @var \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||||
*/
|
*/
|
||||||
private $phpDocNode;
|
private $phpDocNode;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator
|
* @var \Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator
|
||||||
*/
|
*/
|
||||||
private $betterTokenIterator;
|
private $betterTokenIterator;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PhpParser\Node
|
* @var \PhpParser\Node
|
||||||
*/
|
*/
|
||||||
private $node;
|
private $node;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
||||||
*/
|
*/
|
||||||
private $annotationNaming;
|
private $annotationNaming;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||||
*/
|
*/
|
||||||
private $currentNodeProvider;
|
private $currentNodeProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
||||||
*/
|
*/
|
||||||
private $rectorChangeCollector;
|
private $rectorChangeCollector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeFinder\PhpDocNodeByTypeFinder
|
* @var \Rector\BetterPhpDocParser\PhpDocNodeFinder\PhpDocNodeByTypeFinder
|
||||||
*/
|
*/
|
||||||
private $phpDocNodeByTypeFinder;
|
private $phpDocNodeByTypeFinder;
|
||||||
|
@ -22,42 +22,34 @@ use Rector\StaticTypeMapper\StaticTypeMapper;
|
|||||||
final class PhpDocInfoFactory
|
final class PhpDocInfoFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeMapper
|
* @var \Rector\BetterPhpDocParser\PhpDocNodeMapper
|
||||||
*/
|
*/
|
||||||
private $phpDocNodeMapper;
|
private $phpDocNodeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||||
*/
|
*/
|
||||||
private $currentNodeProvider;
|
private $currentNodeProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
||||||
*/
|
*/
|
||||||
private $lexer;
|
private $lexer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\BetterPhpDocParser
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\BetterPhpDocParser
|
||||||
*/
|
*/
|
||||||
private $betterPhpDocParser;
|
private $betterPhpDocParser;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
||||||
*/
|
*/
|
||||||
private $annotationNaming;
|
private $annotationNaming;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
* @var \Rector\ChangesReporting\Collector\RectorChangeCollector
|
||||||
*/
|
*/
|
||||||
private $rectorChangeCollector;
|
private $rectorChangeCollector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeFinder\PhpDocNodeByTypeFinder
|
* @var \Rector\BetterPhpDocParser\PhpDocNodeFinder\PhpDocNodeByTypeFinder
|
||||||
*/
|
*/
|
||||||
private $phpDocNodeByTypeFinder;
|
private $phpDocNodeByTypeFinder;
|
||||||
|
@ -10,12 +10,10 @@ use Rector\Core\Util\Reflection\PrivatesAccessor;
|
|||||||
final class TokenIteratorFactory
|
final class TokenIteratorFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
||||||
*/
|
*/
|
||||||
private $lexer;
|
private $lexer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
||||||
*/
|
*/
|
||||||
private $privatesAccessor;
|
private $privatesAccessor;
|
||||||
|
@ -15,7 +15,6 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
|||||||
final class PhpDocClassRenamer
|
final class PhpDocClassRenamer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
||||||
*/
|
*/
|
||||||
private $classAnnotationMatcher;
|
private $classAnnotationMatcher;
|
||||||
|
@ -37,37 +37,30 @@ use Rector\TypeDeclaration\PhpDocParser\ParamPhpDocNodeFactory;
|
|||||||
final class PhpDocTypeChanger
|
final class PhpDocTypeChanger
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\TypeComparator\TypeComparator
|
* @var \Rector\NodeTypeResolver\TypeComparator\TypeComparator
|
||||||
*/
|
*/
|
||||||
private $typeComparator;
|
private $typeComparator;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\TypeDeclaration\PhpDocParser\ParamPhpDocNodeFactory
|
* @var \Rector\TypeDeclaration\PhpDocParser\ParamPhpDocNodeFactory
|
||||||
*/
|
*/
|
||||||
private $paramPhpDocNodeFactory;
|
private $paramPhpDocNodeFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Comment\CommentsMerger
|
* @var \Rector\BetterPhpDocParser\Comment\CommentsMerger
|
||||||
*/
|
*/
|
||||||
private $commentsMerger;
|
private $commentsMerger;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||||
*/
|
*/
|
||||||
private $phpDocInfoFactory;
|
private $phpDocInfoFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Guard\NewPhpDocFromPHPStanTypeGuard
|
* @var \Rector\BetterPhpDocParser\Guard\NewPhpDocFromPHPStanTypeGuard
|
||||||
*/
|
*/
|
||||||
private $newPhpDocFromPHPStanTypeGuard;
|
private $newPhpDocFromPHPStanTypeGuard;
|
||||||
|
@ -10,7 +10,6 @@ use Rector\Naming\ValueObject\ParamRename;
|
|||||||
final class PropertyDocBlockManipulator
|
final class PropertyDocBlockManipulator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||||
*/
|
*/
|
||||||
private $phpDocInfoFactory;
|
private $phpDocInfoFactory;
|
||||||
|
@ -16,23 +16,19 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNod
|
|||||||
final class PhpDocNodeMapper
|
final class PhpDocNodeMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
||||||
*/
|
*/
|
||||||
private $currentTokenIteratorProvider;
|
private $currentTokenIteratorProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor
|
* @var \Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor
|
||||||
*/
|
*/
|
||||||
private $parentConnectingPhpDocNodeVisitor;
|
private $parentConnectingPhpDocNodeVisitor;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor
|
* @var \Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor
|
||||||
*/
|
*/
|
||||||
private $cloningPhpDocNodeVisitor;
|
private $cloningPhpDocNodeVisitor;
|
||||||
/**
|
/**
|
||||||
* @var BasePhpDocNodeVisitorInterface[]
|
* @var BasePhpDocNodeVisitorInterface[]
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
private $phpDocNodeVisitors;
|
private $phpDocNodeVisitors;
|
||||||
/**
|
/**
|
||||||
|
@ -12,7 +12,6 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
|||||||
final class ArrayTypePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
final class ArrayTypePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||||
*/
|
*/
|
||||||
private $attributeMirrorer;
|
private $attributeMirrorer;
|
||||||
|
@ -12,7 +12,6 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
|||||||
final class CallableTypePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
final class CallableTypePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||||
*/
|
*/
|
||||||
private $attributeMirrorer;
|
private $attributeMirrorer;
|
||||||
|
@ -12,7 +12,6 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
|||||||
final class IntersectionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
final class IntersectionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||||
*/
|
*/
|
||||||
private $attributeMirrorer;
|
private $attributeMirrorer;
|
||||||
|
@ -18,12 +18,10 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
|||||||
final class TemplatePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
final class TemplatePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
||||||
*/
|
*/
|
||||||
private $currentTokenIteratorProvider;
|
private $currentTokenIteratorProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||||
*/
|
*/
|
||||||
private $attributeMirrorer;
|
private $attributeMirrorer;
|
||||||
|
@ -17,12 +17,10 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
|||||||
final class UnionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
final class UnionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider
|
||||||
*/
|
*/
|
||||||
private $currentTokenIteratorProvider;
|
private $currentTokenIteratorProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||||
*/
|
*/
|
||||||
private $attributeMirrorer;
|
private $attributeMirrorer;
|
||||||
|
@ -28,35 +28,31 @@ use Rector\Core\Util\Reflection\PrivatesAccessor;
|
|||||||
final class BetterPhpDocParser extends PhpDocParser
|
final class BetterPhpDocParser extends PhpDocParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||||
*/
|
*/
|
||||||
private $currentNodeProvider;
|
private $currentNodeProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
||||||
*/
|
*/
|
||||||
private $tokenIteratorFactory;
|
private $tokenIteratorFactory;
|
||||||
/**
|
/**
|
||||||
* @var PhpDocNodeDecoratorInterface[]
|
* @var PhpDocNodeDecoratorInterface[]
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
private $phpDocNodeDecorators;
|
private $phpDocNodeDecorators;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
* @var \Rector\Core\Util\Reflection\PrivatesAccessor|null
|
||||||
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
|
||||||
*/
|
*/
|
||||||
private $privatesAccessor;
|
private $privatesAccessor;
|
||||||
/**
|
/**
|
||||||
* @param PhpDocNodeDecoratorInterface[] $phpDocNodeDecorators
|
* @param PhpDocNodeDecoratorInterface[] $phpDocNodeDecorators
|
||||||
*/
|
*/
|
||||||
public function __construct(TypeParser $typeParser, ConstExprParser $constExprParser, CurrentNodeProvider $currentNodeProvider, TokenIteratorFactory $tokenIteratorFactory, array $phpDocNodeDecorators, PrivatesAccessor $privatesAccessor = null)
|
public function __construct(TypeParser $typeParser, ConstExprParser $constExprParser, CurrentNodeProvider $currentNodeProvider, TokenIteratorFactory $tokenIteratorFactory, array $phpDocNodeDecorators, ?PrivatesAccessor $privatesAccessor = null)
|
||||||
{
|
{
|
||||||
$privatesAccessor = $privatesAccessor ?? new PrivatesAccessor();
|
|
||||||
$this->currentNodeProvider = $currentNodeProvider;
|
$this->currentNodeProvider = $currentNodeProvider;
|
||||||
$this->tokenIteratorFactory = $tokenIteratorFactory;
|
$this->tokenIteratorFactory = $tokenIteratorFactory;
|
||||||
$this->phpDocNodeDecorators = $phpDocNodeDecorators;
|
$this->phpDocNodeDecorators = $phpDocNodeDecorators;
|
||||||
$this->privatesAccessor = $privatesAccessor;
|
$this->privatesAccessor = $privatesAccessor;
|
||||||
|
$this->privatesAccessor = $privatesAccessor ?? new PrivatesAccessor();
|
||||||
parent::__construct($typeParser, $constExprParser);
|
parent::__construct($typeParser, $constExprParser);
|
||||||
}
|
}
|
||||||
public function parse(TokenIterator $tokenIterator) : PhpDocNode
|
public function parse(TokenIterator $tokenIterator) : PhpDocNode
|
||||||
|
@ -13,7 +13,6 @@ use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
|||||||
final class BetterTypeParser extends TypeParser
|
final class BetterTypeParser extends TypeParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
||||||
*/
|
*/
|
||||||
private $tokenIteratorFactory;
|
private $tokenIteratorFactory;
|
||||||
|
@ -19,17 +19,14 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||||||
final class ClassAnnotationMatcher
|
final class ClassAnnotationMatcher
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\CodingStyle\NodeAnalyzer\UseImportNameMatcher
|
* @var \Rector\CodingStyle\NodeAnalyzer\UseImportNameMatcher
|
||||||
*/
|
*/
|
||||||
private $useImportNameMatcher;
|
private $useImportNameMatcher;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Naming\Naming\UseImportsResolver
|
* @var \Rector\Naming\Naming\UseImportsResolver
|
||||||
*/
|
*/
|
||||||
private $useImportsResolver;
|
private $useImportsResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
|
@ -19,12 +19,10 @@ use Rector\StaticTypeMapper\Naming\NameScopeFactory;
|
|||||||
final class ConstExprClassNameDecorator implements PhpDocNodeDecoratorInterface
|
final class ConstExprClassNameDecorator implements PhpDocNodeDecoratorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\Naming\NameScopeFactory
|
* @var \Rector\StaticTypeMapper\Naming\NameScopeFactory
|
||||||
*/
|
*/
|
||||||
private $nameScopeFactory;
|
private $nameScopeFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\PhpDocParser\PhpDocNodeTraverser
|
* @var \Rector\PhpDocParser\PhpDocParser\PhpDocNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $phpDocNodeTraverser;
|
private $phpDocNodeTraverser;
|
||||||
|
@ -24,22 +24,18 @@ use Rector\Core\Util\StringUtils;
|
|||||||
final class DoctrineAnnotationDecorator implements PhpDocNodeDecoratorInterface
|
final class DoctrineAnnotationDecorator implements PhpDocNodeDecoratorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
||||||
*/
|
*/
|
||||||
private $classAnnotationMatcher;
|
private $classAnnotationMatcher;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser
|
||||||
*/
|
*/
|
||||||
private $staticDoctrineAnnotationParser;
|
private $staticDoctrineAnnotationParser;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\TokenIteratorFactory
|
||||||
*/
|
*/
|
||||||
private $tokenIteratorFactory;
|
private $tokenIteratorFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer
|
||||||
*/
|
*/
|
||||||
private $attributeMirrorer;
|
private $attributeMirrorer;
|
||||||
|
@ -19,12 +19,10 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation\CurlyListNod
|
|||||||
final class StaticDoctrineAnnotationParser
|
final class StaticDoctrineAnnotationParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\PlainValueParser
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\PlainValueParser
|
||||||
*/
|
*/
|
||||||
private $plainValueParser;
|
private $plainValueParser;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\ArrayParser
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\ArrayParser
|
||||||
*/
|
*/
|
||||||
private $arrayParser;
|
private $arrayParser;
|
||||||
|
@ -15,7 +15,6 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
|||||||
final class ArrayParser
|
final class ArrayParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\PlainValueParser
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\StaticDoctrineAnnotationParser\PlainValueParser
|
||||||
*/
|
*/
|
||||||
private $plainValueParser;
|
private $plainValueParser;
|
||||||
|
@ -22,12 +22,10 @@ use RectorPrefix202306\Symfony\Contracts\Service\Attribute\Required;
|
|||||||
final class PlainValueParser
|
final class PlainValueParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
* @var \Rector\BetterPhpDocParser\PhpDocParser\ClassAnnotationMatcher
|
||||||
*/
|
*/
|
||||||
private $classAnnotationMatcher;
|
private $classAnnotationMatcher;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||||
*/
|
*/
|
||||||
private $currentNodeProvider;
|
private $currentNodeProvider;
|
||||||
|
@ -27,22 +27,18 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeTraverser;
|
|||||||
final class PhpDocInfoPrinter
|
final class PhpDocInfoPrinter
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Printer\EmptyPhpDocDetector
|
* @var \Rector\BetterPhpDocParser\Printer\EmptyPhpDocDetector
|
||||||
*/
|
*/
|
||||||
private $emptyPhpDocDetector;
|
private $emptyPhpDocDetector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Printer\DocBlockInliner
|
* @var \Rector\BetterPhpDocParser\Printer\DocBlockInliner
|
||||||
*/
|
*/
|
||||||
private $docBlockInliner;
|
private $docBlockInliner;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Printer\RemoveNodesStartAndEndResolver
|
* @var \Rector\BetterPhpDocParser\Printer\RemoveNodesStartAndEndResolver
|
||||||
*/
|
*/
|
||||||
private $removeNodesStartAndEndResolver;
|
private $removeNodesStartAndEndResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor
|
* @var \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor
|
||||||
*/
|
*/
|
||||||
private $changedPhpDocNodeVisitor;
|
private $changedPhpDocNodeVisitor;
|
||||||
|
@ -10,7 +10,6 @@ final class CurlyListNode extends \Rector\BetterPhpDocParser\ValueObject\PhpDoc\
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var ArrayItemNode[]
|
* @var ArrayItemNode[]
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
private $arrayItemNodes = [];
|
private $arrayItemNodes = [];
|
||||||
/**
|
/**
|
||||||
|
@ -9,7 +9,6 @@ use Stringable;
|
|||||||
final class SpacingAwareTemplateTagValueNode extends TemplateTagValueNode
|
final class SpacingAwareTemplateTagValueNode extends TemplateTagValueNode
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $preposition;
|
private $preposition;
|
||||||
|
@ -7,12 +7,10 @@ use Rector\Core\Exception\ShouldNotHappenException;
|
|||||||
final class StartAndEnd
|
final class StartAndEnd
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $start;
|
private $start;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $end;
|
private $end;
|
||||||
|
@ -9,7 +9,6 @@ use Stringable;
|
|||||||
final class BracketsAwareUnionTypeNode extends UnionTypeNode
|
final class BracketsAwareUnionTypeNode extends UnionTypeNode
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
private $isWrappedInBrackets = \false;
|
private $isWrappedInBrackets = \false;
|
||||||
|
@ -7,7 +7,6 @@ use Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface;
|
|||||||
final class Cache
|
final class Cache
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface
|
* @var \Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface
|
||||||
*/
|
*/
|
||||||
private $cacheStorage;
|
private $cacheStorage;
|
||||||
|
@ -11,12 +11,10 @@ use RectorPrefix202306\Symfony\Component\Filesystem\Filesystem;
|
|||||||
final class CacheFactory
|
final class CacheFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\Parameter\ParameterProvider
|
* @var \Rector\Core\Configuration\Parameter\ParameterProvider
|
||||||
*/
|
*/
|
||||||
private $parameterProvider;
|
private $parameterProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Symfony\Component\Filesystem\Filesystem
|
* @var \Symfony\Component\Filesystem\Filesystem
|
||||||
*/
|
*/
|
||||||
private $fileSystem;
|
private $fileSystem;
|
||||||
|
@ -15,17 +15,14 @@ use Rector\Core\Util\FileHasher;
|
|||||||
final class ChangedFilesDetector
|
final class ChangedFilesDetector
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Caching\Config\FileHashComputer
|
* @var \Rector\Caching\Config\FileHashComputer
|
||||||
*/
|
*/
|
||||||
private $fileHashComputer;
|
private $fileHashComputer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Caching\Cache
|
* @var \Rector\Caching\Cache
|
||||||
*/
|
*/
|
||||||
private $cache;
|
private $cache;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Util\FileHasher
|
* @var \Rector\Core\Util\FileHasher
|
||||||
*/
|
*/
|
||||||
private $fileHasher;
|
private $fileHasher;
|
||||||
|
@ -11,17 +11,14 @@ use Rector\Core\Util\Reflection\PrivatesAccessor;
|
|||||||
final class DependencyResolver
|
final class DependencyResolver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Analyser\NodeScopeResolver
|
* @var \PHPStan\Analyser\NodeScopeResolver
|
||||||
*/
|
*/
|
||||||
private $nodeScopeResolver;
|
private $nodeScopeResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var PHPStanDependencyResolver
|
* @var PHPStanDependencyResolver
|
||||||
*/
|
*/
|
||||||
private $phpStanDependencyResolver;
|
private $phpStanDependencyResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
||||||
*/
|
*/
|
||||||
private $privatesAccessor;
|
private $privatesAccessor;
|
||||||
|
@ -7,7 +7,6 @@ use Rector\Caching\Detector\ChangedFilesDetector;
|
|||||||
final class UnchangedFilesFilter
|
final class UnchangedFilesFilter
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Caching\Detector\ChangedFilesDetector
|
* @var \Rector\Caching\Detector\ChangedFilesDetector
|
||||||
*/
|
*/
|
||||||
private $changedFilesDetector;
|
private $changedFilesDetector;
|
||||||
|
@ -6,17 +6,14 @@ namespace Rector\Caching\ValueObject;
|
|||||||
final class CacheFilePaths
|
final class CacheFilePaths
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $firstDirectory;
|
private $firstDirectory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $secondDirectory;
|
private $secondDirectory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $filePath;
|
private $filePath;
|
||||||
|
@ -10,14 +10,9 @@ namespace Rector\Caching\ValueObject;
|
|||||||
final class CacheItem
|
final class CacheItem
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $variableKey;
|
private $variableKey;
|
||||||
/**
|
|
||||||
* @readonly
|
|
||||||
* @var mixed
|
|
||||||
*/
|
|
||||||
private $data;
|
private $data;
|
||||||
/**
|
/**
|
||||||
* @param mixed $data
|
* @param mixed $data
|
||||||
|
@ -17,12 +17,10 @@ use Rector\Core\Exception\Cache\CachingException;
|
|||||||
final class FileCacheStorage implements CacheStorageInterface
|
final class FileCacheStorage implements CacheStorageInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $directory;
|
private $directory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Symfony\Component\Filesystem\Filesystem
|
* @var \Symfony\Component\Filesystem\Filesystem
|
||||||
*/
|
*/
|
||||||
private $filesystem;
|
private $filesystem;
|
||||||
|
@ -7,7 +7,6 @@ use Rector\Core\Contract\Rector\RectorInterface;
|
|||||||
final class RectorsChangelogResolver
|
final class RectorsChangelogResolver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\ChangesReporting\Annotation\AnnotationExtractor
|
* @var \Rector\ChangesReporting\Annotation\AnnotationExtractor
|
||||||
*/
|
*/
|
||||||
private $annotationExtractor;
|
private $annotationExtractor;
|
||||||
|
@ -12,12 +12,10 @@ use Rector\Core\ValueObject\Application\File;
|
|||||||
final class RectorChangeCollector
|
final class RectorChangeCollector
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Logging\CurrentRectorProvider
|
* @var \Rector\Core\Logging\CurrentRectorProvider
|
||||||
*/
|
*/
|
||||||
private $currentRectorProvider;
|
private $currentRectorProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Provider\CurrentFileProvider
|
* @var \Rector\Core\Provider\CurrentFileProvider
|
||||||
*/
|
*/
|
||||||
private $currentFileProvider;
|
private $currentFileProvider;
|
||||||
|
@ -14,12 +14,10 @@ use Rector\Core\ValueObject\Reporting\FileDiff;
|
|||||||
final class ConsoleOutputFormatter implements OutputFormatterInterface
|
final class ConsoleOutputFormatter implements OutputFormatterInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Contract\Console\OutputStyleInterface
|
* @var \Rector\Core\Contract\Console\OutputStyleInterface
|
||||||
*/
|
*/
|
||||||
private $rectorOutputStyle;
|
private $rectorOutputStyle;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\ChangesReporting\Annotation\RectorsChangelogResolver
|
* @var \Rector\ChangesReporting\Annotation\RectorsChangelogResolver
|
||||||
*/
|
*/
|
||||||
private $rectorsChangelogResolver;
|
private $rectorsChangelogResolver;
|
||||||
|
@ -13,7 +13,6 @@ use Rector\Parallel\ValueObject\Bridge;
|
|||||||
final class JsonOutputFormatter implements OutputFormatterInterface
|
final class JsonOutputFormatter implements OutputFormatterInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\ChangesReporting\Annotation\RectorsChangelogResolver
|
* @var \Rector\ChangesReporting\Annotation\RectorsChangelogResolver
|
||||||
*/
|
*/
|
||||||
private $rectorsChangelogResolver;
|
private $rectorsChangelogResolver;
|
||||||
|
@ -9,7 +9,6 @@ use RectorPrefix202306\Webmozart\Assert\Assert;
|
|||||||
final class RectorWithLineChange implements SerializableInterface
|
final class RectorWithLineChange implements SerializableInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $line;
|
private $line;
|
||||||
|
@ -10,12 +10,10 @@ use Rector\Core\ValueObject\Error\SystemError;
|
|||||||
final class ErrorFactory
|
final class ErrorFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Error\ExceptionCorrector
|
* @var \Rector\Core\Error\ExceptionCorrector
|
||||||
*/
|
*/
|
||||||
private $exceptionCorrector;
|
private $exceptionCorrector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\FileSystem\FilePathHelper
|
* @var \Rector\Core\FileSystem\FilePathHelper
|
||||||
*/
|
*/
|
||||||
private $filePathHelper;
|
private $filePathHelper;
|
||||||
|
@ -12,17 +12,14 @@ use Rector\Core\ValueObject\Reporting\FileDiff;
|
|||||||
final class FileDiffFactory
|
final class FileDiffFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Differ\DefaultDiffer
|
* @var \Rector\Core\Differ\DefaultDiffer
|
||||||
*/
|
*/
|
||||||
private $defaultDiffer;
|
private $defaultDiffer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Console\Formatter\ConsoleDiffer
|
* @var \Rector\Core\Console\Formatter\ConsoleDiffer
|
||||||
*/
|
*/
|
||||||
private $consoleDiffer;
|
private $consoleDiffer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\FileSystem\FilePathHelper
|
* @var \Rector\Core\FileSystem\FilePathHelper
|
||||||
*/
|
*/
|
||||||
private $filePathHelper;
|
private $filePathHelper;
|
||||||
|
@ -11,7 +11,6 @@ use Rector\Comments\NodeTraverser\CommentRemovingNodeTraverser;
|
|||||||
final class CommentRemover
|
final class CommentRemover
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Comments\NodeTraverser\CommentRemovingNodeTraverser
|
* @var \Rector\Comments\NodeTraverser\CommentRemovingNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $commentRemovingNodeTraverser;
|
private $commentRemovingNodeTraverser;
|
||||||
|
@ -12,7 +12,6 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||||||
final class DocBlockUpdater
|
final class DocBlockUpdater
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Printer\PhpDocInfoPrinter
|
* @var \Rector\BetterPhpDocParser\Printer\PhpDocInfoPrinter
|
||||||
*/
|
*/
|
||||||
private $phpDocInfoPrinter;
|
private $phpDocInfoPrinter;
|
||||||
@ -36,20 +35,6 @@ final class DocBlockUpdater
|
|||||||
// this is needed to remove duplicated // commentsAsText
|
// this is needed to remove duplicated // commentsAsText
|
||||||
$node->setDocComment(new Doc($phpDoc));
|
$node->setDocComment(new Doc($phpDoc));
|
||||||
}
|
}
|
||||||
public function updateRefactoredNodeWithPhpDocInfo(Node $node) : void
|
|
||||||
{
|
|
||||||
// nothing to change? don't save it
|
|
||||||
$phpDocInfo = $this->resolveChangedPhpDocInfo($node);
|
|
||||||
if (!$phpDocInfo instanceof PhpDocInfo) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$phpDocNode = $phpDocInfo->getPhpDocNode();
|
|
||||||
if ($phpDocNode->children === []) {
|
|
||||||
$this->setCommentsAttribute($node);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$node->setDocComment(new Doc((string) $phpDocNode));
|
|
||||||
}
|
|
||||||
private function setCommentsAttribute(Node $node) : void
|
private function setCommentsAttribute(Node $node) : void
|
||||||
{
|
{
|
||||||
if ($node->hasAttribute(AttributeKey::PREVIOUS_DOCS_AS_COMMENTS)) {
|
if ($node->hasAttribute(AttributeKey::PREVIOUS_DOCS_AS_COMMENTS)) {
|
||||||
|
@ -12,7 +12,6 @@ use Rector\FamilyTree\Reflection\FamilyRelationsAnalyzer;
|
|||||||
final class ClassChildAnalyzer
|
final class ClassChildAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\FamilyTree\Reflection\FamilyRelationsAnalyzer
|
* @var \Rector\FamilyTree\Reflection\FamilyRelationsAnalyzer
|
||||||
*/
|
*/
|
||||||
private $familyRelationsAnalyzer;
|
private $familyRelationsAnalyzer;
|
||||||
|
@ -14,22 +14,18 @@ use Rector\NodeNameResolver\NodeNameResolver;
|
|||||||
final class FamilyRelationsAnalyzer
|
final class FamilyRelationsAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
||||||
*/
|
*/
|
||||||
private $privatesAccessor;
|
private $privatesAccessor;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\AstResolver
|
* @var \Rector\Core\PhpParser\AstResolver
|
||||||
*/
|
*/
|
||||||
private $astResolver;
|
private $astResolver;
|
||||||
|
@ -15,17 +15,14 @@ use Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator;
|
|||||||
final class FileInfoParser
|
final class FileInfoParser
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator
|
* @var \Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator
|
||||||
*/
|
*/
|
||||||
private $nodeScopeAndMetadataDecorator;
|
private $nodeScopeAndMetadataDecorator;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\NodeTraverser\FileWithoutNamespaceNodeTraverser
|
* @var \Rector\Core\PhpParser\NodeTraverser\FileWithoutNamespaceNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $fileWithoutNamespaceNodeTraverser;
|
private $fileWithoutNamespaceNodeTraverser;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Parser\RectorParser
|
* @var \Rector\Core\PhpParser\Parser\RectorParser
|
||||||
*/
|
*/
|
||||||
private $rectorParser;
|
private $rectorParser;
|
||||||
|
@ -33,27 +33,22 @@ use Rector\NodeTypeResolver\NodeTypeResolver;
|
|||||||
final class ArrayCallableMethodMatcher
|
final class ArrayCallableMethodMatcher
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
||||||
*/
|
*/
|
||||||
private $nodeTypeResolver;
|
private $nodeTypeResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\Value\ValueResolver
|
* @var \Rector\Core\PhpParser\Node\Value\ValueResolver
|
||||||
*/
|
*/
|
||||||
private $valueResolver;
|
private $valueResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
|
@ -8,17 +8,14 @@ use Rector\Core\Validation\RectorAssert;
|
|||||||
final class ArrayCallable
|
final class ArrayCallable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PhpParser\Node\Expr
|
* @var \PhpParser\Node\Expr
|
||||||
*/
|
*/
|
||||||
private $callerExpr;
|
private $callerExpr;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $class;
|
private $class;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $method;
|
private $method;
|
||||||
|
@ -11,17 +11,14 @@ use Rector\Core\Validation\RectorAssert;
|
|||||||
final class ArrayCallableDynamicMethod
|
final class ArrayCallableDynamicMethod
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PhpParser\Node\Expr
|
* @var \PhpParser\Node\Expr
|
||||||
*/
|
*/
|
||||||
private $callerExpr;
|
private $callerExpr;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $class;
|
private $class;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PhpParser\Node\Expr
|
* @var \PhpParser\Node\Expr
|
||||||
*/
|
*/
|
||||||
private $method;
|
private $method;
|
||||||
|
@ -21,23 +21,19 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||||||
final class NodeNameResolver
|
final class NodeNameResolver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\Regex\RegexPatternDetector
|
* @var \Rector\NodeNameResolver\Regex\RegexPatternDetector
|
||||||
*/
|
*/
|
||||||
private $regexPatternDetector;
|
private $regexPatternDetector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\CodingStyle\Naming\ClassNaming
|
* @var \Rector\CodingStyle\Naming\ClassNaming
|
||||||
*/
|
*/
|
||||||
private $classNaming;
|
private $classNaming;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\NodeAnalyzer\CallAnalyzer
|
* @var \Rector\Core\NodeAnalyzer\CallAnalyzer
|
||||||
*/
|
*/
|
||||||
private $callAnalyzer;
|
private $callAnalyzer;
|
||||||
/**
|
/**
|
||||||
* @var NodeNameResolverInterface[]
|
* @var NodeNameResolverInterface[]
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolvers = [];
|
private $nodeNameResolvers = [];
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +17,6 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||||||
final class FuncCallNameResolver implements NodeNameResolverInterface
|
final class FuncCallNameResolver implements NodeNameResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
|
@ -15,7 +15,6 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||||||
final class NameNameResolver implements NodeNameResolverInterface
|
final class NameNameResolver implements NodeNameResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver\FuncCallNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver\FuncCallNameResolver
|
||||||
*/
|
*/
|
||||||
private $funcCallNameResolver;
|
private $funcCallNameResolver;
|
||||||
|
@ -13,7 +13,6 @@ use Rector\NodeNestingScope\ValueObject\ControlStructure;
|
|||||||
final class ContextAnalyzer
|
final class ContextAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
|
@ -13,7 +13,6 @@ use Rector\Core\PhpParser\Node\BetterNodeFinder;
|
|||||||
final class ParentScopeFinder
|
final class ParentScopeFinder
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
|
@ -14,12 +14,10 @@ use Rector\NodeNestingScope\ValueObject\ControlStructure;
|
|||||||
final class ScopeNestingComparator
|
final class ScopeNestingComparator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Comparing\NodeComparator
|
* @var \Rector\Core\PhpParser\Comparing\NodeComparator
|
||||||
*/
|
*/
|
||||||
private $nodeComparator;
|
private $nodeComparator;
|
||||||
|
@ -25,12 +25,10 @@ use RectorPrefix202306\Symfony\Component\Filesystem\Filesystem;
|
|||||||
final class PHPStanServicesFactory
|
final class PHPStanServicesFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\Parameter\ParameterProvider
|
* @var \Rector\Core\Configuration\Parameter\ParameterProvider
|
||||||
*/
|
*/
|
||||||
private $parameterProvider;
|
private $parameterProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\DependencyInjection\PHPStanExtensionsConfigResolver
|
* @var \Rector\NodeTypeResolver\DependencyInjection\PHPStanExtensionsConfigResolver
|
||||||
*/
|
*/
|
||||||
private $phpStanExtensionsConfigResolver;
|
private $phpStanExtensionsConfigResolver;
|
||||||
|
@ -13,7 +13,6 @@ use Rector\NodeTypeResolver\PHPStan\Scope\PHPStanNodeScopeResolver;
|
|||||||
final class NodeScopeAndMetadataDecorator
|
final class NodeScopeAndMetadataDecorator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\PHPStan\Scope\PHPStanNodeScopeResolver
|
* @var \Rector\NodeTypeResolver\PHPStan\Scope\PHPStanNodeScopeResolver
|
||||||
*/
|
*/
|
||||||
private $phpStanNodeScopeResolver;
|
private $phpStanNodeScopeResolver;
|
||||||
|
@ -12,7 +12,6 @@ use PHPStan\Type\TypeTraverser;
|
|||||||
final class GenericClassStringTypeCorrector
|
final class GenericClassStringTypeCorrector
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
|
@ -43,32 +43,26 @@ use Rector\TypeDeclaration\PHPStan\ObjectTypeSpecifier;
|
|||||||
final class NodeTypeResolver
|
final class NodeTypeResolver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\TypeDeclaration\PHPStan\ObjectTypeSpecifier
|
* @var \Rector\TypeDeclaration\PHPStan\ObjectTypeSpecifier
|
||||||
*/
|
*/
|
||||||
private $objectTypeSpecifier;
|
private $objectTypeSpecifier;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
||||||
*/
|
*/
|
||||||
private $classAnalyzer;
|
private $classAnalyzer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\GenericClassStringTypeCorrector
|
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\GenericClassStringTypeCorrector
|
||||||
*/
|
*/
|
||||||
private $genericClassStringTypeCorrector;
|
private $genericClassStringTypeCorrector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\AccessoryNonEmptyStringTypeCorrector
|
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\AccessoryNonEmptyStringTypeCorrector
|
||||||
*/
|
*/
|
||||||
private $accessoryNonEmptyStringTypeCorrector;
|
private $accessoryNonEmptyStringTypeCorrector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\RenamedClassesDataCollector
|
* @var \Rector\Core\Configuration\RenamedClassesDataCollector
|
||||||
*/
|
*/
|
||||||
private $renamedClassesDataCollector;
|
private $renamedClassesDataCollector;
|
||||||
|
@ -23,7 +23,6 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||||||
final class ClassAndInterfaceTypeResolver implements NodeTypeResolverInterface
|
final class ClassAndInterfaceTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
|
@ -19,7 +19,6 @@ use RectorPrefix202306\Symfony\Contracts\Service\Attribute\Required;
|
|||||||
final class ClassMethodOrClassConstTypeResolver implements NodeTypeResolverInterface
|
final class ClassMethodOrClassConstTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
|
@ -26,17 +26,14 @@ use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
|||||||
final class NameTypeResolver implements NodeTypeResolverInterface
|
final class NameTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
|
@ -25,12 +25,10 @@ use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
|
|||||||
final class NewTypeResolver implements NodeTypeResolverInterface
|
final class NewTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
||||||
*/
|
*/
|
||||||
private $classAnalyzer;
|
private $classAnalyzer;
|
||||||
|
@ -31,22 +31,18 @@ use RectorPrefix202306\Symfony\Contracts\Service\Attribute\Required;
|
|||||||
final class ParamTypeResolver implements NodeTypeResolverInterface
|
final class ParamTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $simpleCallableNodeTraverser;
|
private $simpleCallableNodeTraverser;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||||
*/
|
*/
|
||||||
private $phpDocInfoFactory;
|
private $phpDocInfoFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
|
@ -25,17 +25,14 @@ use RectorPrefix202306\Symfony\Contracts\Service\Attribute\Required;
|
|||||||
final class PropertyFetchTypeResolver implements NodeTypeResolverInterface
|
final class PropertyFetchTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
|
@ -23,12 +23,10 @@ use RectorPrefix202306\Symfony\Contracts\Service\Attribute\Required;
|
|||||||
final class StaticCallMethodCallTypeResolver implements NodeTypeResolverInterface
|
final class StaticCallMethodCallTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
|
@ -19,7 +19,6 @@ use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
|||||||
final class TraitTypeResolver implements NodeTypeResolverInterface
|
final class TraitTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
|
@ -20,12 +20,10 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||||||
final class VariableTypeResolver implements NodeTypeResolverInterface
|
final class VariableTypeResolver implements NodeTypeResolverInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||||
*/
|
*/
|
||||||
private $phpDocInfoFactory;
|
private $phpDocInfoFactory;
|
||||||
|
@ -10,7 +10,6 @@ final class ObjectWithoutClassTypeWithParentTypes extends ObjectWithoutClassType
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var TypeWithClassName[]
|
* @var TypeWithClassName[]
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
private $parentTypes;
|
private $parentTypes;
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,6 @@ use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
|
|||||||
final class ByRefReturnNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
final class ByRefReturnNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $simpleCallableNodeTraverser;
|
private $simpleCallableNodeTraverser;
|
||||||
|
@ -16,7 +16,6 @@ use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
|
|||||||
final class ByRefVariableNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
final class ByRefVariableNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $simpleCallableNodeTraverser;
|
private $simpleCallableNodeTraverser;
|
||||||
|
@ -17,7 +17,6 @@ use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
|
|||||||
final class GlobalVariableNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
final class GlobalVariableNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $simpleCallableNodeTraverser;
|
private $simpleCallableNodeTraverser;
|
||||||
|
@ -19,7 +19,6 @@ use Rector\NodeTypeResolver\PHPStan\Scope\Contract\NodeVisitor\ScopeResolverNode
|
|||||||
final class RemoveDeepChainMethodCallNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
final class RemoveDeepChainMethodCallNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
|
@ -17,7 +17,6 @@ use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
|
|||||||
final class StaticVariableNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
final class StaticVariableNodeVisitor extends NodeVisitorAbstract implements ScopeResolverNodeVisitorInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
* @var \Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $simpleCallableNodeTraverser;
|
private $simpleCallableNodeTraverser;
|
||||||
|
@ -61,47 +61,38 @@ use RectorPrefix202306\Webmozart\Assert\Assert;
|
|||||||
final class PHPStanNodeScopeResolver
|
final class PHPStanNodeScopeResolver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Caching\Detector\ChangedFilesDetector
|
* @var \Rector\Caching\Detector\ChangedFilesDetector
|
||||||
*/
|
*/
|
||||||
private $changedFilesDetector;
|
private $changedFilesDetector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Caching\FileSystem\DependencyResolver
|
* @var \Rector\Caching\FileSystem\DependencyResolver
|
||||||
*/
|
*/
|
||||||
private $dependencyResolver;
|
private $dependencyResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Analyser\NodeScopeResolver
|
* @var \PHPStan\Analyser\NodeScopeResolver
|
||||||
*/
|
*/
|
||||||
private $nodeScopeResolver;
|
private $nodeScopeResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\PHPStan\Scope\ScopeFactory
|
* @var \Rector\NodeTypeResolver\PHPStan\Scope\ScopeFactory
|
||||||
*/
|
*/
|
||||||
private $scopeFactory;
|
private $scopeFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
* @var \Rector\Core\Util\Reflection\PrivatesAccessor
|
||||||
*/
|
*/
|
||||||
private $privatesAccessor;
|
private $privatesAccessor;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
|
||||||
*/
|
*/
|
||||||
private $classAnalyzer;
|
private $classAnalyzer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\NodeTraverser\FileWithoutNamespaceNodeTraverser
|
* @var \Rector\Core\PhpParser\NodeTraverser\FileWithoutNamespaceNodeTraverser
|
||||||
*/
|
*/
|
||||||
private $fileWithoutNamespaceNodeTraverser;
|
private $fileWithoutNamespaceNodeTraverser;
|
||||||
|
@ -9,7 +9,6 @@ use PHPStan\Analyser\ScopeFactory as PHPStanScopeFactory;
|
|||||||
final class ScopeFactory
|
final class ScopeFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var PHPStanScopeFactory
|
* @var PHPStanScopeFactory
|
||||||
*/
|
*/
|
||||||
private $phpStanScopeFactory;
|
private $phpStanScopeFactory;
|
||||||
|
@ -15,7 +15,6 @@ use Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeAnalyzer;
|
|||||||
final class StaticTypeAnalyzer
|
final class StaticTypeAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeAnalyzer
|
* @var \Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeAnalyzer
|
||||||
*/
|
*/
|
||||||
private $unionTypeAnalyzer;
|
private $unionTypeAnalyzer;
|
||||||
|
@ -21,7 +21,6 @@ use Rector\NodeTypeResolver\PHPStan\TypeHasher;
|
|||||||
final class TypeFactory
|
final class TypeFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\PHPStan\TypeHasher
|
* @var \Rector\NodeTypeResolver\PHPStan\TypeHasher
|
||||||
*/
|
*/
|
||||||
private $typeHasher;
|
private $typeHasher;
|
||||||
|
@ -10,7 +10,6 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeTraverser;
|
|||||||
final class DocBlockClassRenamer
|
final class DocBlockClassRenamer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\PhpDocNodeVisitor\ClassRenamePhpDocNodeVisitor
|
* @var \Rector\NodeTypeResolver\PhpDocNodeVisitor\ClassRenamePhpDocNodeVisitor
|
||||||
*/
|
*/
|
||||||
private $classRenamePhpDocNodeVisitor;
|
private $classRenamePhpDocNodeVisitor;
|
||||||
|
@ -10,7 +10,6 @@ use Rector\PhpDocParser\PhpDocParser\PhpDocNodeTraverser;
|
|||||||
final class DocBlockNameImporter
|
final class DocBlockNameImporter
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\PhpDocNodeVisitor\NameImportingPhpDocNodeVisitor
|
* @var \Rector\NodeTypeResolver\PhpDocNodeVisitor\NameImportingPhpDocNodeVisitor
|
||||||
*/
|
*/
|
||||||
private $nameImportingPhpDocNodeVisitor;
|
private $nameImportingPhpDocNodeVisitor;
|
||||||
|
@ -10,7 +10,6 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
|||||||
final class DocBlockTagReplacer
|
final class DocBlockTagReplacer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
* @var \Rector\BetterPhpDocParser\Annotation\AnnotationNaming
|
||||||
*/
|
*/
|
||||||
private $annotationNaming;
|
private $annotationNaming;
|
||||||
|
@ -12,7 +12,6 @@ use Rector\StaticTypeMapper\StaticTypeMapper;
|
|||||||
final class PhpDocTypeRenamer
|
final class PhpDocTypeRenamer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
|
@ -29,32 +29,26 @@ use Rector\StaticTypeMapper\ValueObject\Type\ShortenedObjectType;
|
|||||||
final class ClassRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
final class ClassRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
* @var \Rector\Core\Configuration\CurrentNodeProvider
|
||||||
*/
|
*/
|
||||||
private $currentNodeProvider;
|
private $currentNodeProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Naming\Naming\UseImportsResolver
|
* @var \Rector\Naming\Naming\UseImportsResolver
|
||||||
*/
|
*/
|
||||||
private $useImportsResolver;
|
private $useImportsResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\RectorConfigProvider
|
* @var \Rector\Core\Configuration\RectorConfigProvider
|
||||||
*/
|
*/
|
||||||
private $rectorConfigProvider;
|
private $rectorConfigProvider;
|
||||||
|
@ -26,32 +26,26 @@ use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
|
|||||||
final class NameImportingPhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
final class NameImportingPhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Configuration\Parameter\ParameterProvider
|
* @var \Rector\Core\Configuration\Parameter\ParameterProvider
|
||||||
*/
|
*/
|
||||||
private $parameterProvider;
|
private $parameterProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\CodingStyle\ClassNameImport\ClassNameImportSkipper
|
* @var \Rector\CodingStyle\ClassNameImport\ClassNameImportSkipper
|
||||||
*/
|
*/
|
||||||
private $classNameImportSkipper;
|
private $classNameImportSkipper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PostRector\Collector\UseNodesToAddCollector
|
* @var \Rector\PostRector\Collector\UseNodesToAddCollector
|
||||||
*/
|
*/
|
||||||
private $useNodesToAddCollector;
|
private $useNodesToAddCollector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Provider\CurrentFileProvider
|
* @var \Rector\Core\Provider\CurrentFileProvider
|
||||||
*/
|
*/
|
||||||
private $currentFileProvider;
|
private $currentFileProvider;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
|
@ -13,17 +13,14 @@ use Rector\StaticTypeMapper\StaticTypeMapper;
|
|||||||
final class UnderscoreRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
final class UnderscoreRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Renaming\ValueObject\PseudoNamespaceToNamespace
|
* @var \Rector\Renaming\ValueObject\PseudoNamespaceToNamespace
|
||||||
*/
|
*/
|
||||||
private $pseudoNamespaceToNamespace;
|
private $pseudoNamespaceToNamespace;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PhpParser\Node
|
* @var \PhpParser\Node
|
||||||
*/
|
*/
|
||||||
private $phpNode;
|
private $phpNode;
|
||||||
|
@ -13,12 +13,10 @@ use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\Intermedia
|
|||||||
final class RectorBetterReflectionSourceLocatorFactory
|
final class RectorBetterReflectionSourceLocatorFactory
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\BetterReflection\BetterReflectionSourceLocatorFactory
|
* @var \PHPStan\Reflection\BetterReflection\BetterReflectionSourceLocatorFactory
|
||||||
*/
|
*/
|
||||||
private $betterReflectionSourceLocatorFactory;
|
private $betterReflectionSourceLocatorFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator
|
* @var \Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator
|
||||||
*/
|
*/
|
||||||
private $intermediateSourceLocator;
|
private $intermediateSourceLocator;
|
||||||
|
@ -12,7 +12,6 @@ use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\Dy
|
|||||||
final class IntermediateSourceLocator implements SourceLocator
|
final class IntermediateSourceLocator implements SourceLocator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider
|
* @var \Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider
|
||||||
*/
|
*/
|
||||||
private $dynamicSourceLocatorProvider;
|
private $dynamicSourceLocatorProvider;
|
||||||
|
@ -17,12 +17,10 @@ use RectorPrefix202306\Webmozart\Assert\Assert;
|
|||||||
final class DynamicSourceLocatorProvider
|
final class DynamicSourceLocatorProvider
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\BetterReflection\SourceLocator\FileNodesFetcher
|
* @var \PHPStan\Reflection\BetterReflection\SourceLocator\FileNodesFetcher
|
||||||
*/
|
*/
|
||||||
private $fileNodesFetcher;
|
private $fileNodesFetcher;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Php\PhpVersion
|
* @var \PHPStan\Php\PhpVersion
|
||||||
*/
|
*/
|
||||||
private $phpVersion;
|
private $phpVersion;
|
||||||
|
@ -27,27 +27,22 @@ use Rector\NodeTypeResolver\NodeTypeResolver;
|
|||||||
final class ArrayTypeAnalyzer
|
final class ArrayTypeAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||||
*/
|
*/
|
||||||
private $nodeNameResolver;
|
private $nodeNameResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
||||||
*/
|
*/
|
||||||
private $nodeTypeResolver;
|
private $nodeTypeResolver;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||||
*/
|
*/
|
||||||
private $betterNodeFinder;
|
private $betterNodeFinder;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
* @var \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory
|
||||||
*/
|
*/
|
||||||
private $phpDocInfoFactory;
|
private $phpDocInfoFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Reflection\ReflectionResolver
|
* @var \Rector\Core\Reflection\ReflectionResolver
|
||||||
*/
|
*/
|
||||||
private $reflectionResolver;
|
private $reflectionResolver;
|
||||||
|
@ -9,12 +9,10 @@ use Rector\NodeTypeResolver\NodeTypeResolver;
|
|||||||
final class CountableTypeAnalyzer
|
final class CountableTypeAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer
|
* @var \Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer
|
||||||
*/
|
*/
|
||||||
private $arrayTypeAnalyzer;
|
private $arrayTypeAnalyzer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
||||||
*/
|
*/
|
||||||
private $nodeTypeResolver;
|
private $nodeTypeResolver;
|
||||||
|
@ -8,7 +8,6 @@ use Rector\NodeTypeResolver\NodeTypeResolver;
|
|||||||
final class StringTypeAnalyzer
|
final class StringTypeAnalyzer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
* @var \Rector\NodeTypeResolver\NodeTypeResolver
|
||||||
*/
|
*/
|
||||||
private $nodeTypeResolver;
|
private $nodeTypeResolver;
|
||||||
|
@ -14,7 +14,6 @@ use Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeCommonTypeNarrower;
|
|||||||
final class ArrayTypeComparator
|
final class ArrayTypeComparator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeCommonTypeNarrower
|
* @var \Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeCommonTypeNarrower
|
||||||
*/
|
*/
|
||||||
private $unionTypeCommonTypeNarrower;
|
private $unionTypeCommonTypeNarrower;
|
||||||
|
@ -31,37 +31,30 @@ use Rector\TypeDeclaration\TypeNormalizer;
|
|||||||
final class TypeComparator
|
final class TypeComparator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\PHPStan\TypeHasher
|
* @var \Rector\NodeTypeResolver\PHPStan\TypeHasher
|
||||||
*/
|
*/
|
||||||
private $typeHasher;
|
private $typeHasher;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\TypeDeclaration\TypeNormalizer
|
* @var \Rector\TypeDeclaration\TypeNormalizer
|
||||||
*/
|
*/
|
||||||
private $typeNormalizer;
|
private $typeNormalizer;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||||
*/
|
*/
|
||||||
private $staticTypeMapper;
|
private $staticTypeMapper;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\TypeComparator\ArrayTypeComparator
|
* @var \Rector\NodeTypeResolver\TypeComparator\ArrayTypeComparator
|
||||||
*/
|
*/
|
||||||
private $arrayTypeComparator;
|
private $arrayTypeComparator;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\TypeComparator\ScalarTypeComparator
|
* @var \Rector\NodeTypeResolver\TypeComparator\ScalarTypeComparator
|
||||||
*/
|
*/
|
||||||
private $scalarTypeComparator;
|
private $scalarTypeComparator;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\PHPStan\Type\TypeFactory
|
* @var \Rector\NodeTypeResolver\PHPStan\Type\TypeFactory
|
||||||
*/
|
*/
|
||||||
private $typeFactory;
|
private $typeFactory;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Reflection\ReflectionResolver
|
* @var \Rector\Core\Reflection\ReflectionResolver
|
||||||
*/
|
*/
|
||||||
private $reflectionResolver;
|
private $reflectionResolver;
|
||||||
|
@ -7,12 +7,10 @@ use PHPStan\Type\Type;
|
|||||||
final class OldToNewType
|
final class OldToNewType
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Type\Type
|
* @var \PHPStan\Type\Type
|
||||||
*/
|
*/
|
||||||
private $oldType;
|
private $oldType;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Type\Type
|
* @var \PHPStan\Type\Type
|
||||||
*/
|
*/
|
||||||
private $newType;
|
private $newType;
|
||||||
|
@ -18,7 +18,6 @@ final class PHPStanStaticTypeMapper
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var TypeMapperInterface[]
|
* @var TypeMapperInterface[]
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
private $typeMappers;
|
private $typeMappers;
|
||||||
/**
|
/**
|
||||||
|
@ -21,12 +21,10 @@ use Rector\NodeTypeResolver\NodeTypeCorrector\GenericClassStringTypeCorrector;
|
|||||||
final class UnionTypeCommonTypeNarrower
|
final class UnionTypeCommonTypeNarrower
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\GenericClassStringTypeCorrector
|
* @var \Rector\NodeTypeResolver\NodeTypeCorrector\GenericClassStringTypeCorrector
|
||||||
*/
|
*/
|
||||||
private $genericClassStringTypeCorrector;
|
private $genericClassStringTypeCorrector;
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \PHPStan\Reflection\ReflectionProvider
|
* @var \PHPStan\Reflection\ReflectionProvider
|
||||||
*/
|
*/
|
||||||
private $reflectionProvider;
|
private $reflectionProvider;
|
||||||
|
@ -18,7 +18,6 @@ use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
|||||||
final class AccessoryLiteralStringTypeMapper implements TypeMapperInterface
|
final class AccessoryLiteralStringTypeMapper implements TypeMapperInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Php\PhpVersionProvider
|
* @var \Rector\Core\Php\PhpVersionProvider
|
||||||
*/
|
*/
|
||||||
private $phpVersionProvider;
|
private $phpVersionProvider;
|
||||||
|
@ -18,7 +18,6 @@ use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
|||||||
final class AccessoryNonEmptyStringTypeMapper implements TypeMapperInterface
|
final class AccessoryNonEmptyStringTypeMapper implements TypeMapperInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Php\PhpVersionProvider
|
* @var \Rector\Core\Php\PhpVersionProvider
|
||||||
*/
|
*/
|
||||||
private $phpVersionProvider;
|
private $phpVersionProvider;
|
||||||
|
@ -18,7 +18,6 @@ use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
|||||||
final class AccessoryNonFalsyStringTypeMapper implements TypeMapperInterface
|
final class AccessoryNonFalsyStringTypeMapper implements TypeMapperInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Php\PhpVersionProvider
|
* @var \Rector\Core\Php\PhpVersionProvider
|
||||||
*/
|
*/
|
||||||
private $phpVersionProvider;
|
private $phpVersionProvider;
|
||||||
|
@ -18,7 +18,6 @@ use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
|||||||
final class AccessoryNumericStringTypeMapper implements TypeMapperInterface
|
final class AccessoryNumericStringTypeMapper implements TypeMapperInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @readonly
|
|
||||||
* @var \Rector\Core\Php\PhpVersionProvider
|
* @var \Rector\Core\Php\PhpVersionProvider
|
||||||
*/
|
*/
|
||||||
private $phpVersionProvider;
|
private $phpVersionProvider;
|
||||||
|
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