mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 877cbb2de8
877cbb2de8
fix(scoper): prefix vendor classes from PHPDoc, close #6614 (#739)
This commit is contained in:
parent
ee01133ea8
commit
674f76ced2
|
@ -10,7 +10,7 @@ use RectorPrefix20210822\Symplify\Astral\NodeTraverser\SimpleCallableNodeTravers
|
|||
final class CommentsMerger
|
||||
{
|
||||
/**
|
||||
* @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
* @var \RectorPrefix20210822\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
*/
|
||||
private $simpleCallableNodeTraverser;
|
||||
public function __construct(\RectorPrefix20210822\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser $simpleCallableNodeTraverser)
|
||||
|
|
|
@ -10,7 +10,7 @@ use Stringable;
|
|||
final class DoctrineAnnotationTagValueNode extends \Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation\AbstractValuesAwareNode
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode
|
||||
* @var \RectorPrefix20210822\PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode
|
||||
*/
|
||||
public $identifierTypeNode;
|
||||
/**
|
||||
|
|
|
@ -44,7 +44,7 @@ final class PhpDocInfo
|
|||
*/
|
||||
private $isSingleLine = \false;
|
||||
/**
|
||||
* @var \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
* @var \RectorPrefix20210822\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
*/
|
||||
private $originalPhpDocNode;
|
||||
/**
|
||||
|
@ -52,7 +52,7 @@ final class PhpDocInfo
|
|||
*/
|
||||
private $hasChanged = \false;
|
||||
/**
|
||||
* @var \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
* @var \RectorPrefix20210822\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
*/
|
||||
private $phpDocNode;
|
||||
/**
|
||||
|
@ -64,7 +64,7 @@ final class PhpDocInfo
|
|||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @var \PhpParser\Node
|
||||
* @var \RectorPrefix20210822\PhpParser\Node
|
||||
*/
|
||||
private $node;
|
||||
/**
|
||||
|
|
|
@ -33,7 +33,7 @@ final class PhpDocInfoFactory
|
|||
*/
|
||||
private $currentNodeProvider;
|
||||
/**
|
||||
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
||||
* @var \RectorPrefix20210822\PHPStan\PhpDocParser\Lexer\Lexer
|
||||
*/
|
||||
private $lexer;
|
||||
/**
|
||||
|
|
|
@ -14,11 +14,11 @@ final class TokenIteratorFactory
|
|||
*/
|
||||
private const INDEX = 'index';
|
||||
/**
|
||||
* @var \PHPStan\PhpDocParser\Lexer\Lexer
|
||||
* @var \RectorPrefix20210822\PHPStan\PhpDocParser\Lexer\Lexer
|
||||
*/
|
||||
private $lexer;
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
public function __construct(\PHPStan\PhpDocParser\Lexer\Lexer $lexer, \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
|
||||
|
|
|
@ -20,11 +20,11 @@ final class PhpDocNodeMapper
|
|||
*/
|
||||
private $currentTokenIteratorProvider;
|
||||
/**
|
||||
* @var \Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor
|
||||
* @var \RectorPrefix20210822\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor
|
||||
*/
|
||||
private $parentConnectingPhpDocNodeVisitor;
|
||||
/**
|
||||
* @var \Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor
|
||||
* @var \RectorPrefix20210822\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor
|
||||
*/
|
||||
private $cloningPhpDocNodeVisitor;
|
||||
/**
|
||||
|
|
|
@ -24,7 +24,7 @@ use RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
|||
final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
|
||||
{
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesCaller
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesCaller
|
||||
*/
|
||||
private $privatesCaller;
|
||||
/**
|
||||
|
@ -43,7 +43,7 @@ final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
|
|||
$this->privatesCaller = new \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesCaller();
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
* @param \RectorPrefix20210822\PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
*/
|
||||
public function parse($tokenIterator) : \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
|
|||
return $phpDocNode;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
* @param \RectorPrefix20210822\PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
*/
|
||||
public function parseTag($tokenIterator) : \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
|
|||
return new \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode($tag, $phpDocTagValueNode);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
* @param \RectorPrefix20210822\PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
* @param string $tag
|
||||
*/
|
||||
public function parseTagValue($tokenIterator, $tag) : \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagValueNode
|
||||
|
|
|
@ -22,7 +22,7 @@ final class BetterTypeParser extends \PHPStan\PhpDocParser\Parser\TypeParser
|
|||
parent::__construct($constExprParser);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
* @param \RectorPrefix20210822\PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator
|
||||
*/
|
||||
public function parse($tokenIterator) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ final class ClassAnnotationMatcher
|
|||
*/
|
||||
private $useImportNameMatcher;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\Rector\CodingStyle\NodeAnalyzer\UseImportNameMatcher $useImportNameMatcher, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -73,7 +73,7 @@ final class PhpDocInfoPrinter
|
|||
*/
|
||||
private $phpDocInfo;
|
||||
/**
|
||||
* @var \Symplify\SimplePhpDocParser\PhpDocNodeTraverser
|
||||
* @var \RectorPrefix20210822\Symplify\SimplePhpDocParser\PhpDocNodeTraverser
|
||||
*/
|
||||
private $changedPhpDocNodeTraverser;
|
||||
/**
|
||||
|
|
|
@ -17,7 +17,7 @@ final class BetterTokenIterator extends \PHPStan\PhpDocParser\Parser\TokenIterat
|
|||
*/
|
||||
private const INDEX = 'index';
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
/**
|
||||
|
|
|
@ -11,11 +11,11 @@ use RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem;
|
|||
final class CacheFactory
|
||||
{
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
*/
|
||||
private $parameterProvider;
|
||||
/**
|
||||
* @var \Symplify\SmartFileSystem\SmartFileSystem
|
||||
* @var \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem
|
||||
*/
|
||||
private $smartFileSystem;
|
||||
public function __construct(\RectorPrefix20210822\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
|
||||
|
|
|
@ -12,7 +12,7 @@ use RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
|||
final class DependencyResolver
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Analyser\NodeScopeResolver
|
||||
* @var \RectorPrefix20210822\PHPStan\Analyser\NodeScopeResolver
|
||||
*/
|
||||
private $nodeScopeResolver;
|
||||
/**
|
||||
|
@ -20,11 +20,11 @@ final class DependencyResolver
|
|||
*/
|
||||
private $phpStanDependencyResolver;
|
||||
/**
|
||||
* @var \PHPStan\File\FileHelper
|
||||
* @var \RectorPrefix20210822\PHPStan\File\FileHelper
|
||||
*/
|
||||
private $fileHelper;
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
public function __construct(\PHPStan\Analyser\NodeScopeResolver $nodeScopeResolver, \PHPStan\Dependency\DependencyResolver $phpStanDependencyResolver, \PHPStan\File\FileHelper $fileHelper, \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
|
||||
|
|
|
@ -20,7 +20,7 @@ final class FileCacheStorage implements \Rector\Caching\Contract\ValueObject\Sto
|
|||
*/
|
||||
private $directory;
|
||||
/**
|
||||
* @var \Symplify\SmartFileSystem\SmartFileSystem
|
||||
* @var \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem
|
||||
*/
|
||||
private $smartFileSystem;
|
||||
public function __construct(string $directory, \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
|
||||
|
|
|
@ -14,7 +14,7 @@ final class FileDiffFactory
|
|||
*/
|
||||
private $defaultDiffer;
|
||||
/**
|
||||
* @var \Symplify\ConsoleColorDiff\Console\Output\ConsoleDiffer
|
||||
* @var \RectorPrefix20210822\Symplify\ConsoleColorDiff\Console\Output\ConsoleDiffer
|
||||
*/
|
||||
private $consoleDiffer;
|
||||
public function __construct(\Rector\Core\Differ\DefaultDiffer $defaultDiffer, \RectorPrefix20210822\Symplify\ConsoleColorDiff\Console\Output\ConsoleDiffer $consoleDiffer)
|
||||
|
|
|
@ -34,11 +34,11 @@ use RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem;
|
|||
final class FamilyRelationsAnalyzer
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
/**
|
||||
|
@ -46,7 +46,7 @@ final class FamilyRelationsAnalyzer
|
|||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @var \Symplify\SmartFileSystem\SmartFileSystem
|
||||
* @var \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem
|
||||
*/
|
||||
private $smartFileSystem;
|
||||
/**
|
||||
|
@ -62,7 +62,7 @@ final class FamilyRelationsAnalyzer
|
|||
*/
|
||||
private $astResolver;
|
||||
/**
|
||||
* @var \PhpParser\Parser
|
||||
* @var \RectorPrefix20210822\PhpParser\Parser
|
||||
*/
|
||||
private $parser;
|
||||
public function __construct(\PHPStan\Reflection\ReflectionProvider $reflectionProvider, \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor, \Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem, \Rector\Core\PhpParser\Node\BetterNodeFinder $betterNodeFinder, \Rector\StaticTypeMapper\StaticTypeMapper $staticTypeMapper, \Rector\Core\PhpParser\AstResolver $astResolver, \PhpParser\Parser $parser)
|
||||
|
@ -93,7 +93,7 @@ final class FamilyRelationsAnalyzer
|
|||
return $childrenClassReflections;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Name|\PhpParser\Node\NullableType|PhpParserUnionType|null $propertyTypeNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Name|\PhpParser\Node\NullableType|PhpParserUnionType|null $propertyTypeNode
|
||||
*/
|
||||
public function getPossibleUnionPropertyType(\PhpParser\Node\Stmt\Property $property, \PHPStan\Type\Type $varType, ?\PHPStan\Analyser\Scope $scope, $propertyTypeNode) : \Rector\FamilyTree\ValueObject\PropertyType
|
||||
{
|
||||
|
@ -137,7 +137,7 @@ final class FamilyRelationsAnalyzer
|
|||
}
|
||||
/**
|
||||
* @return string[]
|
||||
* @param \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Name $classOrName
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Name $classOrName
|
||||
*/
|
||||
public function getClassLikeAncestorNames($classOrName) : array
|
||||
{
|
||||
|
|
|
@ -11,11 +11,11 @@ use PHPStan\Type\Type;
|
|||
final class PropertyType
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Type\Type
|
||||
* @var \RectorPrefix20210822\PHPStan\Type\Type
|
||||
*/
|
||||
private $varType;
|
||||
/**
|
||||
* @var \PhpParser\Node\Name|\PhpParser\Node\NullableType|PhpParserUnionType|null
|
||||
* @var \RectorPrefix20210822\PhpParser\Node\Name|\PhpParser\Node\NullableType|PhpParserUnionType|null
|
||||
*/
|
||||
private $propertyTypeNode;
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,7 @@ use Rector\FileFormatter\ValueObjectFactory\EditorConfigConfigurationBuilder;
|
|||
final class EditorConfigParser
|
||||
{
|
||||
/**
|
||||
* @var \Idiosyncratic\EditorConfig\EditorConfig
|
||||
* @var \RectorPrefix20210822\Idiosyncratic\EditorConfig\EditorConfig
|
||||
*/
|
||||
private $editorConfig;
|
||||
public function __construct(\RectorPrefix20210822\Idiosyncratic\EditorConfig\EditorConfig $editorConfig)
|
||||
|
|
|
@ -21,7 +21,7 @@ final class FileFormatter
|
|||
*/
|
||||
private $editorConfigParser;
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
*/
|
||||
private $parameterProvider;
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,7 @@ use Rector\FileFormatter\ValueObjectFactory\EditorConfigConfigurationBuilder;
|
|||
final class JsonFileFormatter implements \Rector\FileFormatter\Contract\Formatter\FileFormatterInterface
|
||||
{
|
||||
/**
|
||||
* @var \Ergebnis\Json\Printer\PrinterInterface
|
||||
* @var \RectorPrefix20210822\Ergebnis\Json\Printer\PrinterInterface
|
||||
*/
|
||||
private $jsonPrinter;
|
||||
public function __construct(\RectorPrefix20210822\Ergebnis\Json\Printer\PrinterInterface $jsonPrinter)
|
||||
|
|
|
@ -13,7 +13,7 @@ final class AddedFileWithNodes implements \Rector\FileSystemRector\Contract\Adde
|
|||
*/
|
||||
private $filePath;
|
||||
/**
|
||||
* @var \PhpParser\Node[]
|
||||
* @var \RectorPrefix20210822\PhpParser\Node[]
|
||||
*/
|
||||
private $nodes;
|
||||
/**
|
||||
|
|
|
@ -34,7 +34,7 @@ final class ArrayCallableMethodMatcher
|
|||
*/
|
||||
private $valueResolver;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \Rector\NodeTypeResolver\NodeTypeResolver $nodeTypeResolver, \Rector\Core\PhpParser\Node\Value\ValueResolver $valueResolver, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -10,7 +10,7 @@ use PHPStan\Reflection\ReflectionProvider;
|
|||
final class StaticAnalyzer
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -7,7 +7,7 @@ use PhpParser\Node\Expr;
|
|||
final class ArrayCallable
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Expr
|
||||
* @var \RectorPrefix20210822\PhpParser\Node\Expr
|
||||
*/
|
||||
private $callerExpr;
|
||||
/**
|
||||
|
|
|
@ -31,7 +31,7 @@ final class InvalidNameNodeReporter
|
|||
$this->betterStandardPrinter = $betterStandardPrinter;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
|
||||
*/
|
||||
public function reportInvalidNodeForName($node) : void
|
||||
{
|
||||
|
|
|
@ -101,7 +101,7 @@ final class NodeNameResolver
|
|||
return $name === $resolvedName;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node|string $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node|string $node
|
||||
*/
|
||||
public function getName($node) : ?string
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||
final class FuncCallNameResolver implements \Rector\NodeNameResolver\Contract\NodeNameResolverInterface
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -43,7 +43,7 @@ final class NodeRemover
|
|||
$this->rectorChangeCollector->notifyNodeFileInfo($node);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $nodeWithStatements
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $nodeWithStatements
|
||||
*/
|
||||
public function removeNodeFromStatements($nodeWithStatements, \PhpParser\Node $toBeRemovedNode) : void
|
||||
{
|
||||
|
@ -65,7 +65,7 @@ final class NodeRemover
|
|||
}
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\Closure|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $functionLike
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Expr\Closure|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $functionLike
|
||||
*/
|
||||
public function removeStmt($functionLike, int $key) : void
|
||||
{
|
||||
|
@ -94,7 +94,7 @@ final class NodeRemover
|
|||
unset($classMethod->params[$key]);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall $node
|
||||
*/
|
||||
public function removeArg($node, int $key) : void
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ interface NodeTypeResolverInterface
|
|||
*/
|
||||
public function getNodeClasses() : array;
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ use RectorPrefix20210822\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
|||
final class PHPStanServicesFactory
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\DependencyInjection\Container
|
||||
* @var \RectorPrefix20210822\PHPStan\DependencyInjection\Container
|
||||
*/
|
||||
private $container;
|
||||
public function __construct(\RectorPrefix20210822\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider)
|
||||
|
|
|
@ -26,7 +26,7 @@ final class NodeScopeAndMetadataDecorator
|
|||
*/
|
||||
private const OPTION_REPLACE_NODES = 'replaceNodes';
|
||||
/**
|
||||
* @var \PhpParser\NodeVisitor\CloningVisitor
|
||||
* @var \RectorPrefix20210822\PhpParser\NodeVisitor\CloningVisitor
|
||||
*/
|
||||
private $cloningVisitor;
|
||||
/**
|
||||
|
@ -46,7 +46,7 @@ final class NodeScopeAndMetadataDecorator
|
|||
*/
|
||||
private $statementNodeVisitor;
|
||||
/**
|
||||
* @var \PhpParser\NodeVisitor\NodeConnectingVisitor
|
||||
* @var \RectorPrefix20210822\PhpParser\NodeVisitor\NodeConnectingVisitor
|
||||
*/
|
||||
private $nodeConnectingVisitor;
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,7 @@ use PHPStan\Type\TypeTraverser;
|
|||
final class GenericClassStringTypeCorrector
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -73,7 +73,7 @@ final class NodeTypeResolver
|
|||
*/
|
||||
private $genericClassStringTypeCorrector;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
|
|
|
@ -35,7 +35,7 @@ final class CastTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTy
|
|||
return [\PhpParser\Node\Expr\Cast::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||
final class NameTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
@ -35,7 +35,7 @@ final class NameTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTy
|
|||
return [\PhpParser\Node\Name::class, \PhpParser\Node\Name\FullyQualified::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -46,7 +46,7 @@ final class NewTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTyp
|
|||
return [\PhpParser\Node\Expr\New_::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@ final class ParamTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeT
|
|||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
* @var \RectorPrefix20210822\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
*/
|
||||
private $simpleCallableNodeTraverser;
|
||||
/**
|
||||
|
@ -69,7 +69,7 @@ final class ParamTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeT
|
|||
return [\PhpParser\Node\Param::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@ final class PropertyFetchTypeResolver implements \Rector\NodeTypeResolver\Contra
|
|||
*/
|
||||
private $traitNodeScopeCollector;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \Rector\NodeTypeResolver\PHPStan\Collector\TraitNodeScopeCollector $traitNodeScopeCollector, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
@ -60,7 +60,7 @@ final class PropertyFetchTypeResolver implements \Rector\NodeTypeResolver\Contra
|
|||
return [\PhpParser\Node\Expr\PropertyFetch::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@ final class PropertyTypeResolver implements \Rector\NodeTypeResolver\Contract\No
|
|||
return [\PhpParser\Node\Stmt\Property::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ final class ReturnTypeResolver implements \Rector\NodeTypeResolver\Contract\Node
|
|||
return [\PhpParser\Node\Stmt\Return_::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ final class ScalarTypeResolver implements \Rector\NodeTypeResolver\Contract\Node
|
|||
return [\PhpParser\Node\Scalar::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ final class StaticCallMethodCallTypeResolver implements \Rector\NodeTypeResolver
|
|||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -17,7 +17,7 @@ use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
|||
final class TraitTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
@ -32,7 +32,7 @@ final class TraitTypeResolver implements \Rector\NodeTypeResolver\Contract\NodeT
|
|||
return [\PhpParser\Node\Stmt\Trait_::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -50,7 +50,7 @@ final class VariableTypeResolver implements \Rector\NodeTypeResolver\Contract\No
|
|||
return [\PhpParser\Node\Expr\Variable::class];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function resolve($node) : \PHPStan\Type\Type
|
||||
{
|
||||
|
|
|
@ -23,11 +23,11 @@ final class FunctionMethodAndClassNodeVisitor extends \PhpParser\NodeVisitorAbst
|
|||
*/
|
||||
private $methodStack = [];
|
||||
/**
|
||||
* @var \PhpParser\Node\Stmt\ClassLike|null
|
||||
* @var \RectorPrefix20210822\PhpParser\Node\Stmt\ClassLike|null
|
||||
*/
|
||||
private $classLike;
|
||||
/**
|
||||
* @var \PhpParser\Node\Stmt\ClassMethod|null
|
||||
* @var \RectorPrefix20210822\PhpParser\Node\Stmt\ClassMethod|null
|
||||
*/
|
||||
private $classMethod;
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
|||
final class StatementNodeVisitor extends \PhpParser\NodeVisitorAbstract
|
||||
{
|
||||
/**
|
||||
* @var \PhpParser\Node\Stmt|null
|
||||
* @var \RectorPrefix20210822\PhpParser\Node\Stmt|null
|
||||
*/
|
||||
private $previousStmt;
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ final class RemoveDeepChainMethodCallNodeVisitor extends \PhpParser\NodeVisitorA
|
|||
*/
|
||||
private $nestedChainMethodCallLimit;
|
||||
/**
|
||||
* @var \PhpParser\Node\Stmt\Expression|null
|
||||
* @var \RectorPrefix20210822\PhpParser\Node\Stmt\Expression|null
|
||||
*/
|
||||
private $removingExpression;
|
||||
/**
|
||||
|
|
|
@ -53,11 +53,11 @@ final class PHPStanNodeScopeResolver
|
|||
*/
|
||||
private $dependencyResolver;
|
||||
/**
|
||||
* @var \PHPStan\Analyser\NodeScopeResolver
|
||||
* @var \RectorPrefix20210822\PHPStan\Analyser\NodeScopeResolver
|
||||
*/
|
||||
private $nodeScopeResolver;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ final class PHPStanNodeScopeResolver
|
|||
*/
|
||||
private $traitNodeScopeCollector;
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
/**
|
||||
|
@ -210,7 +210,7 @@ final class PHPStanNodeScopeResolver
|
|||
$nodeTraverser->traverse($nodes);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_ $classLike
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_ $classLike
|
||||
*/
|
||||
private function resolveClassOrInterfaceScope($classLike, \PHPStan\Analyser\Scope $scope) : \PHPStan\Analyser\Scope
|
||||
{
|
||||
|
@ -227,7 +227,7 @@ final class PHPStanNodeScopeResolver
|
|||
return $scope->enterClass($classReflection);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_ $classLike
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_ $classLike
|
||||
*/
|
||||
private function resolveClassName($classLike) : string
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@ final class NameImportingPhpDocNodeVisitor extends \RectorPrefix20210822\Symplif
|
|||
*/
|
||||
private $staticTypeMapper;
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
*/
|
||||
private $parameterProvider;
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@ final class UnderscoreRenamePhpDocNodeVisitor extends \RectorPrefix20210822\Symp
|
|||
*/
|
||||
private $pseudoNamespaceToNamespace;
|
||||
/**
|
||||
* @var \PhpParser\Node|null
|
||||
* @var \RectorPrefix20210822\PhpParser\Node|null
|
||||
*/
|
||||
private $currentPhpParserNode;
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\Intermedia
|
|||
final class RectorBetterReflectionSourceLocatorFactory
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\BetterReflection\BetterReflectionSourceLocatorFactory
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\BetterReflection\BetterReflectionSourceLocatorFactory
|
||||
*/
|
||||
private $betterReflectionSourceLocatorFactory;
|
||||
/**
|
||||
|
|
|
@ -34,7 +34,7 @@ final class DynamicSourceLocatorProvider implements \Rector\NodeTypeResolver\Con
|
|||
$this->fileNodesFetcher = $fileNodesFetcher;
|
||||
}
|
||||
/**
|
||||
* @param \Symplify\SmartFileSystem\SmartFileInfo $fileInfo
|
||||
* @param \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileInfo $fileInfo
|
||||
*/
|
||||
public function setFileInfo($fileInfo) : void
|
||||
{
|
||||
|
|
|
@ -7,11 +7,11 @@ use PHPStan\Type\Type;
|
|||
final class OldToNewType
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Type\Type
|
||||
* @var \RectorPrefix20210822\PHPStan\Type\Type
|
||||
*/
|
||||
private $oldType;
|
||||
/**
|
||||
* @var \PHPStan\Type\Type
|
||||
* @var \RectorPrefix20210822\PHPStan\Type\Type
|
||||
*/
|
||||
private $newType;
|
||||
public function __construct(\PHPStan\Type\Type $oldType, \PHPStan\Type\Type $newType)
|
||||
|
|
|
@ -20,12 +20,12 @@ interface TypeMapperInterface
|
|||
*/
|
||||
public function getNodeClass() : string;
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode;
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @return Name|NullableType|UnionType|null
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
|
|
|
@ -31,7 +31,7 @@ final class UnionTypeCommonTypeNarrower
|
|||
*/
|
||||
private $genericClassStringTypeCorrector;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\Rector\NodeTypeResolver\NodeTypeCorrector\GenericClassStringTypeCorrector $genericClassStringTypeCorrector, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -24,7 +24,7 @@ final class AccessoryNonEmptyStringTypeMapper implements \Rector\PHPStanStaticTy
|
|||
return \PHPStan\Type\Accessory\AccessoryNonEmptyStringType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -32,7 +32,7 @@ final class AccessoryNonEmptyStringTypeMapper implements \Rector\PHPStanStaticTy
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('string');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -46,7 +46,7 @@ final class ArrayTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
*/
|
||||
private $unionTypeCommonTypeNarrower;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
// To avoid circular dependency
|
||||
|
@ -67,7 +67,7 @@ final class ArrayTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return \PHPStan\Type\ArrayType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -90,7 +90,7 @@ final class ArrayTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return new \Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode($itemTypeNode);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
@ -157,7 +157,7 @@ final class ArrayTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
}
|
||||
// @see https://github.com/phpstan/phpdoc-parser/blob/98a088b17966bdf6ee25c8a4b634df313d8aa531/tests/PHPStan/Parser/PhpDocParserTest.php#L2692-L2696
|
||||
foreach ($genericTypes as $genericType) {
|
||||
/** @var \PHPStan\PhpDocParser\Ast\Node $genericType */
|
||||
/** @var \RectorPrefix20210822\PHPStan\PhpDocParser\Ast\Node $genericType */
|
||||
$genericType->setAttribute(self::HAS_GENERIC_TYPE_PARENT, $withKey);
|
||||
}
|
||||
$identifierTypeNode->setAttribute(self::HAS_GENERIC_TYPE_PARENT, $withKey);
|
||||
|
|
|
@ -35,7 +35,7 @@ final class BooleanTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contrac
|
|||
return \PHPStan\Type\BooleanType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -46,7 +46,7 @@ final class BooleanTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contrac
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('bool');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -39,7 +39,7 @@ final class CallableTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contra
|
|||
return \PHPStan\Type\CallableType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
|
|
@ -33,7 +33,7 @@ final class ClassStringTypeMapper implements \Rector\PHPStanStaticTypeMapper\Con
|
|||
return \PHPStan\Type\ClassStringType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -52,7 +52,7 @@ final class ClassStringTypeMapper implements \Rector\PHPStanStaticTypeMapper\Con
|
|||
return $attributeAwareIdentifierTypeNode;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -31,7 +31,7 @@ final class ClosureTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contrac
|
|||
return \PHPStan\Type\ClosureType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -41,7 +41,7 @@ final class ClosureTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contrac
|
|||
return new \Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode($identifierTypeNode, [], $returnDocTypeNode);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -34,7 +34,7 @@ final class FloatTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return \PHPStan\Type\FloatType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -42,7 +42,7 @@ final class FloatTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('float');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -25,7 +25,7 @@ final class HasOffsetTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contr
|
|||
return \PHPStan\Type\Accessory\HasOffsetType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -33,7 +33,7 @@ final class HasOffsetTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contr
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\ArrayTypeNode(new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('mixed'));
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -34,7 +34,7 @@ final class IntegerTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contrac
|
|||
return \PHPStan\Type\IntegerType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -42,7 +42,7 @@ final class IntegerTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contrac
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('int');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -36,7 +36,7 @@ final class IntersectionTypeMapper implements \Rector\PHPStanStaticTypeMapper\Co
|
|||
return \PHPStan\Type\IntersectionType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -49,7 +49,7 @@ final class IntersectionTypeMapper implements \Rector\PHPStanStaticTypeMapper\Co
|
|||
return new \Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareIntersectionTypeNode($intersectionTypesNodes);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -40,7 +40,7 @@ final class IterableTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contra
|
|||
return \PHPStan\Type\IterableType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -52,7 +52,7 @@ final class IterableTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contra
|
|||
return new \Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode($itemTypeNode);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -23,7 +23,7 @@ final class MixedTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return \PHPStan\Type\MixedType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -31,7 +31,7 @@ final class MixedTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('mixed');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -23,7 +23,7 @@ final class NeverTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return \PHPStan\Type\NeverType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -34,7 +34,7 @@ final class NeverTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('mixed');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -25,7 +25,7 @@ final class NonEmptyArrayTypeMapper implements \Rector\PHPStanStaticTypeMapper\C
|
|||
return \PHPStan\Type\Accessory\NonEmptyArrayType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -33,7 +33,7 @@ final class NonEmptyArrayTypeMapper implements \Rector\PHPStanStaticTypeMapper\C
|
|||
return new \Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode(new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('mixed'));
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -24,7 +24,7 @@ final class NullTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\T
|
|||
return \PHPStan\Type\NullType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -32,7 +32,7 @@ final class NullTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\T
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('null');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -39,7 +39,7 @@ final class ObjectTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract
|
|||
return \PHPStan\Type\ObjectType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -56,7 +56,7 @@ final class ObjectTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('\\' . $type->getClassName());
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -42,7 +42,7 @@ final class ObjectWithoutClassTypeMapper implements \Rector\PHPStanStaticTypeMap
|
|||
return \PHPStan\Type\ObjectWithoutClassType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -54,7 +54,7 @@ final class ObjectWithoutClassTypeMapper implements \Rector\PHPStanStaticTypeMap
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('object');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -24,7 +24,7 @@ final class ParentStaticTypeMapper implements \Rector\PHPStanStaticTypeMapper\Co
|
|||
return \Rector\StaticTypeMapper\ValueObject\Type\ParentStaticType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -32,7 +32,7 @@ final class ParentStaticTypeMapper implements \Rector\PHPStanStaticTypeMapper\Co
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('parent');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -23,7 +23,7 @@ final class ResourceTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contra
|
|||
return \PHPStan\Type\ResourceType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -31,7 +31,7 @@ final class ResourceTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contra
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('resource');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -24,7 +24,7 @@ final class SelfObjectTypeMapper implements \Rector\PHPStanStaticTypeMapper\Cont
|
|||
return \Rector\StaticTypeMapper\ValueObject\Type\SelfObjectType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -32,7 +32,7 @@ final class SelfObjectTypeMapper implements \Rector\PHPStanStaticTypeMapper\Cont
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('self');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -37,7 +37,7 @@ final class StaticTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract
|
|||
return \PHPStan\Type\StaticType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -45,7 +45,7 @@ final class StaticTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\ThisTypeNode();
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -28,7 +28,7 @@ final class StrictMixedTypeMapper implements \Rector\PHPStanStaticTypeMapper\Con
|
|||
return \PHPStan\Type\StrictMixedType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -36,7 +36,7 @@ final class StrictMixedTypeMapper implements \Rector\PHPStanStaticTypeMapper\Con
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode(self::MIXED);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -34,7 +34,7 @@ final class StringTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract
|
|||
return \PHPStan\Type\StringType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -42,7 +42,7 @@ final class StringTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('string');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -24,7 +24,7 @@ final class ThisTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\T
|
|||
return \PHPStan\Type\ThisType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -32,7 +32,7 @@ final class ThisTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\T
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\ThisTypeNode();
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -34,7 +34,7 @@ final class TypeWithClassNameTypeMapper implements \Rector\PHPStanStaticTypeMapp
|
|||
return \PHPStan\Type\TypeWithClassName::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -42,7 +42,7 @@ final class TypeWithClassNameTypeMapper implements \Rector\PHPStanStaticTypeMapp
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode('string-class');
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -85,7 +85,7 @@ final class UnionTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return \PHPStan\Type\UnionType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -102,7 +102,7 @@ final class UnionTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\
|
|||
return new \Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode($unionTypesNodes);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -38,7 +38,7 @@ final class VoidTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\T
|
|||
return \PHPStan\Type\VoidType::class;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPHPStanPhpDocTypeNode($type, $typeKind) : \PHPStan\PhpDocParser\Ast\Type\TypeNode
|
||||
|
@ -46,7 +46,7 @@ final class VoidTypeMapper implements \Rector\PHPStanStaticTypeMapper\Contract\T
|
|||
return new \PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode(self::VOID);
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Type\Type $type
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type $type
|
||||
* @param \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind $typeKind
|
||||
*/
|
||||
public function mapToPhpParserNode($type, $typeKind) : ?\PhpParser\Node
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPStan\Reflection\ReflectionProvider;
|
|||
final class NamedArgumentsResolver
|
||||
{
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -18,7 +18,7 @@ final class PostFileProcessor
|
|||
*/
|
||||
private $postRectors = [];
|
||||
/**
|
||||
* @var \Symplify\Skipper\Skipper\Skipper
|
||||
* @var \RectorPrefix20210822\Symplify\Skipper\Skipper\Skipper
|
||||
*/
|
||||
private $skipper;
|
||||
/**
|
||||
|
|
|
@ -47,8 +47,8 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
return $this->nodesToAddAfter !== [] || $this->nodesToAddBefore !== [];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $addedNode
|
||||
* @param \PhpParser\Node $positionNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $addedNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $positionNode
|
||||
*/
|
||||
public function addNodeBeforeNode($addedNode, $positionNode) : void
|
||||
{
|
||||
|
@ -62,7 +62,7 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
}
|
||||
/**
|
||||
* @param Node[] $addedNodes
|
||||
* @param \PhpParser\Node $positionNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $positionNode
|
||||
*/
|
||||
public function addNodesAfterNode($addedNodes, $positionNode) : void
|
||||
{
|
||||
|
@ -75,8 +75,8 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
$this->rectorChangeCollector->notifyNodeFileInfo($positionNode);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $addedNode
|
||||
* @param \PhpParser\Node $positionNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $addedNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $positionNode
|
||||
*/
|
||||
public function addNodeAfterNode($addedNode, $positionNode) : void
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
}
|
||||
/**
|
||||
* @return Stmt[]
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function getNodesToAddAfterNode($node) : array
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
}
|
||||
/**
|
||||
* @return Stmt[]
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function getNodesToAddBeforeNode($node) : array
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
return $this->nodesToAddBefore[$position] ?? [];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function clearNodesToAddAfter($node) : void
|
||||
{
|
||||
|
@ -111,7 +111,7 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
unset($this->nodesToAddAfter[$objectHash]);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function clearNodesToAddBefore($node) : void
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
}
|
||||
/**
|
||||
* @param Node[] $newNodes
|
||||
* @param \PhpParser\Node $positionNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $positionNode
|
||||
*/
|
||||
public function addNodesBeforeNode($newNodes, $positionNode) : void
|
||||
{
|
||||
|
@ -151,7 +151,7 @@ final class NodesToAddCollector implements \Rector\PostRector\Contract\Collector
|
|||
return \spl_object_hash($foundNode);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr|\PhpParser\Node\Stmt $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Expr|\PhpParser\Node\Stmt $node
|
||||
*/
|
||||
private function wrapToExpression($node) : \PhpParser\Node\Stmt
|
||||
{
|
||||
|
|
|
@ -56,7 +56,7 @@ final class NodesToRemoveCollector implements \Rector\PostRector\Contract\Collec
|
|||
$this->currentFileProvider = $currentFileProvider;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function addNodeToRemove($node) : void
|
||||
{
|
||||
|
@ -82,7 +82,7 @@ final class NodesToRemoveCollector implements \Rector\PostRector\Contract\Collec
|
|||
$this->nodesToRemove[] = $node;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function isNodeRemoved($node) : bool
|
||||
{
|
||||
|
|
|
@ -12,8 +12,8 @@ final class NodesToReplaceCollector implements \Rector\PostRector\Contract\Colle
|
|||
*/
|
||||
private $nodesToReplace = [];
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \PhpParser\Node $replaceWith
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $replaceWith
|
||||
*/
|
||||
public function addReplaceNodeWithAnotherNode($node, $replaceWith) : void
|
||||
{
|
||||
|
|
|
@ -48,7 +48,7 @@ final class PropertyToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
return $this->constantsByClass !== [];
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \Rector\PostRector\ValueObject\PropertyMetadata $propertyMetadata
|
||||
*/
|
||||
public function addPropertyToClass($class, $propertyMetadata) : void
|
||||
|
@ -58,8 +58,8 @@ final class PropertyToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
$this->rectorChangeCollector->notifyNodeFileInfo($class);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \PhpParser\Node\Stmt\ClassConst $classConst
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\ClassConst $classConst
|
||||
*/
|
||||
public function addConstantToClass($class, $classConst) : void
|
||||
{
|
||||
|
@ -69,8 +69,8 @@ final class PropertyToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
}
|
||||
/**
|
||||
* @param string $propertyName
|
||||
* @param \PHPStan\Type\Type|null $propertyType
|
||||
* @param \PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \RectorPrefix20210822\PHPStan\Type\Type|null $propertyType
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_ $class
|
||||
*/
|
||||
public function addPropertyWithoutConstructorToClass($propertyName, $propertyType, $class) : void
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ final class PropertyToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
}
|
||||
/**
|
||||
* @return ClassConst[]
|
||||
* @param \PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_ $class
|
||||
*/
|
||||
public function getConstantsByClass($class) : array
|
||||
{
|
||||
|
@ -88,7 +88,7 @@ final class PropertyToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
}
|
||||
/**
|
||||
* @return PropertyMetadata[]
|
||||
* @param \PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_ $class
|
||||
*/
|
||||
public function getPropertiesByClass($class) : array
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ final class PropertyToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
}
|
||||
/**
|
||||
* @return array<string, Type>
|
||||
* @param \PhpParser\Node\Stmt\Class_ $class
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Stmt\Class_ $class
|
||||
*/
|
||||
public function getPropertiesWithoutConstructorByClass($class) : array
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ final class UseNodesToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
$this->useImportTypesInFilePath[$smartFileInfo->getRealPath()][] = $objectType;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
* @param \Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType $fullyQualifiedObjectType
|
||||
*/
|
||||
public function addFunctionUseImport($node, $fullyQualifiedObjectType) : void
|
||||
|
@ -56,7 +56,7 @@ final class UseNodesToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
/**
|
||||
* @return AliasedObjectType[]|FullyQualifiedObjectType[]
|
||||
* @param \Rector\Core\ValueObject\Application\File $file
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function getUseImportTypesByNode($file, $node) : array
|
||||
{
|
||||
|
@ -78,7 +78,7 @@ final class UseNodesToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
}
|
||||
/**
|
||||
* @param \Rector\Core\ValueObject\Application\File $file
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
* @param \Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType $fullyQualifiedObjectType
|
||||
*/
|
||||
public function hasImport($file, $node, $fullyQualifiedObjectType) : bool
|
||||
|
@ -135,7 +135,7 @@ final class UseNodesToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
}
|
||||
/**
|
||||
* @return AliasedObjectType[]|FullyQualifiedObjectType[]
|
||||
* @param \Symplify\SmartFileSystem\SmartFileInfo $smartFileInfo
|
||||
* @param \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileInfo $smartFileInfo
|
||||
*/
|
||||
public function getObjectImportsByFileInfo($smartFileInfo) : array
|
||||
{
|
||||
|
@ -143,7 +143,7 @@ final class UseNodesToAddCollector implements \Rector\PostRector\Contract\Collec
|
|||
}
|
||||
/**
|
||||
* @return FullyQualifiedObjectType[]
|
||||
* @param \Symplify\SmartFileSystem\SmartFileInfo $smartFileInfo
|
||||
* @param \RectorPrefix20210822\Symplify\SmartFileSystem\SmartFileInfo $smartFileInfo
|
||||
*/
|
||||
public function getFunctionImportsByFileInfo($smartFileInfo) : array
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ final class NetteInjectDetector
|
|||
*/
|
||||
private $phpDocInfoFactory;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
public function __construct(\Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory $phpDocInfoFactory, \PHPStan\Reflection\ReflectionProvider $reflectionProvider)
|
||||
|
|
|
@ -21,7 +21,7 @@ use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
|||
final class NameImportingPostRector extends \Rector\PostRector\Rector\AbstractPostRector
|
||||
{
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Parameter\ParameterProvider
|
||||
*/
|
||||
private $parameterProvider;
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ final class NameImportingPostRector extends \Rector\PostRector\Rector\AbstractPo
|
|||
*/
|
||||
private $phpDocInfoFactory;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PropertyMetadata
|
|||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var \PHPStan\Type\Type|null
|
||||
* @var \RectorPrefix20210822\PHPStan\Type\Type|null
|
||||
*/
|
||||
private $type;
|
||||
/**
|
||||
|
|
|
@ -7,11 +7,11 @@ use PhpParser\Node;
|
|||
interface ReadNodeAnalyzerInterface
|
||||
{
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function supports($node) : bool;
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function isRead($node) : bool;
|
||||
}
|
||||
|
|
|
@ -25,11 +25,11 @@ final class VariableToConstantGuard
|
|||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @var \PHPStan\Reflection\ReflectionProvider
|
||||
* @var \RectorPrefix20210822\PHPStan\Reflection\ReflectionProvider
|
||||
*/
|
||||
private $reflectionProvider;
|
||||
/**
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
* @var \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
public function __construct(\Rector\NodeNameResolver\NodeNameResolver $nodeNameResolver, \PHPStan\Reflection\ReflectionProvider $reflectionProvider, \RectorPrefix20210822\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
|
||||
|
|
|
@ -45,7 +45,7 @@ final class ReadWritePropertyAnalyzer
|
|||
$this->parentFinder = $parentFinder;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\StaticPropertyFetch $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node\Expr\PropertyFetch|\PhpParser\Node\Expr\StaticPropertyFetch $node
|
||||
*/
|
||||
public function isRead($node) : bool
|
||||
{
|
||||
|
|
|
@ -31,14 +31,14 @@ final class LocalPropertyFetchReadNodeAnalyzer implements \Rector\ReadWrite\Cont
|
|||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function supports($node) : bool
|
||||
{
|
||||
return $node instanceof \PhpParser\Node\Expr\PropertyFetch;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function isRead($node) : bool
|
||||
{
|
||||
|
|
|
@ -29,14 +29,14 @@ final class VariableReadNodeAnalyzer implements \Rector\ReadWrite\Contract\ReadN
|
|||
$this->justReadExprAnalyzer = $justReadExprAnalyzer;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function supports($node) : bool
|
||||
{
|
||||
return $node instanceof \PhpParser\Node\Expr\Variable;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function isRead($node) : bool
|
||||
{
|
||||
|
|
|
@ -14,9 +14,9 @@ interface PhpDocTypeMapperInterface
|
|||
*/
|
||||
public function getNodeType() : string;
|
||||
/**
|
||||
* @param \PHPStan\PhpDocParser\Ast\Type\TypeNode $typeNode
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \PHPStan\Analyser\NameScope $nameScope
|
||||
* @param \RectorPrefix20210822\PHPStan\PhpDocParser\Ast\Type\TypeNode $typeNode
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PHPStan\Analyser\NameScope $nameScope
|
||||
*/
|
||||
public function mapToPHPStanType($typeNode, $node, $nameScope) : \PHPStan\Type\Type;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ interface PhpParserNodeMapperInterface
|
|||
*/
|
||||
public function getNodeType() : string;
|
||||
/**
|
||||
* @param \PhpParser\Node $node
|
||||
* @param \RectorPrefix20210822\PhpParser\Node $node
|
||||
*/
|
||||
public function mapToPHPStan($node) : \PHPStan\Type\Type;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ final class PhpDocTypeMapper
|
|||
*/
|
||||
private $phpDocTypeMappers;
|
||||
/**
|
||||
* @var \PHPStan\PhpDoc\TypeNodeResolver
|
||||
* @var \RectorPrefix20210822\PHPStan\PhpDoc\TypeNodeResolver
|
||||
*/
|
||||
private $typeNodeResolver;
|
||||
/**
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue