mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-27 13:13:31 +00:00
Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30
[CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
This commit is contained in:
parent
f2acdcf5da
commit
967bbc6b59
|
@ -35,7 +35,7 @@ final class ConstExprClassNameDecorator implements PhpDocNodeDecoratorInterface
|
|||
}
|
||||
public function decorate(PhpDocNode $phpDocNode, PhpNode $phpNode) : void
|
||||
{
|
||||
$this->phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function (Node $node) use($phpNode) {
|
||||
$this->phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function (Node $node) use($phpNode) : ?\PHPStan\PhpDocParser\Ast\Node {
|
||||
if (!$node instanceof ConstExprNode) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -113,10 +113,7 @@ final class PlainValueParser
|
|||
$identifierTypeNode->setAttribute(PhpDocAttributeKey::RESOLVED_CLASS, $fullyQualifiedAnnotationClass);
|
||||
return new DoctrineAnnotationTagValueNode($identifierTypeNode, $annotationShortName, $values);
|
||||
}
|
||||
/**
|
||||
* @return \PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprNode|null
|
||||
*/
|
||||
private function matchConstantValue(string $currentTokenValue)
|
||||
private function matchConstantValue(string $currentTokenValue) : ?\PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprNode
|
||||
{
|
||||
if (\strtolower($currentTokenValue) === 'false') {
|
||||
return new ConstExprFalseNode();
|
||||
|
|
|
@ -20,10 +20,10 @@ final class CommentRemover
|
|||
$this->commentRemovingNodeTraverser = $commentRemovingNodeTraverser;
|
||||
}
|
||||
/**
|
||||
* @param mixed[]|\PhpParser\Node|null $node
|
||||
* @param Node[]|Node|null $node
|
||||
* @return Node[]|null
|
||||
*/
|
||||
public function removeFromNode($node)
|
||||
public function removeFromNode($node) : ?array
|
||||
{
|
||||
if ($node === null) {
|
||||
return null;
|
||||
|
|
|
@ -85,9 +85,6 @@ final class FamilyRelationsAnalyzer
|
|||
}
|
||||
return $childrenClassReflections;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null $propertyTypeNode
|
||||
*/
|
||||
public function getPossibleUnionPropertyType(Property $property, Type $varType, Scope $scope, $propertyTypeNode) : PropertyType
|
||||
{
|
||||
if ($varType instanceof UnionType) {
|
||||
|
|
|
@ -18,9 +18,6 @@ final class PropertyType
|
|||
* @var \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null
|
||||
*/
|
||||
private $propertyTypeNode;
|
||||
/**
|
||||
* @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null $propertyTypeNode
|
||||
*/
|
||||
public function __construct(Type $varType, $propertyTypeNode)
|
||||
{
|
||||
$this->varType = $varType;
|
||||
|
@ -30,9 +27,6 @@ final class PropertyType
|
|||
{
|
||||
return $this->varType;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null
|
||||
*/
|
||||
public function getPropertyTypeNode()
|
||||
{
|
||||
return $this->propertyTypeNode;
|
||||
|
|
|
@ -70,7 +70,6 @@ final class ArrayCallableMethodMatcher
|
|||
* Returns ArrayCallableDynamicMethod object when unknown method of callable used, eg: [$this, $other]
|
||||
* @see https://github.com/rectorphp/rector-src/pull/908
|
||||
* @see https://github.com/rectorphp/rector-src/pull/909
|
||||
* @return null|\Rector\NodeCollector\ValueObject\ArrayCallableDynamicMethod|\Rector\NodeCollector\ValueObject\ArrayCallable
|
||||
*/
|
||||
public function match(Array_ $array)
|
||||
{
|
||||
|
|
|
@ -21,9 +21,6 @@ final class ParentScopeFinder
|
|||
{
|
||||
$this->betterNodeFinder = $betterNodeFinder;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Namespace_|\PhpParser\Node\Expr\Closure|null
|
||||
*/
|
||||
public function find(Node $node)
|
||||
{
|
||||
return $this->betterNodeFinder->findParentByTypes($node, [Closure::class, Function_::class, ClassMethod::class, Class_::class, Namespace_::class]);
|
||||
|
|
|
@ -193,10 +193,7 @@ final class NameImportingPhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
|||
$doctrineAnnotationTagValueNode->identifierTypeNode = $shortentedIdentifierTypeNode;
|
||||
$doctrineAnnotationTagValueNode->markAsChanged();
|
||||
}
|
||||
/**
|
||||
* @return \Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode|null
|
||||
*/
|
||||
private function enterSpacelessPhpDocTagNode(SpacelessPhpDocTagNode $spacelessPhpDocTagNode)
|
||||
private function enterSpacelessPhpDocTagNode(SpacelessPhpDocTagNode $spacelessPhpDocTagNode) : ?\Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode
|
||||
{
|
||||
if (!$spacelessPhpDocTagNode->value instanceof DoctrineAnnotationTagValueNode) {
|
||||
return null;
|
||||
|
|
|
@ -52,7 +52,6 @@ final class PHPStanStaticTypeMapper
|
|||
}
|
||||
/**
|
||||
* @param TypeKind::* $typeKind
|
||||
* @return \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null
|
||||
*/
|
||||
public function mapToPhpParserNode(Type $type, string $typeKind)
|
||||
{
|
||||
|
|
|
@ -31,9 +31,6 @@ final class ArrayShapeTypeMapper
|
|||
$this->phpStanStaticTypeMapper = $phpStanStaticTypeMapper;
|
||||
$this->reflectionProvider = $reflectionProvider;
|
||||
}
|
||||
/**
|
||||
* @return \PHPStan\PhpDocParser\Ast\Type\ArrayShapeNode|\PHPStan\Type\ArrayType|null
|
||||
*/
|
||||
public function mapConstantArrayType(ConstantArrayType $constantArrayType)
|
||||
{
|
||||
// empty array
|
||||
|
|
|
@ -168,9 +168,6 @@ final class UnionTypeMapper implements TypeMapperInterface
|
|||
}
|
||||
return $unionTypeAnalysis->hasArray();
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Name|\PhpParser\Node\NullableType|null
|
||||
*/
|
||||
private function matchArrayTypes(UnionType $unionType)
|
||||
{
|
||||
$unionTypeAnalysis = $this->unionTypeAnalyzer->analyseForNullableAndIterable($unionType);
|
||||
|
@ -293,9 +290,6 @@ final class UnionTypeMapper implements TypeMapperInterface
|
|||
}
|
||||
return new PhpParserUnionType($phpParserUnionedTypes);
|
||||
}
|
||||
/**
|
||||
* @return \PHPStan\Type\UnionType|\PHPStan\Type\TypeWithClassName|null
|
||||
*/
|
||||
private function resolveCompatibleObjectCandidate(UnionType $unionType)
|
||||
{
|
||||
if ($this->doctrineTypeAnalyzer->isDoctrineCollectionWithIterableUnionType($unionType)) {
|
||||
|
|
|
@ -71,10 +71,9 @@ final class ExprParameterReflectionTypeCorrector
|
|||
}
|
||||
/**
|
||||
* @param string|int $name
|
||||
* @return \PhpParser\Node\Expr|null
|
||||
* @param mixed $item
|
||||
*/
|
||||
private function correctItemByParameterReflection($name, $item, ParameterReflection $parameterReflection)
|
||||
private function correctItemByParameterReflection($name, $item, ParameterReflection $parameterReflection) : ?\PhpParser\Node\Expr
|
||||
{
|
||||
if (!$item instanceof Expr) {
|
||||
return null;
|
||||
|
|
|
@ -36,10 +36,7 @@ final class RemovableAnnotationAnalyzer
|
|||
}
|
||||
return \in_array($annotationClassName, self::REMOVABLE_ANNOTATION_CLASSES, \true);
|
||||
}
|
||||
/**
|
||||
* @return \Rector\Php80\ValueObject\AnnotationToAttribute|null
|
||||
*/
|
||||
private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode)
|
||||
private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\Rector\Php80\ValueObject\AnnotationToAttribute
|
||||
{
|
||||
foreach ($this->annotationsToAttributes as $annotationToAttribute) {
|
||||
if (!$doctrineAnnotationTagValueNode->hasClassName($annotationToAttribute->getTag())) {
|
||||
|
|
|
@ -43,10 +43,7 @@ final class UnwrapableAnnotationAnalyzer
|
|||
}
|
||||
return \true;
|
||||
}
|
||||
/**
|
||||
* @return \Rector\Php80\ValueObject\AnnotationToAttribute|null
|
||||
*/
|
||||
private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode)
|
||||
private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\Rector\Php80\ValueObject\AnnotationToAttribute
|
||||
{
|
||||
foreach ($this->annotationsToAttributes as $annotationToAttribute) {
|
||||
if (!$doctrineAnnotationTagValueNode->hasClassName($annotationToAttribute->getTag())) {
|
||||
|
|
|
@ -105,7 +105,6 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param MethodCall|StaticCall|ClassMethod $node
|
||||
* @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Stmt\ClassMethod|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
{
|
||||
|
|
|
@ -53,7 +53,6 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param MethodCall|StaticCall|ClassMethod $node
|
||||
* @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Stmt\ClassMethod|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
{
|
||||
|
|
|
@ -52,9 +52,8 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param FuncCall $node
|
||||
* @return \PhpParser\Node\Expr\FuncCall|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
public function refactor(Node $node) : ?\PhpParser\Node\Expr\FuncCall
|
||||
{
|
||||
$hasChanged = \false;
|
||||
foreach ($this->replacedArguments as $replacedArgument) {
|
||||
|
|
|
@ -44,9 +44,8 @@ final class ArgumentAdder
|
|||
private $scope;
|
||||
/**
|
||||
* @param mixed|null $argumentDefaultValue
|
||||
* @param \PHPStan\Type\Type|null $argumentType
|
||||
*/
|
||||
public function __construct(string $class, string $method, int $position, ?string $argumentName = null, $argumentDefaultValue = null, $argumentType = null, ?string $scope = null)
|
||||
public function __construct(string $class, string $method, int $position, ?string $argumentName = null, $argumentDefaultValue = null, ?\PHPStan\Type\Type $argumentType = null, ?string $scope = null)
|
||||
{
|
||||
$this->class = $class;
|
||||
$this->method = $method;
|
||||
|
|
|
@ -50,7 +50,7 @@ CODE_SAMPLE
|
|||
* @param Do_ $node
|
||||
* @return Stmt[]|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
public function refactor(Node $node) : ?array
|
||||
{
|
||||
if (!$this->valueResolver->isFalse($node->cond)) {
|
||||
return null;
|
||||
|
|
|
@ -112,10 +112,7 @@ CODE_SAMPLE
|
|||
return null;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Return_|null
|
||||
*/
|
||||
private function processForeachNodeWithReturnInside(Foreach_ $foreach, Return_ $return)
|
||||
private function processForeachNodeWithReturnInside(Foreach_ $foreach, Return_ $return) : ?\PhpParser\Node\Stmt\Return_
|
||||
{
|
||||
if (!$this->nodeComparator->areNodesEqual($foreach->valueVar, $return->expr)) {
|
||||
return null;
|
||||
|
|
|
@ -90,9 +90,6 @@ CODE_SAMPLE
|
|||
$arguments = [$inArrayFuncCall->args[0], $arrayKeysFuncCall->args[0]];
|
||||
return new FuncCall(new Name('array_key_exists'), $arguments);
|
||||
}
|
||||
/**
|
||||
* @return null|\PhpParser\Node|\PhpParser\Node\FunctionLike
|
||||
*/
|
||||
private function findPreviousAssignToArrayKeys(FuncCall $funcCall, Expr $expr)
|
||||
{
|
||||
return $this->betterNodeFinder->findFirstPrevious($funcCall, function (Node $node) use($expr) : bool {
|
||||
|
|
|
@ -104,10 +104,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $ifStmt->stmts;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\If_|null
|
||||
*/
|
||||
private function matchTruableIf(If_ $if)
|
||||
private function matchTruableIf(If_ $if) : ?\PhpParser\Node\Stmt\If_
|
||||
{
|
||||
// just one if
|
||||
if ($if->elseifs !== []) {
|
||||
|
|
|
@ -153,9 +153,6 @@ CODE_SAMPLE
|
|||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BinaryOp\Greater|null
|
||||
*/
|
||||
private function resolveCount(bool $isNegated, FuncCall $funcCall)
|
||||
{
|
||||
$countedType = $this->getType($funcCall->args[0]->value);
|
||||
|
|
|
@ -113,10 +113,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $parentNode->var === $propertyFetch;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\MethodCall|null
|
||||
*/
|
||||
private function refactorPropertyFetch(PropertyFetch $propertyFetch, Scope $scope)
|
||||
private function refactorPropertyFetch(PropertyFetch $propertyFetch, Scope $scope) : ?\PhpParser\Node\Expr\MethodCall
|
||||
{
|
||||
$callerType = $this->getType($propertyFetch->var);
|
||||
if (!$callerType instanceof ObjectType) {
|
||||
|
@ -150,10 +147,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\MethodCall|null
|
||||
*/
|
||||
private function refactorMagicSet(Expr $expr, PropertyFetch $propertyFetch, Scope $scope)
|
||||
private function refactorMagicSet(Expr $expr, PropertyFetch $propertyFetch, Scope $scope) : ?\PhpParser\Node\Expr\MethodCall
|
||||
{
|
||||
$propertyCallerType = $this->getType($propertyFetch->var);
|
||||
if (!$propertyCallerType instanceof ObjectType) {
|
||||
|
|
|
@ -80,7 +80,6 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure $node
|
||||
* @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null
|
||||
*/
|
||||
private function applyVariadicParams($node, string $variableName)
|
||||
{
|
||||
|
@ -94,7 +93,6 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure $node
|
||||
* @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null
|
||||
*/
|
||||
private function removeOrChangeAssignToVariable($node, Assign $assign, string $variableName)
|
||||
{
|
||||
|
|
|
@ -171,9 +171,8 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\StaticCall $node
|
||||
* @return \PhpParser\Node|null
|
||||
*/
|
||||
private function refactorArgument($node, Arg $arg)
|
||||
private function refactorArgument($node, Arg $arg) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$arg->value instanceof String_) {
|
||||
return null;
|
||||
|
|
|
@ -115,9 +115,6 @@ CODE_SAMPLE
|
|||
}
|
||||
return $expr->name->toString() === 'PHP_VERSION';
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\ConstFetch|\PhpParser\Node\Scalar\LNumber|null
|
||||
*/
|
||||
private function getNewNodeForArg(Expr $expr)
|
||||
{
|
||||
if ($this->isPhpVersionConstant($expr)) {
|
||||
|
|
|
@ -23,9 +23,6 @@ final class ConditionEvaluator
|
|||
{
|
||||
$this->phpVersionProvider = $phpVersionProvider;
|
||||
}
|
||||
/**
|
||||
* @return bool|int|null
|
||||
*/
|
||||
public function evaluate(ConditionInterface $condition)
|
||||
{
|
||||
if ($condition instanceof VersionCompareCondition) {
|
||||
|
@ -36,9 +33,6 @@ final class ConditionEvaluator
|
|||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @return bool|int|null
|
||||
*/
|
||||
private function evaluateVersionCompareCondition(VersionCompareCondition $versionCompareCondition)
|
||||
{
|
||||
$compareSign = $versionCompareCondition->getCompareSign();
|
||||
|
|
|
@ -146,10 +146,7 @@ final class IsClassMethodUsedAnalyzer
|
|||
}
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* @param null|\Rector\NodeCollector\ValueObject\ArrayCallable $arrayCallable
|
||||
*/
|
||||
private function shouldSkipArrayCallable(Class_ $class, $arrayCallable) : bool
|
||||
private function shouldSkipArrayCallable(Class_ $class, ?\Rector\NodeCollector\ValueObject\ArrayCallable $arrayCallable) : bool
|
||||
{
|
||||
if (!$arrayCallable instanceof ArrayCallable) {
|
||||
return \true;
|
||||
|
|
|
@ -43,7 +43,6 @@ final class LivingCodeManipulator
|
|||
}
|
||||
/**
|
||||
* @return Expr[]|mixed[]
|
||||
* @param \PhpParser\Node|int|string|null $expr
|
||||
*/
|
||||
public function keepLivingCodeFromExpr($expr) : array
|
||||
{
|
||||
|
|
|
@ -217,10 +217,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* @return null|\PhpParser\Node\Expr
|
||||
*/
|
||||
private function refactorUsedVariable(Assign $assign)
|
||||
private function refactorUsedVariable(Assign $assign) : ?\PhpParser\Node\Expr
|
||||
{
|
||||
$parentNode = $assign->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentNode instanceof Expression) {
|
||||
|
|
|
@ -140,9 +140,6 @@ CODE_SAMPLE
|
|||
}
|
||||
return $this->phpAttributeAnalyzer->hasPhpAttributes($classMethod, self::ALLOWED_ATTRIBUTES);
|
||||
}
|
||||
/**
|
||||
* @return null|\PhpParser\Node\Stmt|\PhpParser\Node\Expr
|
||||
*/
|
||||
private function matchClassMethodOnlyStmt(ClassMethod $classMethod)
|
||||
{
|
||||
$classMethodStmts = $classMethod->stmts;
|
||||
|
|
|
@ -124,7 +124,7 @@ CODE_SAMPLE
|
|||
/**
|
||||
* @return Stmt[]|null
|
||||
*/
|
||||
private function processMayDeadInstanceOf(If_ $if, Instanceof_ $instanceof)
|
||||
private function processMayDeadInstanceOf(If_ $if, Instanceof_ $instanceof) : ?array
|
||||
{
|
||||
if (!$instanceof->class instanceof Name) {
|
||||
return null;
|
||||
|
|
|
@ -205,10 +205,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return !$this->valueResolver->isFalse($args[1]->value);
|
||||
}
|
||||
/**
|
||||
* @return null|\PhpParser\Node\Expr\MethodCall
|
||||
*/
|
||||
private function refactorConfigureRuleMethodCall(MethodCall $methodCall)
|
||||
private function refactorConfigureRuleMethodCall(MethodCall $methodCall) : ?\PhpParser\Node\Expr\MethodCall
|
||||
{
|
||||
$caller = $methodCall->var;
|
||||
if (!$caller instanceof MethodCall) {
|
||||
|
|
|
@ -97,10 +97,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr|null
|
||||
*/
|
||||
private function matchOnlyIfStmtReturnExpr(Stmt $onlyIfStmt, Variable $returnVariable)
|
||||
private function matchOnlyIfStmtReturnExpr(Stmt $onlyIfStmt, Variable $returnVariable) : ?\PhpParser\Node\Expr
|
||||
{
|
||||
if (!$onlyIfStmt instanceof Expression) {
|
||||
return null;
|
||||
|
@ -129,10 +126,7 @@ CODE_SAMPLE
|
|||
// return directly
|
||||
return $assign->expr;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\Variable|null
|
||||
*/
|
||||
private function matchNextStmtReturnVariable(StmtsAwareInterface $stmtsAware, int $key)
|
||||
private function matchNextStmtReturnVariable(StmtsAwareInterface $stmtsAware, int $key) : ?\PhpParser\Node\Expr\Variable
|
||||
{
|
||||
$nextStmt = $stmtsAware->stmts[$key + 1] ?? null;
|
||||
// last item → stop
|
||||
|
|
|
@ -69,10 +69,7 @@ final class InflectorSingularResolver
|
|||
}
|
||||
return $currentName;
|
||||
}
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
private function resolveSingularizeMap(string $currentName)
|
||||
private function resolveSingularizeMap(string $currentName) : ?string
|
||||
{
|
||||
foreach (self::SINGULARIZE_MAP as $plural => $singular) {
|
||||
if ($currentName === $plural) {
|
||||
|
|
|
@ -53,9 +53,6 @@ final class ForeachMatcher
|
|||
}
|
||||
return new VariableAndCallForeach($foreach->valueVar, $call, $variableName, $functionLike);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null
|
||||
*/
|
||||
private function getFunctionLike(Foreach_ $foreach)
|
||||
{
|
||||
return $this->betterNodeFinder->findParentByTypes($foreach, [Closure::class, ClassMethod::class, Function_::class]);
|
||||
|
|
|
@ -61,9 +61,6 @@ final class VariableAndCallAssignMatcher
|
|||
}
|
||||
return new VariableAndCallAssign($assign->var, $call, $assign, $variableName, $functionLike);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure|null
|
||||
*/
|
||||
private function getFunctionLike(Assign $assign)
|
||||
{
|
||||
return $this->betterNodeFinder->findParentByTypes($assign, [Closure::class, ClassMethod::class, Function_::class]);
|
||||
|
|
|
@ -53,7 +53,6 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param FuncCall|MethodCall|StaticCall $node
|
||||
* @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
{
|
||||
|
|
|
@ -29,9 +29,6 @@ final class RegexMatcher
|
|||
{
|
||||
$this->valueResolver = $valueResolver;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\Concat|\PhpParser\Node\Scalar\String_|null
|
||||
*/
|
||||
public function resolvePatternExpressionWithoutEIfFound(Expr $expr)
|
||||
{
|
||||
if ($expr instanceof String_) {
|
||||
|
|
|
@ -35,9 +35,8 @@ final class RandomFunctionRector extends AbstractRector implements MinPhpVersion
|
|||
}
|
||||
/**
|
||||
* @param FuncCall $node
|
||||
* @return \PhpParser\Node\Expr\FuncCall|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
public function refactor(Node $node) : ?\PhpParser\Node\Expr\FuncCall
|
||||
{
|
||||
foreach (self::OLD_TO_NEW_FUNCTION_NAMES as $oldFunctionName => $newFunctionName) {
|
||||
if ($this->isName($node, $oldFunctionName)) {
|
||||
|
|
|
@ -123,7 +123,6 @@ final class AnonymousFunctionFactory
|
|||
* @api
|
||||
* @param Param[] $params
|
||||
* @param Stmt[] $stmts
|
||||
* @param \PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\NullableType|\PhpParser\Node\UnionType|\PhpParser\Node\ComplexType|null $returnTypeNode
|
||||
*/
|
||||
public function create(array $params, array $stmts, $returnTypeNode, bool $static = \false) : Closure
|
||||
{
|
||||
|
@ -262,9 +261,6 @@ final class AnonymousFunctionFactory
|
|||
}
|
||||
return $params;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null
|
||||
*/
|
||||
private function resolveParamType(ParameterReflection $parameterReflection)
|
||||
{
|
||||
if ($parameterReflection->getType() instanceof MixedType) {
|
||||
|
@ -297,7 +293,6 @@ final class AnonymousFunctionFactory
|
|||
}
|
||||
/**
|
||||
* @param Param[] $params
|
||||
* @return \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|null
|
||||
*/
|
||||
private function createInnerMethodCall(PhpMethodReflection $phpMethodReflection, Expr $expr, array $params)
|
||||
{
|
||||
|
@ -317,9 +312,6 @@ final class AnonymousFunctionFactory
|
|||
$innerMethodCall->args = $this->nodeFactory->createArgsFromParams($params);
|
||||
return $innerMethodCall;
|
||||
}
|
||||
/**
|
||||
* @return null|\PhpParser\Node\Name|\PhpParser\Node\Name\FullyQualified|\PhpParser\Node\Expr
|
||||
*/
|
||||
private function normalizeClassConstFetchForStatic(Expr $expr)
|
||||
{
|
||||
if (!$expr instanceof ClassConstFetch) {
|
||||
|
@ -339,9 +331,6 @@ final class AnonymousFunctionFactory
|
|||
}
|
||||
return new FullyQualified($className);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\New_|\PhpParser\Node\Expr|null
|
||||
*/
|
||||
private function resolveExpr(Expr $expr)
|
||||
{
|
||||
if (!$expr instanceof ClassConstFetch) {
|
||||
|
|
|
@ -160,9 +160,6 @@ CODE_SAMPLE
|
|||
{
|
||||
return PhpVersionFeature::TYPED_PROPERTIES;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|null $node
|
||||
*/
|
||||
private function isNullOrNonClassLikeTypeOrMixedOrVendorLockedIn($node, Property $property) : bool
|
||||
{
|
||||
if (!$node instanceof Node) {
|
||||
|
|
|
@ -51,7 +51,6 @@ final class ResourceReturnToObject
|
|||
/**
|
||||
* @param array<string, string> $collectionFunctionToReturnObject
|
||||
* @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BinaryOp\BooleanOr $node
|
||||
* @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\Instanceof_|null
|
||||
*/
|
||||
public function refactor($node, array $collectionFunctionToReturnObject)
|
||||
{
|
||||
|
|
|
@ -184,9 +184,6 @@ CODE_SAMPLE
|
|||
}
|
||||
return $node;
|
||||
}
|
||||
/**
|
||||
* @return null|\PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\ComplexType
|
||||
*/
|
||||
private function resolveParamType(Param $param)
|
||||
{
|
||||
if ($param->type === null) {
|
||||
|
|
|
@ -257,10 +257,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $this->attrGroupsFactory->create($doctrineTagAndAnnotationToAttributes, $uses);
|
||||
}
|
||||
/**
|
||||
* @return \Rector\Php80\ValueObject\AnnotationToAttribute|null
|
||||
*/
|
||||
private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode)
|
||||
private function matchAnnotationToAttribute(DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\Rector\Php80\ValueObject\AnnotationToAttribute
|
||||
{
|
||||
foreach ($this->annotationsToAttributes as $annotationToAttribute) {
|
||||
if (!$doctrineAnnotationTagValueNode->hasClassName($annotationToAttribute->getTag())) {
|
||||
|
|
|
@ -235,10 +235,6 @@ CODE_SAMPLE
|
|||
}
|
||||
return $this->typeFactory->createMixedPassedOrUnionType($singleArrayTypes);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Name|\PhpParser\Node\Identifier|\PhpParser\Node\ComplexType|null $type
|
||||
* @param \PhpParser\Node\Name|\PhpParser\Node\ComplexType|\PhpParser\Node|null $phpParserUnionType
|
||||
*/
|
||||
private function shouldSkipParamTypeRefactor($type, $phpParserUnionType) : bool
|
||||
{
|
||||
if (!$phpParserUnionType instanceof PhpParserUnionType) {
|
||||
|
|
|
@ -114,7 +114,6 @@ CODE_SAMPLE
|
|||
* Covers:
|
||||
* $isMatch = substr($haystack, -strlen($needle)) === $needle;
|
||||
* $isMatch = 'needle' === substr($haystack, -6)
|
||||
* @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BooleanNot|null
|
||||
*/
|
||||
private function refactorSubstr(BinaryOp $binaryOp)
|
||||
{
|
||||
|
@ -141,9 +140,6 @@ CODE_SAMPLE
|
|||
$isPositive = $binaryOp instanceof Identical;
|
||||
return $this->buildReturnNode($haystack, $comparedNeedleExpr, $isPositive);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\BooleanNot|null
|
||||
*/
|
||||
private function refactorSubstrCompare(BinaryOp $binaryOp)
|
||||
{
|
||||
$funcCallAndExpr = $this->binaryOpAnalyzer->matchFuncCallAndOtherExpr($binaryOp, 'substr_compare');
|
||||
|
|
|
@ -26,7 +26,7 @@ final class CondAndExpr
|
|||
* @param Expr[]|null $condExprs
|
||||
* @param MatchKind::* $matchKind
|
||||
*/
|
||||
public function __construct($condExprs, Expr $expr, string $matchKind)
|
||||
public function __construct(?array $condExprs, Expr $expr, string $matchKind)
|
||||
{
|
||||
$this->condExprs = $condExprs;
|
||||
$this->expr = $expr;
|
||||
|
@ -39,7 +39,7 @@ final class CondAndExpr
|
|||
/**
|
||||
* @return Expr[]|null
|
||||
*/
|
||||
public function getCondExprs()
|
||||
public function getCondExprs() : ?array
|
||||
{
|
||||
// internally checked by PHPStan, cannot be empty array
|
||||
if ($this->condExprs === []) {
|
||||
|
|
|
@ -101,9 +101,6 @@ CODE_SAMPLE
|
|||
$enumConstFetch = $this->nodeFactory->createClassConstFetch($className, $enumCaseName);
|
||||
return new PropertyFetch($enumConstFetch, 'value');
|
||||
}
|
||||
/**
|
||||
* @return null|\PhpParser\Node\Expr\ClassConstFetch|\PhpParser\Node\Expr\PropertyFetch
|
||||
*/
|
||||
private function refactorMethodCall(MethodCall $methodCall, string $methodName)
|
||||
{
|
||||
if (!$this->isObjectType($methodCall->var, new ObjectType('MyCLabs\\Enum\\Enum'))) {
|
||||
|
|
|
@ -136,10 +136,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $property;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Param|null
|
||||
*/
|
||||
private function refactorParam(Param $param)
|
||||
private function refactorParam(Param $param) : ?\PhpParser\Node\Param
|
||||
{
|
||||
if (!$this->visibilityManipulator->hasVisibility($param, Visibility::PRIVATE)) {
|
||||
return null;
|
||||
|
|
|
@ -24,10 +24,7 @@ final class ConstantNaming
|
|||
$propertyName = $this->nodeNameResolver->getName($propertyProperty);
|
||||
return $this->createUnderscoreUppercaseString($propertyName);
|
||||
}
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function createFromVariable(Variable $variable)
|
||||
public function createFromVariable(Variable $variable) : ?string
|
||||
{
|
||||
$variableName = $this->nodeNameResolver->getName($variable);
|
||||
if ($variableName === null) {
|
||||
|
|
|
@ -35,9 +35,6 @@ final class ExactCompareFactory
|
|||
{
|
||||
$this->nodeFactory = $nodeFactory;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BooleanNot|\PhpParser\Node\Expr\Instanceof_|null
|
||||
*/
|
||||
public function createIdenticalFalsyCompare(Type $exprType, Expr $expr, bool $treatAsNonEmpty)
|
||||
{
|
||||
if ($exprType instanceof StringType) {
|
||||
|
@ -60,9 +57,6 @@ final class ExactCompareFactory
|
|||
}
|
||||
return $this->createTruthyFromUnionType($exprType, $expr, $treatAsNonEmpty);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null
|
||||
*/
|
||||
public function createNotIdenticalFalsyCompare(Type $exprType, Expr $expr, bool $treatAsNotEmpty)
|
||||
{
|
||||
if ($exprType instanceof StringType) {
|
||||
|
@ -79,9 +73,6 @@ final class ExactCompareFactory
|
|||
}
|
||||
return $this->createFromUnionType($exprType, $expr, $treatAsNotEmpty);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null
|
||||
*/
|
||||
private function createFromUnionType(UnionType $unionType, Expr $expr, bool $treatAsNotEmpty)
|
||||
{
|
||||
$unionType = TypeCombinator::removeNull($unionType);
|
||||
|
@ -102,9 +93,6 @@ final class ExactCompareFactory
|
|||
}
|
||||
return new BooleanAnd($toNullNotIdentical, $compareExpr);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null
|
||||
*/
|
||||
private function resolveFromCleanedNullUnionType(UnionType $unionType, Expr $expr, bool $treatAsNotEmpty)
|
||||
{
|
||||
$compareExprs = [];
|
||||
|
@ -130,7 +118,6 @@ final class ExactCompareFactory
|
|||
}
|
||||
/**
|
||||
* @param array<Identical|BooleanOr|NotIdentical|BooleanAnd|Instanceof_|null> $compareExprs
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\Instanceof_|\PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\BooleanAnd|null
|
||||
*/
|
||||
private function resolveTruthyExpr(array $compareExprs)
|
||||
{
|
||||
|
@ -146,9 +133,6 @@ final class ExactCompareFactory
|
|||
}
|
||||
return $truthyExpr;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr\BinaryOp\BooleanOr|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BooleanNot|\PhpParser\Node\Expr\Instanceof_|null
|
||||
*/
|
||||
private function createTruthyFromUnionType(UnionType $unionType, Expr $expr, bool $treatAsNonEmpty)
|
||||
{
|
||||
$unionType = $this->cleanUpPossibleNullableUnionType($unionType);
|
||||
|
|
|
@ -60,9 +60,8 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param Empty_|BooleanNot $node
|
||||
* @return \PhpParser\Node\Expr|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
public function refactor(Node $node) : ?\PhpParser\Node\Expr
|
||||
{
|
||||
$scope = $node->getAttribute(AttributeKey::SCOPE);
|
||||
if (!$scope instanceof Scope) {
|
||||
|
@ -76,10 +75,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $this->refactorEmpty($node, $scope, $this->treatAsNonEmpty);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr|null
|
||||
*/
|
||||
private function refactorBooleanNot(BooleanNot $booleanNot, Scope $scope)
|
||||
private function refactorBooleanNot(BooleanNot $booleanNot, Scope $scope) : ?\PhpParser\Node\Expr
|
||||
{
|
||||
if (!$booleanNot->expr instanceof Empty_) {
|
||||
return null;
|
||||
|
@ -88,10 +84,7 @@ CODE_SAMPLE
|
|||
$emptyExprType = $scope->getType($empty->expr);
|
||||
return $this->exactCompareFactory->createNotIdenticalFalsyCompare($emptyExprType, $empty->expr, $this->treatAsNonEmpty);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr|null
|
||||
*/
|
||||
private function refactorEmpty(Empty_ $empty, Scope $scope, bool $treatAsNonEmpty)
|
||||
private function refactorEmpty(Empty_ $empty, Scope $scope, bool $treatAsNonEmpty) : ?\PhpParser\Node\Expr
|
||||
{
|
||||
$exprType = $scope->getType($empty->expr);
|
||||
return $this->exactCompareFactory->createIdenticalFalsyCompare($exprType, $empty->expr, $treatAsNonEmpty);
|
||||
|
|
|
@ -38,7 +38,6 @@ final class CallerParamMatcher
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall $call
|
||||
* @return null|\PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\NullableType|\PhpParser\Node\UnionType|\PhpParser\Node\ComplexType
|
||||
*/
|
||||
public function matchCallParamType($call, Param $param, Scope $scope)
|
||||
{
|
||||
|
@ -78,9 +77,8 @@ final class CallerParamMatcher
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall $call
|
||||
* @return int|null
|
||||
*/
|
||||
private function matchCallArgPosition($call, Param $param)
|
||||
private function matchCallArgPosition($call, Param $param) : ?int
|
||||
{
|
||||
$paramName = $this->nodeNameResolver->getName($param);
|
||||
foreach ($call->args as $argPosition => $arg) {
|
||||
|
|
|
@ -26,7 +26,7 @@ final class ExclusiveNativeCallLikeReturnMatcher
|
|||
* @param Return_[] $returns
|
||||
* @return array<StaticCall|FuncCall|MethodCall>|null
|
||||
*/
|
||||
public function match(array $returns)
|
||||
public function match(array $returns) : ?array
|
||||
{
|
||||
$callLikes = [];
|
||||
foreach ($returns as $return) {
|
||||
|
|
|
@ -53,10 +53,9 @@ final class ObjectTypeSpecifier
|
|||
$this->typeWithClassTypeSpecifiers = $typeWithClassTypeSpecifiers;
|
||||
}
|
||||
/**
|
||||
* @param \PHPStan\Analyser\Scope|null $scope
|
||||
* @return \PHPStan\Type\TypeWithClassName|\Rector\StaticTypeMapper\ValueObject\Type\NonExistingObjectType|\PHPStan\Type\UnionType|\PHPStan\Type\MixedType
|
||||
*/
|
||||
public function narrowToFullyQualifiedOrAliasedObjectType(Node $node, ObjectType $objectType, $scope)
|
||||
public function narrowToFullyQualifiedOrAliasedObjectType(Node $node, ObjectType $objectType, ?\PHPStan\Analyser\Scope $scope)
|
||||
{
|
||||
// $nameScope = $this->nameScopeFactory->createNameScopeFromNodeWithoutTemplateTypes($node);
|
||||
// @todo reuse name scope
|
||||
|
@ -134,7 +133,6 @@ final class ObjectTypeSpecifier
|
|||
}
|
||||
/**
|
||||
* @param Use_[]|GroupUse[] $uses
|
||||
* @return \Rector\StaticTypeMapper\ValueObject\Type\ShortenedObjectType|\Rector\StaticTypeMapper\ValueObject\Type\ShortenedGenericObjectType|null
|
||||
*/
|
||||
private function matchShortenedObjectType(ObjectType $objectType, array $uses)
|
||||
{
|
||||
|
|
|
@ -135,7 +135,6 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\ArrowFunction|\PhpParser\Node\Expr\Closure $node
|
||||
* @return null|\PhpParser\Node\Expr\ArrowFunction|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Expr\Closure
|
||||
*/
|
||||
private function refactorDirectReturnNew($node)
|
||||
{
|
||||
|
|
|
@ -166,9 +166,8 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param Stmt[] $stmts
|
||||
* @return \PhpParser\Node\Expr\Variable|null
|
||||
*/
|
||||
private function matchArrayAssignedVariable(array $stmts)
|
||||
private function matchArrayAssignedVariable(array $stmts) : ?\PhpParser\Node\Expr\Variable
|
||||
{
|
||||
foreach ($stmts as $stmt) {
|
||||
if (!$stmt instanceof Expression) {
|
||||
|
|
|
@ -55,10 +55,7 @@ final class AlwaysStrictScalarExprAnalyzer
|
|||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @return \PHPStan\Type\Type|null
|
||||
*/
|
||||
private function resolveTypeFromScalar(Scalar $scalar)
|
||||
private function resolveTypeFromScalar(Scalar $scalar) : ?\PHPStan\Type\Type
|
||||
{
|
||||
if ($scalar instanceof String_) {
|
||||
return new StringType();
|
||||
|
|
|
@ -278,10 +278,7 @@ final class ReturnTypeInferer
|
|||
}
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* @return \PHPStan\Type\UnionType|null
|
||||
*/
|
||||
private function resolveUnionStaticTypes(UnionType $unionType, bool $isSupportedStaticReturnType)
|
||||
private function resolveUnionStaticTypes(UnionType $unionType, bool $isSupportedStaticReturnType) : ?\PHPStan\Type\UnionType
|
||||
{
|
||||
$resolvedTypes = [];
|
||||
$hasStatic = \false;
|
||||
|
|
|
@ -11,7 +11,7 @@ use PhpParser\Node\Stmt;
|
|||
interface NodePrinterInterface
|
||||
{
|
||||
/**
|
||||
* @param \PhpParser\Node|mixed[]|null $node
|
||||
* @param Node|Node[]|null $node
|
||||
*/
|
||||
public function print($node) : string;
|
||||
/**
|
||||
|
|
|
@ -57,9 +57,6 @@ final class CompactFuncCallAnalyzer
|
|||
}
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Arg|\PhpParser\Node\VariadicPlaceholder|\PhpParser\Node\Expr\ArrayItem|null $node
|
||||
*/
|
||||
private function shouldSkip($node) : bool
|
||||
{
|
||||
if ($node === null) {
|
||||
|
|
|
@ -54,9 +54,6 @@ final class PropertyPresenceChecker
|
|||
$propertyOrParam = $this->getClassContextProperty($class, $propertyMetadata);
|
||||
return $propertyOrParam !== null;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null
|
||||
*/
|
||||
public function getClassContextProperty(Class_ $class, PropertyMetadata $propertyMetadata)
|
||||
{
|
||||
$className = $this->nodeNameResolver->getName($class);
|
||||
|
@ -100,9 +97,6 @@ final class PropertyPresenceChecker
|
|||
}
|
||||
return $propertyReflections;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null
|
||||
*/
|
||||
private function matchPropertyByType(PropertyMetadata $propertyMetadata, PhpPropertyReflection $phpPropertyReflection)
|
||||
{
|
||||
if ($propertyMetadata->getType() === null) {
|
||||
|
@ -120,9 +114,6 @@ final class PropertyPresenceChecker
|
|||
}
|
||||
return $this->astResolver->resolvePropertyFromPropertyReflection($phpPropertyReflection);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null
|
||||
*/
|
||||
private function matchPropertyByParentNonPrivateProperties(string $className, PropertyMetadata $propertyMetadata)
|
||||
{
|
||||
$availablePropertyReflections = $this->getParentClassNonPrivatePropertyReflections($className);
|
||||
|
|
|
@ -105,9 +105,6 @@ final class AstResolver
|
|||
$this->nodeTypeResolver = $nodeTypeResolver;
|
||||
$this->classLikeAstResolver = $classLikeAstResolver;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null
|
||||
*/
|
||||
public function resolveClassFromName(string $className)
|
||||
{
|
||||
if (!$this->reflectionProvider->hasClass($className)) {
|
||||
|
@ -116,9 +113,6 @@ final class AstResolver
|
|||
$classReflection = $this->reflectionProvider->getClass($className);
|
||||
return $this->resolveClassFromClassReflection($classReflection, $className);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null
|
||||
*/
|
||||
public function resolveClassFromObjectType(TypeWithClassName $typeWithClassName)
|
||||
{
|
||||
return $this->resolveClassFromName($typeWithClassName->getClassName());
|
||||
|
@ -159,7 +153,6 @@ final class AstResolver
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall $call
|
||||
* @return \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|null
|
||||
*/
|
||||
public function resolveClassMethodOrFunctionFromCall($call, Scope $scope)
|
||||
{
|
||||
|
@ -229,9 +222,6 @@ final class AstResolver
|
|||
}
|
||||
return $this->resolveClassMethod($callerStaticType->getClassName(), $methodName);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null
|
||||
*/
|
||||
public function resolveClassFromClassReflection(ClassReflection $classReflection, string $className)
|
||||
{
|
||||
return $this->classLikeAstResolver->resolveClassFromClassReflection($classReflection, $className);
|
||||
|
@ -264,9 +254,6 @@ final class AstResolver
|
|||
}
|
||||
return $traits;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Property|\PhpParser\Node\Param|null
|
||||
*/
|
||||
public function resolvePropertyFromPropertyReflection(PhpPropertyReflection $phpPropertyReflection)
|
||||
{
|
||||
$classReflection = $phpPropertyReflection->getDeclaringClass();
|
||||
|
|
|
@ -36,9 +36,6 @@ final class ClassLikeAstResolver
|
|||
$this->smartPhpParser = $smartPhpParser;
|
||||
$this->betterNodeFinder = $betterNodeFinder;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Trait_|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_|\PhpParser\Node\Stmt\Enum_|null
|
||||
*/
|
||||
public function resolveClassFromClassReflection(ClassReflection $classReflection, string $desiredClassName)
|
||||
{
|
||||
if ($classReflection->isBuiltin()) {
|
||||
|
|
|
@ -25,7 +25,7 @@ final class NodeComparator
|
|||
}
|
||||
/**
|
||||
* Removes all comments from both nodes
|
||||
* @param \PhpParser\Node|mixed[]|null $node
|
||||
* @param Node|Node[]|null $node
|
||||
*/
|
||||
public function printWithoutComments($node) : string
|
||||
{
|
||||
|
@ -34,8 +34,8 @@ final class NodeComparator
|
|||
return \trim($content);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node|mixed[]|null $firstNode
|
||||
* @param \PhpParser\Node|mixed[]|null $secondNode
|
||||
* @param Node|Node[]|null $firstNode
|
||||
* @param Node|Node[]|null $secondNode
|
||||
*/
|
||||
public function areNodesEqual($firstNode, $secondNode) : bool
|
||||
{
|
||||
|
|
|
@ -430,7 +430,6 @@ final class NodeFactory
|
|||
return $classConst;
|
||||
}
|
||||
/**
|
||||
* @param string|int|null $key
|
||||
* @param mixed $item
|
||||
*/
|
||||
private function createArrayItem($item, $key = null) : ArrayItem
|
||||
|
@ -461,9 +460,6 @@ final class NodeFactory
|
|||
$nodeClass = \is_object($item) ? \get_class($item) : $item;
|
||||
throw new NotImplementedYetException(\sprintf('Not implemented yet. Go to "%s()" and add check for "%s" node.', __METHOD__, (string) $nodeClass));
|
||||
}
|
||||
/**
|
||||
* @param int|string|null $key
|
||||
*/
|
||||
private function decorateArrayItemWithKey($key, ArrayItem $arrayItem) : void
|
||||
{
|
||||
if ($key === null) {
|
||||
|
|
|
@ -111,7 +111,7 @@ final class BetterStandardPrinter extends Standard implements NodePrinterInterfa
|
|||
return $content;
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node|mixed[]|null $node
|
||||
* @param Node|Node[]|null $node
|
||||
*/
|
||||
public function print($node) : string
|
||||
{
|
||||
|
|
|
@ -181,7 +181,6 @@ final class ReflectionResolver
|
|||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\StaticCall $call
|
||||
* @return \PHPStan\Reflection\MethodReflection|\PHPStan\Reflection\FunctionReflection|null
|
||||
*/
|
||||
public function resolveFunctionLikeReflectionFromCall($call)
|
||||
{
|
||||
|
@ -246,9 +245,6 @@ final class ReflectionResolver
|
|||
}
|
||||
return $classReflection->getNativeProperty($propertyName);
|
||||
}
|
||||
/**
|
||||
* @return \PHPStan\Reflection\FunctionReflection|\PHPStan\Reflection\MethodReflection|null
|
||||
*/
|
||||
private function resolveFunctionReflectionFromFuncCall(FuncCall $funcCall)
|
||||
{
|
||||
$scope = $funcCall->getAttribute(AttributeKey::SCOPE);
|
||||
|
|
|
@ -64,11 +64,8 @@ final class Configuration
|
|||
/**
|
||||
* @param string[] $fileExtensions
|
||||
* @param string[] $paths
|
||||
* @param string|null $parallelPort
|
||||
* @param string|null $parallelIdentifier
|
||||
* @param string|null $memoryLimit
|
||||
*/
|
||||
public function __construct(bool $isDryRun = \false, bool $showProgressBar = \true, bool $shouldClearCache = \false, string $outputFormat = ConsoleOutputFormatter::NAME, array $fileExtensions = ['php'], array $paths = [], bool $showDiffs = \true, $parallelPort = null, $parallelIdentifier = null, bool $isParallel = \false, $memoryLimit = null)
|
||||
public function __construct(bool $isDryRun = \false, bool $showProgressBar = \true, bool $shouldClearCache = \false, string $outputFormat = ConsoleOutputFormatter::NAME, array $fileExtensions = ['php'], array $paths = [], bool $showDiffs = \true, ?string $parallelPort = null, ?string $parallelIdentifier = null, bool $isParallel = \false, ?string $memoryLimit = null)
|
||||
{
|
||||
$this->isDryRun = $isDryRun;
|
||||
$this->showProgressBar = $showProgressBar;
|
||||
|
|
|
@ -27,12 +27,7 @@ final class SystemError implements SerializableInterface
|
|||
* @var string|null
|
||||
*/
|
||||
private $rectorClass = null;
|
||||
/**
|
||||
* @param string|null $relativeFilePath
|
||||
* @param int|null $line
|
||||
* @param string|null $rectorClass
|
||||
*/
|
||||
public function __construct(string $message, $relativeFilePath = null, $line = null, $rectorClass = null)
|
||||
public function __construct(string $message, ?string $relativeFilePath = null, ?int $line = null, ?string $rectorClass = null)
|
||||
{
|
||||
$this->message = $message;
|
||||
$this->relativeFilePath = $relativeFilePath;
|
||||
|
@ -43,17 +38,11 @@ final class SystemError implements SerializableInterface
|
|||
{
|
||||
return $this->message;
|
||||
}
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFile()
|
||||
public function getFile() : ?string
|
||||
{
|
||||
return $this->relativeFilePath;
|
||||
}
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getLine()
|
||||
public function getLine() : ?int
|
||||
{
|
||||
return $this->line;
|
||||
}
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95::getLoader();
|
||||
return ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86::getLoader();
|
||||
|
|
274
vendor/composer/autoload_classmap.php
vendored
274
vendor/composer/autoload_classmap.php
vendored
|
@ -1795,140 +1795,140 @@ return array(
|
|||
'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorEmptyAssignRemover' => $baseDir . '/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php',
|
||||
'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorImportsMerger' => $baseDir . '/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php',
|
||||
'Rector\\DogFood\\Rector\\Closure\\UpgradeRectorConfigRector' => $baseDir . '/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php',
|
||||
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/ArgManipulator.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/UnpackedArgList.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php',
|
||||
'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/JsonConstCleaner.php',
|
||||
'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php',
|
||||
'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/DefaultParameterValueResolver.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php',
|
||||
'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php',
|
||||
'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php',
|
||||
'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php',
|
||||
'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php',
|
||||
'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => $vendorDir . '/rector/rector-downgrade-php/src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php',
|
||||
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php',
|
||||
'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php',
|
||||
'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php',
|
||||
'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php',
|
||||
'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php',
|
||||
'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php',
|
||||
'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php',
|
||||
'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php',
|
||||
'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => $vendorDir . '/rector/rector-downgrade-php/rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php',
|
||||
'Rector\\EarlyReturn\\NodeFactory\\InvertedIfFactory' => $baseDir . '/rules/EarlyReturn/NodeFactory/InvertedIfFactory.php',
|
||||
'Rector\\EarlyReturn\\NodeTransformer\\ConditionInverter' => $baseDir . '/rules/EarlyReturn/NodeTransformer/ConditionInverter.php',
|
||||
'Rector\\EarlyReturn\\Rector\\Foreach_\\ChangeNestedForeachIfsToEarlyContinueRector' => $baseDir . '/rules/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector.php',
|
||||
|
@ -2436,6 +2436,7 @@ return array(
|
|||
'Rector\\PhpAttribute\\UnwrapableAnnotationAnalyzer' => $baseDir . '/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php',
|
||||
'Rector\\PhpAttribute\\UseAliasNameMatcher' => $baseDir . '/packages/PhpAttribute/UseAliasNameMatcher.php',
|
||||
'Rector\\PhpAttribute\\ValueObject\\UseAliasMetadata' => $baseDir . '/packages/PhpAttribute/ValueObject/UseAliasMetadata.php',
|
||||
'Rector\\PhpDocDecorator\\PhpDocFromTypeDeclarationDecorator' => $vendorDir . '/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php',
|
||||
'Rector\\PostRector\\Application\\PostFileProcessor' => $baseDir . '/packages/PostRector/Application/PostFileProcessor.php',
|
||||
'Rector\\PostRector\\Collector\\NodesToAddCollector' => $baseDir . '/packages/PostRector/Collector/NodesToAddCollector.php',
|
||||
'Rector\\PostRector\\Collector\\NodesToRemoveCollector' => $baseDir . '/packages/PostRector/Collector/NodesToRemoveCollector.php',
|
||||
|
@ -2557,8 +2558,8 @@ return array(
|
|||
'Rector\\Restoration\\Rector\\Property\\MakeTypedPropertyNullableIfCheckedRector' => $baseDir . '/rules/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector.php',
|
||||
'Rector\\Restoration\\ValueObject\\CompleteImportForPartialAnnotation' => $baseDir . '/rules/Restoration/ValueObject/CompleteImportForPartialAnnotation.php',
|
||||
'Rector\\Set\\Contract\\SetListInterface' => $baseDir . '/packages/Set/Contract/SetListInterface.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => $vendorDir . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeLevelSetList.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeSetList' => $vendorDir . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeSetList.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => $vendorDir . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeSetList' => $vendorDir . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php',
|
||||
'Rector\\Set\\ValueObject\\LevelSetList' => $baseDir . '/packages/Set/ValueObject/LevelSetList.php',
|
||||
'Rector\\Set\\ValueObject\\SetList' => $baseDir . '/packages/Set/ValueObject/SetList.php',
|
||||
'Rector\\StaticTypeMapper\\Contract\\PhpDocParser\\PhpDocTypeMapperInterface' => $baseDir . '/packages/StaticTypeMapper/Contract/PhpDocParser/PhpDocTypeMapperInterface.php',
|
||||
|
@ -2917,6 +2918,7 @@ return array(
|
|||
'Rector\\TypeDeclaration\\ValueObject\\AddReturnTypeDeclaration' => $baseDir . '/rules/TypeDeclaration/ValueObject/AddReturnTypeDeclaration.php',
|
||||
'Rector\\TypeDeclaration\\ValueObject\\AssignToVariable' => $baseDir . '/rules/TypeDeclaration/ValueObject/AssignToVariable.php',
|
||||
'Rector\\TypeDeclaration\\ValueObject\\NestedArrayType' => $baseDir . '/rules/TypeDeclaration/ValueObject/NestedArrayType.php',
|
||||
'Rector\\ValueObject\\ClassMethodWillChangeReturnType' => $vendorDir . '/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php',
|
||||
'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodParamVendorLockResolver' => $baseDir . '/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php',
|
||||
'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnTypeOverrideGuard' => $baseDir . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnTypeOverrideGuard.php',
|
||||
'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnVendorLockResolver' => $baseDir . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnVendorLockResolver.php',
|
||||
|
|
3
vendor/composer/autoload_psr4.php
vendored
3
vendor/composer/autoload_psr4.php
vendored
|
@ -11,7 +11,6 @@ return array(
|
|||
'Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'),
|
||||
'Rector\\Utils\\' => array($baseDir . '/utils'),
|
||||
'Rector\\Symfony\\' => array($vendorDir . '/rector/rector-symfony/src'),
|
||||
'Rector\\Set\\' => array($vendorDir . '/rector/rector-downgrade-php/packages/Set'),
|
||||
'Rector\\RectorInstaller\\' => array($vendorDir . '/rector/extension-installer/src'),
|
||||
'Rector\\RectorGenerator\\' => array($vendorDir . '/rector/rector-generator/src'),
|
||||
'Rector\\PHPUnit\\' => array($vendorDir . '/rector/rector-phpunit/src'),
|
||||
|
@ -20,7 +19,7 @@ return array(
|
|||
'Rector\\Doctrine\\' => array($vendorDir . '/rector/rector-doctrine/src'),
|
||||
'Rector\\Core\\' => array($baseDir . '/src'),
|
||||
'Rector\\CakePHP\\' => array($vendorDir . '/rector/rector-cakephp/src'),
|
||||
'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src'),
|
||||
'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src', $vendorDir . '/rector/rector-downgrade-php/rules'),
|
||||
'RectorPrefix202208\\Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
|
||||
'RectorPrefix202208\\Symplify\\SymplifyKernel\\' => array($vendorDir . '/symplify/symplify-kernel/src'),
|
||||
'RectorPrefix202208\\Symplify\\SmartFileSystem\\' => array($vendorDir . '/symplify/smart-file-system/src'),
|
||||
|
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
||||
class ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2b020fc2c32ea758876b724fb0f16b86', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire10b4ea0a7ff8ef829e26b5299c6f9e95($fileIdentifier, $file);
|
||||
composerRequire2b020fc2c32ea758876b724fb0f16b86($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire10b4ea0a7ff8ef829e26b5299c6f9e95($fileIdentifier, $file)
|
||||
function composerRequire2b020fc2c32ea758876b724fb0f16b86($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
288
vendor/composer/autoload_static.php
vendored
288
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
||||
class ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
|
@ -30,7 +30,6 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
array (
|
||||
'Rector\\Utils\\' => 13,
|
||||
'Rector\\Symfony\\' => 15,
|
||||
'Rector\\Set\\' => 11,
|
||||
'Rector\\RectorInstaller\\' => 23,
|
||||
'Rector\\RectorGenerator\\' => 23,
|
||||
'Rector\\PHPUnit\\' => 15,
|
||||
|
@ -106,10 +105,6 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
array (
|
||||
0 => __DIR__ . '/..' . '/rector/rector-symfony/src',
|
||||
),
|
||||
'Rector\\Set\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/rector/rector-downgrade-php/packages/Set',
|
||||
),
|
||||
'Rector\\RectorInstaller\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/rector/extension-installer/src',
|
||||
|
@ -147,6 +142,7 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
0 => __DIR__ . '/../..' . '/packages',
|
||||
1 => __DIR__ . '/../..' . '/rules',
|
||||
2 => __DIR__ . '/..' . '/rector/rector-downgrade-php/src',
|
||||
3 => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules',
|
||||
),
|
||||
'RectorPrefix202208\\Webmozart\\Assert\\' =>
|
||||
array (
|
||||
|
@ -2096,140 +2092,140 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorEmptyAssignRemover' => __DIR__ . '/../..' . '/rules/DogFood/NodeManipulator/ContainerConfiguratorEmptyAssignRemover.php',
|
||||
'Rector\\DogFood\\NodeManipulator\\ContainerConfiguratorImportsMerger' => __DIR__ . '/../..' . '/rules/DogFood/NodeManipulator/ContainerConfiguratorImportsMerger.php',
|
||||
'Rector\\DogFood\\Rector\\Closure\\UpgradeRectorConfigRector' => __DIR__ . '/../..' . '/rules/DogFood/Rector/Closure/UpgradeRectorConfigRector.php',
|
||||
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/ArgManipulator.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/NodeManipulator/UnpackedArgList.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php',
|
||||
'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/NodeManipulator/JsonConstCleaner.php',
|
||||
'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php',
|
||||
'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/DefaultParameterValueResolver.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php',
|
||||
'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php',
|
||||
'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php',
|
||||
'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php',
|
||||
'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php',
|
||||
'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php',
|
||||
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeThisInClosureRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FuncCall\\DowngradeIndirectCallByArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\FunctionLike\\DowngradeCallableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php',
|
||||
'Rector\\DowngradePhp54\\Rector\\MethodCall\\DowngradeInstanceMethodCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Foreach_\\DowngradeForeachListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\FuncCall\\DowngradeBoolvalRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php',
|
||||
'Rector\\DowngradePhp55\\Rector\\Isset_\\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\ArgManipulator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/ArgManipulator.php',
|
||||
'Rector\\DowngradePhp56\\NodeManipulator\\UnpackedArgList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/NodeManipulator/UnpackedArgList.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\CallLike\\DowngradeArgumentUnpackingRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\FuncCall\\DowngradeArrayFilterUseConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php',
|
||||
'Rector\\DowngradePhp56\\Rector\\Use_\\DowngradeUseFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php',
|
||||
'Rector\\DowngradePhp70\\NodeFactory\\ClassFromAnonymousFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/NodeFactory/ClassFromAnonymousFactory.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeParentTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\ClassMethod\\DowngradeSelfTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Coalesce\\DowngradeNullCoalesceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Declare_\\DowngradeStrictTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expr\\DowngradeUnnecessarilyParenthesizedExpressionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Expression\\DowngradeDefineArrayConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeDirnameLevelsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeSessionStartArrayOptionsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FuncCall\\DowngradeUncallableValueCallToCallUserFuncRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeScalarTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\FunctionLike\\DowngradeThrowableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\GroupUse\\SplitGroupedUseImportsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Instanceof_\\DowngradeInstanceofThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeClosureCallRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\MethodCall\\DowngradeMethodCallOnCloneRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\New_\\DowngradeAnonymousClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\Spaceship\\DowngradeSpaceshipRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php',
|
||||
'Rector\\DowngradePhp70\\Rector\\TryCatch\\DowngradeCatchThrowableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php',
|
||||
'Rector\\DowngradePhp70\\Tokenizer\\WrappedInParenthesesAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp70/Tokenizer/WrappedInParenthesesAnalyzer.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\Array_\\SymmetricArrayDestructuringToListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ClassConst\\DowngradeClassConstantVisibilityRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\ConstFetch\\DowngradePhp71JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FuncCall\\DowngradeIsIterableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeIterablePseudoTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeNullableTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\FunctionLike\\DowngradeVoidTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\List_\\DowngradeKeysInListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\StaticCall\\DowngradeClosureFromCallableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\String_\\DowngradeNegativeStringOffsetToStrlenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php',
|
||||
'Rector\\DowngradePhp71\\Rector\\TryCatch\\DowngradePipeToMultiCatchExceptionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\BuiltInMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/BuiltInMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\FunctionExistsFunCallAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/FunctionExistsFunCallAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\OverrideFromAnonymousClassMethodAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/OverrideFromAnonymousClassMethodAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\RegexFuncAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/RegexFuncAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeAnalyzer\\SealedClassAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeAnalyzer/SealedClassAnalyzer.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\BitwiseFlagCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php',
|
||||
'Rector\\DowngradePhp72\\NodeManipulator\\JsonConstCleaner' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php',
|
||||
'Rector\\DowngradePhp72\\PhpDoc\\NativeParamToPhpDocDecorator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ClassMethod\\DowngradeParameterTypeWideningRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\ConstFetch\\DowngradePhp72JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeJsonDecodeNullAssociativeArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradeStreamIsattyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php',
|
||||
'Rector\\DowngradePhp72\\Rector\\FunctionLike\\DowngradeObjectTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\ConstFetch\\DowngradePhp73JsonConstRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeArrayKeyFirstLastRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeIsCountableRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\DowngradeTrailingCommasInFunctionCallsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\FuncCall\\SetCookieOptionsArrayToArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\List_\\DowngradeListReferenceAssignmentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php',
|
||||
'Rector\\DowngradePhp73\\Rector\\String_\\DowngradeFlexibleHeredocSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php',
|
||||
'Rector\\DowngradePhp73\\Tokenizer\\FollowedByCommaAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Array_\\DowngradeArraySpreadRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ArrowFunction\\ArrowFunctionToAnonymousFunctionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeContravariantArgumentTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\ClassMethod\\DowngradeCovariantReturnTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Coalesce\\DowngradeNullCoalescingOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeArrayMergeCallWithoutArgumentsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\FuncCall\\DowngradeStripTagsCallWithArrayRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Identical\\DowngradeFreadFwriteFalsyToNegationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Interface_\\DowngradePreviouslyImplementedInterfaceRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\LNumber\\DowngradeNumericLiteralSeparatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\MethodCall\\DowngradeReflectionGetTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php',
|
||||
'Rector\\DowngradePhp74\\Rector\\Property\\DowngradeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\EnumAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/EnumAnalyzer.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\NamedToUnnamedArgs' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php',
|
||||
'Rector\\DowngradePhp80\\NodeAnalyzer\\UnnamedArgumentResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ArrayDimFetch\\DowngradeDereferenceableOperationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Catch_\\DowngradeNonCapturingCatchesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassConstFetch\\DowngradeClassOnObjectToGetClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeAbstractPrivateMethodInTraitRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeRecursiveDirectoryIteratorHasChildrenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStaticTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeStringReturnTypeOnToStringRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\ClassMethod\\DowngradeTrailingCommasInParamUseRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradeAttributeToAnnotationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Class_\\DowngradePropertyPromotionRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Enum_\\DowngradeEnumToConstantListClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeMatchToSwitchRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Expression\\DowngradeThrowExprRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeArrayFilterNullableCallbackRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeNumberFormatNoFourthArgRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrContainsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrEndsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FuncCall\\DowngradeStrStartsWithRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeMixedTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\FunctionLike\\DowngradeUnionTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Instanceof_\\DowngradePhp80ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeNamedArgumentRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionClassGetConstantsFilterRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionGetAttributesRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\MethodCall\\DowngradeReflectionPropertyGetDefaultValueRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\New_\\DowngradeArbitraryExpressionsSupportRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\NullsafeMethodCall\\DowngradeNullsafeToTernaryOperatorRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeMixedTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\Property\\DowngradeUnionTypeTypedPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php',
|
||||
'Rector\\DowngradePhp80\\Rector\\StaticCall\\DowngradePhpTokenRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\DefaultParameterValueResolver' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/DefaultParameterValueResolver.php',
|
||||
'Rector\\DowngradePhp80\\Reflection\\SimplePhpParameterReflection' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php',
|
||||
'Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp80/ValueObject/DowngradeAttributeToAnnotation.php',
|
||||
'Rector\\DowngradePhp81\\NodeAnalyzer\\ArraySpreadAnalyzer' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeAnalyzer/ArraySpreadAnalyzer.php',
|
||||
'Rector\\DowngradePhp81\\NodeFactory\\ArrayMergeFromArraySpreadFactory' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php',
|
||||
'Rector\\DowngradePhp81\\NodeManipulator\\ObjectToResourceReturn' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/NodeManipulator/ObjectToResourceReturn.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Array_\\DowngradeArraySpreadStringKeyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\ClassConst\\DowngradeFinalizePublicClassConstantRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeArrayIsListRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeEnumExistsRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeEnumExistsRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FuncCall\\DowngradeFirstClassCallableSyntaxRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNeverTypeDeclarationRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradeNewInInitializerRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\FunctionLike\\DowngradePureIntersectionTypeRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Instanceof_\\DowngradePhp81ResourceReturnToObjectRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php',
|
||||
'Rector\\DowngradePhp81\\Rector\\Property\\DowngradeReadonlyPropertyRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php',
|
||||
'Rector\\DowngradePhp82\\Rector\\Class_\\DowngradeReadonlyClassRector' => __DIR__ . '/..' . '/rector/rector-downgrade-php/rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php',
|
||||
'Rector\\EarlyReturn\\NodeFactory\\InvertedIfFactory' => __DIR__ . '/../..' . '/rules/EarlyReturn/NodeFactory/InvertedIfFactory.php',
|
||||
'Rector\\EarlyReturn\\NodeTransformer\\ConditionInverter' => __DIR__ . '/../..' . '/rules/EarlyReturn/NodeTransformer/ConditionInverter.php',
|
||||
'Rector\\EarlyReturn\\Rector\\Foreach_\\ChangeNestedForeachIfsToEarlyContinueRector' => __DIR__ . '/../..' . '/rules/EarlyReturn/Rector/Foreach_/ChangeNestedForeachIfsToEarlyContinueRector.php',
|
||||
|
@ -2737,6 +2733,7 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
'Rector\\PhpAttribute\\UnwrapableAnnotationAnalyzer' => __DIR__ . '/../..' . '/packages/PhpAttribute/UnwrapableAnnotationAnalyzer.php',
|
||||
'Rector\\PhpAttribute\\UseAliasNameMatcher' => __DIR__ . '/../..' . '/packages/PhpAttribute/UseAliasNameMatcher.php',
|
||||
'Rector\\PhpAttribute\\ValueObject\\UseAliasMetadata' => __DIR__ . '/../..' . '/packages/PhpAttribute/ValueObject/UseAliasMetadata.php',
|
||||
'Rector\\PhpDocDecorator\\PhpDocFromTypeDeclarationDecorator' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php',
|
||||
'Rector\\PostRector\\Application\\PostFileProcessor' => __DIR__ . '/../..' . '/packages/PostRector/Application/PostFileProcessor.php',
|
||||
'Rector\\PostRector\\Collector\\NodesToAddCollector' => __DIR__ . '/../..' . '/packages/PostRector/Collector/NodesToAddCollector.php',
|
||||
'Rector\\PostRector\\Collector\\NodesToRemoveCollector' => __DIR__ . '/../..' . '/packages/PostRector/Collector/NodesToRemoveCollector.php',
|
||||
|
@ -2858,8 +2855,8 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
'Rector\\Restoration\\Rector\\Property\\MakeTypedPropertyNullableIfCheckedRector' => __DIR__ . '/../..' . '/rules/Restoration/Rector/Property/MakeTypedPropertyNullableIfCheckedRector.php',
|
||||
'Rector\\Restoration\\ValueObject\\CompleteImportForPartialAnnotation' => __DIR__ . '/../..' . '/rules/Restoration/ValueObject/CompleteImportForPartialAnnotation.php',
|
||||
'Rector\\Set\\Contract\\SetListInterface' => __DIR__ . '/../..' . '/packages/Set/Contract/SetListInterface.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeLevelSetList.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/packages/Set/ValueObject/DowngradeSetList.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php',
|
||||
'Rector\\Set\\ValueObject\\DowngradeSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php',
|
||||
'Rector\\Set\\ValueObject\\LevelSetList' => __DIR__ . '/../..' . '/packages/Set/ValueObject/LevelSetList.php',
|
||||
'Rector\\Set\\ValueObject\\SetList' => __DIR__ . '/../..' . '/packages/Set/ValueObject/SetList.php',
|
||||
'Rector\\StaticTypeMapper\\Contract\\PhpDocParser\\PhpDocTypeMapperInterface' => __DIR__ . '/../..' . '/packages/StaticTypeMapper/Contract/PhpDocParser/PhpDocTypeMapperInterface.php',
|
||||
|
@ -3218,6 +3215,7 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
'Rector\\TypeDeclaration\\ValueObject\\AddReturnTypeDeclaration' => __DIR__ . '/../..' . '/rules/TypeDeclaration/ValueObject/AddReturnTypeDeclaration.php',
|
||||
'Rector\\TypeDeclaration\\ValueObject\\AssignToVariable' => __DIR__ . '/../..' . '/rules/TypeDeclaration/ValueObject/AssignToVariable.php',
|
||||
'Rector\\TypeDeclaration\\ValueObject\\NestedArrayType' => __DIR__ . '/../..' . '/rules/TypeDeclaration/ValueObject/NestedArrayType.php',
|
||||
'Rector\\ValueObject\\ClassMethodWillChangeReturnType' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/ValueObject/ClassMethodWillChangeReturnType.php',
|
||||
'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodParamVendorLockResolver' => __DIR__ . '/../..' . '/packages/VendorLocker/NodeVendorLocker/ClassMethodParamVendorLockResolver.php',
|
||||
'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnTypeOverrideGuard' => __DIR__ . '/../..' . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnTypeOverrideGuard.php',
|
||||
'Rector\\VendorLocker\\NodeVendorLocker\\ClassMethodReturnVendorLockResolver' => __DIR__ . '/../..' . '/packages/VendorLocker/NodeVendorLocker/ClassMethodReturnVendorLockResolver.php',
|
||||
|
@ -3251,9 +3249,9 @@ class ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit10b4ea0a7ff8ef829e26b5299c6f9e95::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit2b020fc2c32ea758876b724fb0f16b86::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
|
@ -1920,12 +1920,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
|
||||
"reference": "7ee4e58f8af4c6485fed261b0a0360a09b9c9d20"
|
||||
"reference": "076e341bf0aa86b3ac2312b14c9fd5115d332a6f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/7ee4e58f8af4c6485fed261b0a0360a09b9c9d20",
|
||||
"reference": "7ee4e58f8af4c6485fed261b0a0360a09b9c9d20",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/076e341bf0aa86b3ac2312b14c9fd5115d332a6f",
|
||||
"reference": "076e341bf0aa86b3ac2312b14c9fd5115d332a6f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1949,7 +1949,7 @@
|
|||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/vendor-patches": "^11.0"
|
||||
},
|
||||
"time": "2022-07-18T22:23:59+00:00",
|
||||
"time": "2022-08-11T14:24:10+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
@ -1966,8 +1966,10 @@
|
|||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Rector\\": "src",
|
||||
"Rector\\Set\\": "packages\/Set"
|
||||
"Rector\\": [
|
||||
"src",
|
||||
"rules"
|
||||
]
|
||||
}
|
||||
},
|
||||
"notification-url": "https:\/\/packagist.org\/downloads\/",
|
||||
|
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
|||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c2ec06c'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9781e77'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7ee4e58'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 20edb95'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3638a66'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 528d313'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f88fb13'));
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c2ec06c'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9781e77'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 076e341'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 20edb95'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3638a66'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 528d313'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f88fb13'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -79,10 +79,7 @@ final class AttributeFinder
|
|||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Expr|null
|
||||
*/
|
||||
private function findArgByName(Attribute $attribute, string $argName)
|
||||
private function findArgByName(Attribute $attribute, string $argName) : ?\PhpParser\Node\Expr
|
||||
{
|
||||
foreach ($attribute->args as $arg) {
|
||||
if ($arg->name === null) {
|
||||
|
|
|
@ -35,7 +35,6 @@ final class AttrinationFinder
|
|||
* @api
|
||||
* @param class-string $name
|
||||
* @param \PhpParser\Node\Stmt\Property|\PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Param $node
|
||||
* @return \Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode|\PhpParser\Node\Attribute|null
|
||||
*/
|
||||
public function getByOne($node, string $name)
|
||||
{
|
||||
|
|
|
@ -26,10 +26,7 @@ final class TargetEntityResolver
|
|||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
$this->reflectionProvider = $reflectionProvider;
|
||||
}
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function resolveFromExpr(Expr $targetEntityExpr)
|
||||
public function resolveFromExpr(Expr $targetEntityExpr) : ?string
|
||||
{
|
||||
if ($targetEntityExpr instanceof ClassConstFetch) {
|
||||
$targetEntity = (string) $this->nodeNameResolver->getName($targetEntityExpr->class);
|
||||
|
|
|
@ -105,10 +105,7 @@ final class ColumnPropertyTypeResolver
|
|||
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($property);
|
||||
return $this->resolveFromPhpDocInfo($phpDocInfo, $isNullable);
|
||||
}
|
||||
/**
|
||||
* @return null|\PHPStan\Type\Type
|
||||
*/
|
||||
private function resolveFromPhpDocInfo(PhpDocInfo $phpDocInfo, bool $isNullable)
|
||||
private function resolveFromPhpDocInfo(PhpDocInfo $phpDocInfo, bool $isNullable) : ?\PHPStan\Type\Type
|
||||
{
|
||||
$doctrineAnnotationTagValueNode = $phpDocInfo->findOneByAnnotationClass(self::COLUMN_CLASS);
|
||||
if (!$doctrineAnnotationTagValueNode instanceof DoctrineAnnotationTagValueNode) {
|
||||
|
|
|
@ -63,10 +63,7 @@ final class ToManyRelationPropertyTypeResolver
|
|||
}
|
||||
return $this->resolveTypeFromTargetEntity($expr, $property);
|
||||
}
|
||||
/**
|
||||
* @return \PHPStan\Type\Type|null
|
||||
*/
|
||||
private function processToManyRelation(Property $property, DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode)
|
||||
private function processToManyRelation(Property $property, DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode) : ?\PHPStan\Type\Type
|
||||
{
|
||||
$targetEntity = $doctrineAnnotationTagValueNode->getValueWithoutQuotes('targetEntity');
|
||||
if (!\is_string($targetEntity)) {
|
||||
|
|
|
@ -184,10 +184,7 @@ CODE_SAMPLE
|
|||
$assign->expr = new Variable($assignToPropertyFetch->getPropertyName());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Class_|null
|
||||
*/
|
||||
private function decorateClassWithAssignClassMethod(Class_ $class)
|
||||
private function decorateClassWithAssignClassMethod(Class_ $class) : ?\PhpParser\Node\Stmt\Class_
|
||||
{
|
||||
// complete public properties
|
||||
$constructClassMethod = $this->constructClassMethodFactory->createFromPublicClassProperties($class);
|
||||
|
|
|
@ -139,10 +139,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $assigns;
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Class_|null
|
||||
*/
|
||||
private function refactorClass(Class_ $class)
|
||||
private function refactorClass(Class_ $class) : ?\PhpParser\Node\Stmt\Class_
|
||||
{
|
||||
$toManyPropertyNames = $this->resolveToManyPropertyNames($class);
|
||||
if ($toManyPropertyNames === []) {
|
||||
|
|
|
@ -87,10 +87,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $this->refactorProperty($node);
|
||||
}
|
||||
/**
|
||||
* @return \PhpParser\Node\Stmt\Class_|null
|
||||
*/
|
||||
private function refactorClass(Class_ $class)
|
||||
private function refactorClass(Class_ $class) : ?\PhpParser\Node\Stmt\Class_
|
||||
{
|
||||
// change the node
|
||||
$classPhpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($class);
|
||||
|
|
|
@ -92,9 +92,8 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param Property $node
|
||||
* @return \PhpParser\Node\Stmt\Property|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
public function refactor(Node $node) : ?\PhpParser\Node\Stmt\Property
|
||||
{
|
||||
if ($node->type !== null) {
|
||||
return null;
|
||||
|
|
|
@ -85,9 +85,8 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param Property $node
|
||||
* @return \PhpParser\Node\Stmt\Property|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
public function refactor(Node $node) : ?\PhpParser\Node\Stmt\Property
|
||||
{
|
||||
if ($node->type !== null) {
|
||||
return null;
|
||||
|
|
|
@ -86,9 +86,8 @@ CODE_SAMPLE
|
|||
}
|
||||
/**
|
||||
* @param Property $node
|
||||
* @return \PhpParser\Node\Stmt\Property|null
|
||||
*/
|
||||
public function refactor(Node $node)
|
||||
public function refactor(Node $node) : ?\PhpParser\Node\Stmt\Property
|
||||
{
|
||||
if ($node->type !== null) {
|
||||
return null;
|
||||
|
|
13
vendor/rector/rector-downgrade-php/composer.json
vendored
13
vendor/rector/rector-downgrade-php/composer.json
vendored
|
@ -23,13 +23,18 @@
|
|||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Rector\\": "src",
|
||||
"Rector\\Set\\": "packages\/Set"
|
||||
"Rector\\": [
|
||||
"src",
|
||||
"rules"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Rector\\Tests\\": "tests"
|
||||
"Rector\\Tests\\": [
|
||||
"tests",
|
||||
"rules-tests"
|
||||
]
|
||||
},
|
||||
"classmap": [
|
||||
"stubs"
|
||||
|
@ -40,7 +45,7 @@
|
|||
"check-cs": "vendor\/bin\/ecs check --ansi",
|
||||
"fix-cs": "vendor\/bin\/ecs check --fix --ansi",
|
||||
"docs": [
|
||||
"vendor\/bin\/rule-doc-generator generate src --output-file docs\/rector_rules_overview.md --ansi",
|
||||
"vendor\/bin\/rule-doc-generator generate rules --output-file docs\/rector_rules_overview.md --ansi",
|
||||
"vendor\/bin\/ecs check-markdown docs\/rector_rules_overview.md --ansi --fix"
|
||||
]
|
||||
},
|
||||
|
|
|
@ -7,5 +7,6 @@ use Rector\Config\RectorConfig;
|
|||
return static function (RectorConfig $rectorConfig) : void {
|
||||
$services = $rectorConfig->services();
|
||||
$services->defaults()->public()->autowire()->autoconfigure();
|
||||
$services->load('Rector\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Downgrade*/Rector', __DIR__ . '/../src/*/ValueObject', __DIR__ . '/../src/DowngradePhp80/Reflection/SimplePhpParameterReflection.php']);
|
||||
$services->load('Rector\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Set', __DIR__ . '/../src/ValueObject']);
|
||||
$services->load('Rector\\', __DIR__ . '/../rules')->exclude([__DIR__ . '/../rules/Downgrade*/Rector', __DIR__ . '/../rules/*/ValueObject', __DIR__ . '/../rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php']);
|
||||
};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
Replace arrow functions with anonymous functions
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\ArrowFunction\ArrowFunctionToAnonymousFunctionRector`](../src/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\ArrowFunction\ArrowFunctionToAnonymousFunctionRector`](../rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -26,7 +26,7 @@ Replace arrow functions with anonymous functions
|
|||
|
||||
Refactor __DIR__ to dirname(__FILE__)
|
||||
|
||||
- class: [`Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector`](../src/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php)
|
||||
- class: [`Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector`](../rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php)
|
||||
|
||||
```diff
|
||||
final class SomeClass
|
||||
|
@ -45,7 +45,7 @@ Refactor __DIR__ to dirname(__FILE__)
|
|||
|
||||
Remove "abstract" from private methods in traits and adds an empty function body
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeAbstractPrivateMethodInTraitRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeAbstractPrivateMethodInTraitRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeAbstractPrivateMethodInTraitRector.php)
|
||||
|
||||
```diff
|
||||
trait SomeTrait
|
||||
|
@ -61,7 +61,7 @@ Remove "abstract" from private methods in traits and adds an empty function body
|
|||
|
||||
Remove anonymous class
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\New_\DowngradeAnonymousClassRector`](../src/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\New_\DowngradeAnonymousClassRector`](../rules/DowngradePhp70/Rector/New_/DowngradeAnonymousClassRector.php)
|
||||
|
||||
```diff
|
||||
+class Anonymous
|
||||
|
@ -90,7 +90,7 @@ Remove anonymous class
|
|||
|
||||
Downgrade arbitrary expression arguments to `empty()` and `isset()`
|
||||
|
||||
- class: [`Rector\DowngradePhp55\Rector\Isset_\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector`](../src/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php)
|
||||
- class: [`Rector\DowngradePhp55\Rector\Isset_\DowngradeArbitraryExpressionArgsToEmptyAndIssetRector`](../rules/DowngradePhp55/Rector/Isset_/DowngradeArbitraryExpressionArgsToEmptyAndIssetRector.php)
|
||||
|
||||
```diff
|
||||
-if (isset(some_function())) {
|
||||
|
@ -105,7 +105,7 @@ Downgrade arbitrary expression arguments to `empty()` and `isset()`
|
|||
|
||||
Replace arbitrary expressions used with new or instanceof.
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\New_\DowngradeArbitraryExpressionsSupportRector`](../src/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\New_\DowngradeArbitraryExpressionsSupportRector`](../rules/DowngradePhp80/Rector/New_/DowngradeArbitraryExpressionsSupportRector.php)
|
||||
|
||||
```diff
|
||||
function getObjectClassName() {
|
||||
|
@ -123,7 +123,7 @@ Replace arbitrary expressions used with new or instanceof.
|
|||
|
||||
Replace argument unpacking by `call_user_func_array()`
|
||||
|
||||
- class: [`Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector`](../src/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php)
|
||||
- class: [`Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector`](../rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -142,7 +142,7 @@ Replace argument unpacking by `call_user_func_array()`
|
|||
|
||||
Unset nullable callback on array_filter
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeArrayFilterNullableCallbackRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeArrayFilterNullableCallbackRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -162,7 +162,7 @@ Unset nullable callback on array_filter
|
|||
|
||||
Replace use ARRAY_FILTER_USE_BOTH and ARRAY_FILTER_USE_KEY to loop to filter it
|
||||
|
||||
- class: [`Rector\DowngradePhp56\Rector\FuncCall\DowngradeArrayFilterUseConstantRector`](../src/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php)
|
||||
- class: [`Rector\DowngradePhp56\Rector\FuncCall\DowngradeArrayFilterUseConstantRector`](../rules/DowngradePhp56/Rector/FuncCall/DowngradeArrayFilterUseConstantRector.php)
|
||||
|
||||
```diff
|
||||
$arr = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4];
|
||||
|
@ -186,7 +186,7 @@ Replace use ARRAY_FILTER_USE_BOTH and ARRAY_FILTER_USE_KEY to loop to filter it
|
|||
|
||||
Replace `array_is_list()` function
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeArrayIsListRector`](../src/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeArrayIsListRector`](../rules/DowngradePhp81/Rector/FuncCall/DowngradeArrayIsListRector.php)
|
||||
|
||||
```diff
|
||||
-array_is_list([1 => 'apple', 'orange']);
|
||||
|
@ -215,7 +215,7 @@ Replace `array_is_list()` function
|
|||
|
||||
Downgrade `array_key_first()` and `array_key_last()` functions
|
||||
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeArrayKeyFirstLastRector`](../src/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php)
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeArrayKeyFirstLastRector`](../rules/DowngradePhp73/Rector/FuncCall/DowngradeArrayKeyFirstLastRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -235,7 +235,7 @@ Downgrade `array_key_first()` and `array_key_last()` functions
|
|||
|
||||
Add missing param to `array_merge` and `array_merge_recursive`
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeArrayMergeCallWithoutArgumentsRector`](../src/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeArrayMergeCallWithoutArgumentsRector`](../rules/DowngradePhp74/Rector/FuncCall/DowngradeArrayMergeCallWithoutArgumentsRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -256,7 +256,7 @@ Add missing param to `array_merge` and `array_merge_recursive`
|
|||
|
||||
Replace array spread with array_merge function
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\Array_\DowngradeArraySpreadRector`](../src/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\Array_\DowngradeArraySpreadRector`](../rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -283,7 +283,7 @@ Replace array spread with array_merge function
|
|||
|
||||
Replace array spread with string key to array_merge function
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\Array_\DowngradeArraySpreadStringKeyRector`](../src/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\Array_\DowngradeArraySpreadStringKeyRector`](../rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php)
|
||||
|
||||
```diff
|
||||
$parts = ['a' => 'b'];
|
||||
|
@ -301,7 +301,7 @@ Refactor PHP attribute markers to annotations notation
|
|||
|
||||
:wrench: **configure it!**
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradeAttributeToAnnotationRector`](../src/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradeAttributeToAnnotationRector`](../rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php)
|
||||
|
||||
```php
|
||||
use Rector\Config\RectorConfig;
|
||||
|
@ -339,7 +339,7 @@ return static function (RectorConfig $rectorConfig): void {
|
|||
|
||||
Downgrade binary notation for integers
|
||||
|
||||
- class: [`Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector`](../src/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php)
|
||||
- class: [`Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector`](../rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php)
|
||||
|
||||
```diff
|
||||
-$a = 0b11111100101;
|
||||
|
@ -352,7 +352,7 @@ Downgrade binary notation for integers
|
|||
|
||||
Replace `boolval()` by type casting to boolean
|
||||
|
||||
- class: [`Rector\DowngradePhp55\Rector\FuncCall\DowngradeBoolvalRector`](../src/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php)
|
||||
- class: [`Rector\DowngradePhp55\Rector\FuncCall\DowngradeBoolvalRector`](../rules/DowngradePhp55/Rector/FuncCall/DowngradeBoolvalRector.php)
|
||||
|
||||
```diff
|
||||
-$bool = boolval($value);
|
||||
|
@ -365,7 +365,7 @@ Replace `boolval()` by type casting to boolean
|
|||
|
||||
Remove the "callable" param type, add a `@param` tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp54\Rector\FunctionLike\DowngradeCallableTypeDeclarationRector`](../src/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp54\Rector\FunctionLike\DowngradeCallableTypeDeclarationRector`](../rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -386,7 +386,7 @@ Remove the "callable" param type, add a `@param` tag instead
|
|||
|
||||
Make catch clauses catching `Throwable` also catch `Exception` to support exception hierarchies in PHP 5.
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\TryCatch\DowngradeCatchThrowableRector`](../src/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\TryCatch\DowngradeCatchThrowableRector`](../rules/DowngradePhp70/Rector/TryCatch/DowngradeCatchThrowableRector.php)
|
||||
|
||||
```diff
|
||||
try {
|
||||
|
@ -404,7 +404,7 @@ Make catch clauses catching `Throwable` also catch `Exception` to support except
|
|||
|
||||
Replace <class>::class constant by string class names
|
||||
|
||||
- class: [`Rector\DowngradePhp55\Rector\ClassConstFetch\DowngradeClassConstantToStringRector`](../src/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php)
|
||||
- class: [`Rector\DowngradePhp55\Rector\ClassConstFetch\DowngradeClassConstantToStringRector`](../rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php)
|
||||
|
||||
```diff
|
||||
class AnotherClass
|
||||
|
@ -426,7 +426,7 @@ Replace <class>::class constant by string class names
|
|||
|
||||
Downgrade class constant visibility
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\ClassConst\DowngradeClassConstantVisibilityRector`](../src/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\ClassConst\DowngradeClassConstantVisibilityRector`](../rules/DowngradePhp71/Rector/ClassConst/DowngradeClassConstantVisibilityRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -446,7 +446,7 @@ Downgrade class constant visibility
|
|||
|
||||
Change `$object::class` to get_class($object)
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassConstFetch\DowngradeClassOnObjectToGetClassRector`](../src/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassConstFetch\DowngradeClassOnObjectToGetClassRector`](../rules/DowngradePhp80/Rector/ClassConstFetch/DowngradeClassOnObjectToGetClassRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -465,7 +465,7 @@ Change `$object::class` to get_class($object)
|
|||
|
||||
Replace `Closure::call()` by `Closure::bindTo()`
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeClosureCallRector`](../src/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeClosureCallRector`](../rules/DowngradePhp70/Rector/MethodCall/DowngradeClosureCallRector.php)
|
||||
|
||||
```diff
|
||||
-$closure->call($newObj, ...$args);
|
||||
|
@ -478,7 +478,7 @@ Replace `Closure::call()` by `Closure::bindTo()`
|
|||
|
||||
Converts `Closure::fromCallable()` to compatible alternative.
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\StaticCall\DowngradeClosureFromCallableRector`](../src/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\StaticCall\DowngradeClosureFromCallableRector`](../rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php)
|
||||
|
||||
```diff
|
||||
-\Closure::fromCallable('callable');
|
||||
|
@ -494,7 +494,7 @@ Converts `Closure::fromCallable()` to compatible alternative.
|
|||
|
||||
Remove contravariant argument type declarations
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeContravariantArgumentTypeRector`](../src/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeContravariantArgumentTypeRector`](../rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php)
|
||||
|
||||
```diff
|
||||
class ParentType {}
|
||||
|
@ -525,7 +525,7 @@ Remove contravariant argument type declarations
|
|||
|
||||
Make method return same type as parent
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeCovariantReturnTypeRector`](../src/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\ClassMethod\DowngradeCovariantReturnTypeRector`](../rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php)
|
||||
|
||||
```diff
|
||||
class ParentType {}
|
||||
|
@ -556,7 +556,7 @@ Make method return same type as parent
|
|||
|
||||
Change array contant definition via define to const
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\Expression\DowngradeDefineArrayConstantRector`](../src/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\Expression\DowngradeDefineArrayConstantRector`](../rules/DowngradePhp70/Rector/Expression/DowngradeDefineArrayConstantRector.php)
|
||||
|
||||
```diff
|
||||
-define('ANIMALS', [
|
||||
|
@ -574,7 +574,7 @@ Change array contant definition via define to const
|
|||
|
||||
Add parentheses around non-dereferenceable expressions.
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\ArrayDimFetch\DowngradeDereferenceableOperationRector`](../src/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\ArrayDimFetch\DowngradeDereferenceableOperationRector`](../rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php)
|
||||
|
||||
```diff
|
||||
function getFirstChar(string $str, string $suffix = '')
|
||||
|
@ -590,7 +590,7 @@ Add parentheses around non-dereferenceable expressions.
|
|||
|
||||
Replace the 2nd argument of `dirname()`
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeDirnameLevelsRector`](../src/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeDirnameLevelsRector`](../rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php)
|
||||
|
||||
```diff
|
||||
-return dirname($path, 2);
|
||||
|
@ -603,7 +603,7 @@ Replace the 2nd argument of `dirname()`
|
|||
|
||||
Downgrade enum to constant list class
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Enum_\DowngradeEnumToConstantListClassRector`](../src/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Enum_\DowngradeEnumToConstantListClassRector`](../rules/DowngradePhp80/Rector/Enum_/DowngradeEnumToConstantListClassRector.php)
|
||||
|
||||
```diff
|
||||
-enum Direction
|
||||
|
@ -623,7 +623,7 @@ Downgrade enum to constant list class
|
|||
|
||||
Remove exponential assignment operator **=
|
||||
|
||||
- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector`](../src/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php)
|
||||
- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector`](../rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php)
|
||||
|
||||
```diff
|
||||
-$a **= 3;
|
||||
|
@ -636,7 +636,7 @@ Remove exponential assignment operator **=
|
|||
|
||||
Changes ** (exp) operator to pow(val, val2)
|
||||
|
||||
- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector`](../src/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php)
|
||||
- class: [`Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector`](../rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php)
|
||||
|
||||
```diff
|
||||
-1**2;
|
||||
|
@ -649,7 +649,7 @@ Changes ** (exp) operator to pow(val, val2)
|
|||
|
||||
Remove final from class constants
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\ClassConst\DowngradeFinalizePublicClassConstantRector`](../src/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\ClassConst\DowngradeFinalizePublicClassConstantRector`](../rules/DowngradePhp81/Rector/ClassConst/DowngradeFinalizePublicClassConstantRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -665,7 +665,7 @@ Remove final from class constants
|
|||
|
||||
Replace variadic placeholders usage by `Closure::fromCallable()`
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeFirstClassCallableSyntaxRector`](../src/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\FuncCall\DowngradeFirstClassCallableSyntaxRector`](../rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php)
|
||||
|
||||
```diff
|
||||
-$cb = strlen(...);
|
||||
|
@ -678,7 +678,7 @@ Replace variadic placeholders usage by `Closure::fromCallable()`
|
|||
|
||||
Remove indentation from heredoc/nowdoc
|
||||
|
||||
- class: [`Rector\DowngradePhp73\Rector\String_\DowngradeFlexibleHeredocSyntaxRector`](../src/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php)
|
||||
- class: [`Rector\DowngradePhp73\Rector\String_\DowngradeFlexibleHeredocSyntaxRector`](../rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php)
|
||||
|
||||
```diff
|
||||
$query = <<<SQL
|
||||
|
@ -698,7 +698,7 @@ Remove indentation from heredoc/nowdoc
|
|||
|
||||
Downgrade `list()` support in foreach constructs
|
||||
|
||||
- class: [`Rector\DowngradePhp55\Rector\Foreach_\DowngradeForeachListRector`](../src/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php)
|
||||
- class: [`Rector\DowngradePhp55\Rector\Foreach_\DowngradeForeachListRector`](../rules/DowngradePhp55/Rector/Foreach_/DowngradeForeachListRector.php)
|
||||
|
||||
```diff
|
||||
-foreach ($array as $key => list($item1, $item2)) {
|
||||
|
@ -714,7 +714,7 @@ Downgrade `list()` support in foreach constructs
|
|||
|
||||
Changes `fread()` or `fwrite()` compare to false to negation check
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\Identical\DowngradeFreadFwriteFalsyToNegationRector`](../src/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\Identical\DowngradeFreadFwriteFalsyToNegationRector`](../rules/DowngradePhp74/Rector/Identical/DowngradeFreadFwriteFalsyToNegationRector.php)
|
||||
|
||||
```diff
|
||||
-fread($handle, $length) === false;
|
||||
|
@ -729,7 +729,7 @@ Changes `fread()` or `fwrite()` compare to false to negation check
|
|||
|
||||
Downgrade indirect method call by array variable
|
||||
|
||||
- class: [`Rector\DowngradePhp54\Rector\FuncCall\DowngradeIndirectCallByArrayRector`](../src/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php)
|
||||
- class: [`Rector\DowngradePhp54\Rector\FuncCall\DowngradeIndirectCallByArrayRector`](../rules/DowngradePhp54/Rector/FuncCall/DowngradeIndirectCallByArrayRector.php)
|
||||
|
||||
```diff
|
||||
class Hello {
|
||||
|
@ -749,7 +749,7 @@ Downgrade indirect method call by array variable
|
|||
|
||||
Downgrade instance and method call/property access
|
||||
|
||||
- class: [`Rector\DowngradePhp54\Rector\MethodCall\DowngradeInstanceMethodCallRector`](../src/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php)
|
||||
- class: [`Rector\DowngradePhp54\Rector\MethodCall\DowngradeInstanceMethodCallRector`](../rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php)
|
||||
|
||||
```diff
|
||||
-echo (new \ReflectionClass('\\stdClass'))->getName();
|
||||
|
@ -763,7 +763,7 @@ Downgrade instance and method call/property access
|
|||
|
||||
Add `instanceof Exception` check as a fallback to `instanceof Throwable` to support exception hierarchies in PHP 5
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\Instanceof_\DowngradeInstanceofThrowableRector`](../src/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\Instanceof_\DowngradeInstanceofThrowableRector`](../rules/DowngradePhp70/Rector/Instanceof_/DowngradeInstanceofThrowableRector.php)
|
||||
|
||||
```diff
|
||||
-return $e instanceof \Throwable;
|
||||
|
@ -776,7 +776,7 @@ Add `instanceof Exception` check as a fallback to `instanceof Throwable` to supp
|
|||
|
||||
Downgrade `is_countable()` to former version
|
||||
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeIsCountableRector`](../src/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php)
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeIsCountableRector`](../rules/DowngradePhp73/Rector/FuncCall/DowngradeIsCountableRector.php)
|
||||
|
||||
```diff
|
||||
$items = [];
|
||||
|
@ -790,7 +790,7 @@ Downgrade `is_countable()` to former version
|
|||
|
||||
Change is_iterable with array and Traversable object type check
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\FuncCall\DowngradeIsIterableRector`](../src/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\FuncCall\DowngradeIsIterableRector`](../rules/DowngradePhp71/Rector/FuncCall/DowngradeIsIterableRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -809,7 +809,7 @@ Change is_iterable with array and Traversable object type check
|
|||
|
||||
Remove the iterable pseudo type params and returns, add `@param` and `@return` tags instead
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeIterablePseudoTypeDeclarationRector`](../src/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeIterablePseudoTypeDeclarationRector`](../rules/DowngradePhp71/Rector/FunctionLike/DowngradeIterablePseudoTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -832,7 +832,7 @@ Remove the iterable pseudo type params and returns, add `@param` and `@return` t
|
|||
|
||||
Downgrade `json_decode()` with null associative argument function
|
||||
|
||||
- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeJsonDecodeNullAssociativeArgRector`](../src/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php)
|
||||
- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeJsonDecodeNullAssociativeArgRector`](../rules/DowngradePhp72/Rector/FuncCall/DowngradeJsonDecodeNullAssociativeArgRector.php)
|
||||
|
||||
```diff
|
||||
function exactlyNull(string $json)
|
||||
|
@ -854,7 +854,7 @@ Downgrade `json_decode()` with null associative argument function
|
|||
|
||||
Extract keys in list to its own variable assignment
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\List_\DowngradeKeysInListRector`](../src/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\List_\DowngradeKeysInListRector`](../rules/DowngradePhp71/Rector/List_/DowngradeKeysInListRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -878,7 +878,7 @@ Extract keys in list to its own variable assignment
|
|||
|
||||
Convert the list reference assignment to its equivalent PHP 7.2 code
|
||||
|
||||
- class: [`Rector\DowngradePhp73\Rector\List_\DowngradeListReferenceAssignmentRector`](../src/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php)
|
||||
- class: [`Rector\DowngradePhp73\Rector\List_\DowngradeListReferenceAssignmentRector`](../rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -908,7 +908,7 @@ Convert the list reference assignment to its equivalent PHP 7.2 code
|
|||
|
||||
Downgrade `match()` to `switch()`
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector`](../src/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector`](../rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -942,7 +942,7 @@ Downgrade `match()` to `switch()`
|
|||
|
||||
Replace (clone `$obj)->call()` to object assign and call
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeMethodCallOnCloneRector`](../src/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\MethodCall\DowngradeMethodCallOnCloneRector`](../rules/DowngradePhp70/Rector/MethodCall/DowngradeMethodCallOnCloneRector.php)
|
||||
|
||||
```diff
|
||||
-(clone $this)->execute();
|
||||
|
@ -956,7 +956,7 @@ Replace (clone `$obj)->call()` to object assign and call
|
|||
|
||||
Remove the "mixed" param and return type, add a `@param` and `@return` tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeMixedTypeDeclarationRector`](../src/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeMixedTypeDeclarationRector`](../rules/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -978,7 +978,7 @@ Remove the "mixed" param and return type, add a `@param` and `@return` tag inste
|
|||
|
||||
Removes mixed type property type definition, adding `@var` annotations instead.
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeMixedTypeTypedPropertyRector`](../src/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeMixedTypeTypedPropertyRector`](../rules/DowngradePhp80/Rector/Property/DowngradeMixedTypeTypedPropertyRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -997,7 +997,7 @@ Removes mixed type property type definition, adding `@var` annotations instead.
|
|||
|
||||
Remove named argument
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeNamedArgumentRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeNamedArgumentRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1020,7 +1020,7 @@ Remove named argument
|
|||
|
||||
Downgrade negative string offset to strlen
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\String_\DowngradeNegativeStringOffsetToStrlenRector`](../src/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\String_\DowngradeNegativeStringOffsetToStrlenRector`](../rules/DowngradePhp71/Rector/String_/DowngradeNegativeStringOffsetToStrlenRector.php)
|
||||
|
||||
```diff
|
||||
-echo 'abcdef'[-2];
|
||||
|
@ -1037,7 +1037,7 @@ Downgrade negative string offset to strlen
|
|||
|
||||
Remove "never" return type, add a `"@return` never" tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNeverTypeDeclarationRector`](../src/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNeverTypeDeclarationRector`](../rules/DowngradePhp81/Rector/FunctionLike/DowngradeNeverTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
-function someFunction(): never
|
||||
|
@ -1055,7 +1055,7 @@ Remove "never" return type, add a `"@return` never" tag instead
|
|||
|
||||
Replace New in initializers
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNewInInitializerRector`](../src/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradeNewInInitializerRector`](../rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1075,7 +1075,7 @@ Replace New in initializers
|
|||
|
||||
Downgrade catch () without variable to one
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Catch_\DowngradeNonCapturingCatchesRector`](../src/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Catch_\DowngradeNonCapturingCatchesRector`](../rules/DowngradePhp80/Rector/Catch_/DowngradeNonCapturingCatchesRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1098,7 +1098,7 @@ Downgrade catch () without variable to one
|
|||
|
||||
Change null coalesce to isset ternary check
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\Coalesce\DowngradeNullCoalesceRector`](../src/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\Coalesce\DowngradeNullCoalesceRector`](../rules/DowngradePhp70/Rector/Coalesce/DowngradeNullCoalesceRector.php)
|
||||
|
||||
```diff
|
||||
-$username = $_GET['user'] ?? 'nobody';
|
||||
|
@ -1111,7 +1111,7 @@ Change null coalesce to isset ternary check
|
|||
|
||||
Remove null coalescing operator ??=
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\Coalesce\DowngradeNullCoalescingOperatorRector`](../src/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\Coalesce\DowngradeNullCoalescingOperatorRector`](../rules/DowngradePhp74/Rector/Coalesce/DowngradeNullCoalescingOperatorRector.php)
|
||||
|
||||
```diff
|
||||
$array = [];
|
||||
|
@ -1125,7 +1125,7 @@ Remove null coalescing operator ??=
|
|||
|
||||
Remove the nullable type params, add `@param` tags instead
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeNullableTypeDeclarationRector`](../src/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeNullableTypeDeclarationRector`](../rules/DowngradePhp71/Rector/FunctionLike/DowngradeNullableTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1147,7 +1147,7 @@ Remove the nullable type params, add `@param` tags instead
|
|||
|
||||
Change nullsafe operator to ternary operator rector
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\NullsafeMethodCall\DowngradeNullsafeToTernaryOperatorRector`](../src/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\NullsafeMethodCall\DowngradeNullsafeToTernaryOperatorRector`](../rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php)
|
||||
|
||||
```diff
|
||||
-$dateAsString = $booking->getStartDate()?->asDateTimeString();
|
||||
|
@ -1162,7 +1162,7 @@ Change nullsafe operator to ternary operator rector
|
|||
|
||||
Downgrade number_format arg to fill 4th arg when only 3rd arg filled
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeNumberFormatNoFourthArgRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeNumberFormatNoFourthArgRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeNumberFormatNoFourthArgRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1181,7 +1181,7 @@ Downgrade number_format arg to fill 4th arg when only 3rd arg filled
|
|||
|
||||
Remove "_" as thousands separator in numbers
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\LNumber\DowngradeNumericLiteralSeparatorRector`](../src/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\LNumber\DowngradeNumericLiteralSeparatorRector`](../rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1202,7 +1202,7 @@ Remove "_" as thousands separator in numbers
|
|||
|
||||
Remove the "object" param and return type, add a `@param` and `@return` tags instead
|
||||
|
||||
- class: [`Rector\DowngradePhp72\Rector\FunctionLike\DowngradeObjectTypeDeclarationRector`](../src/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp72\Rector\FunctionLike\DowngradeObjectTypeDeclarationRector`](../rules/DowngradePhp72/Rector/FunctionLike/DowngradeObjectTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1226,7 +1226,7 @@ Change param type to match the lowest type in whole family tree
|
|||
|
||||
:wrench: **configure it!**
|
||||
|
||||
- class: [`Rector\DowngradePhp72\Rector\ClassMethod\DowngradeParameterTypeWideningRector`](../src/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php)
|
||||
- class: [`Rector\DowngradePhp72\Rector\ClassMethod\DowngradeParameterTypeWideningRector`](../rules/DowngradePhp72/Rector/ClassMethod/DowngradeParameterTypeWideningRector.php)
|
||||
|
||||
```php
|
||||
use Rector\Config\RectorConfig;
|
||||
|
@ -1266,7 +1266,7 @@ return static function (RectorConfig $rectorConfig): void {
|
|||
|
||||
Remove "parent" return type, add a `"@return` parent" tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeParentTypeDeclarationRector`](../src/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeParentTypeDeclarationRector`](../rules/DowngradePhp70/Rector/ClassMethod/DowngradeParentTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class ParentClass
|
||||
|
@ -1292,7 +1292,7 @@ Remove "parent" return type, add a `"@return` parent" tag instead
|
|||
|
||||
Remove Json constant that available only in php 7.1
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\ConstFetch\DowngradePhp71JsonConstRector`](../src/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\ConstFetch\DowngradePhp71JsonConstRector`](../rules/DowngradePhp71/Rector/ConstFetch/DowngradePhp71JsonConstRector.php)
|
||||
|
||||
```diff
|
||||
-json_encode($content, JSON_UNESCAPED_LINE_TERMINATORS);
|
||||
|
@ -1305,7 +1305,7 @@ Remove Json constant that available only in php 7.1
|
|||
|
||||
Remove Json constant that available only in php 7.2
|
||||
|
||||
- class: [`Rector\DowngradePhp72\Rector\ConstFetch\DowngradePhp72JsonConstRector`](../src/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php)
|
||||
- class: [`Rector\DowngradePhp72\Rector\ConstFetch\DowngradePhp72JsonConstRector`](../rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php)
|
||||
|
||||
```diff
|
||||
-$inDecoder = new Decoder($connection, true, 512, \JSON_INVALID_UTF8_IGNORE);
|
||||
|
@ -1320,7 +1320,7 @@ Remove Json constant that available only in php 7.2
|
|||
|
||||
Remove Json constant that available only in php 7.3
|
||||
|
||||
- class: [`Rector\DowngradePhp73\Rector\ConstFetch\DowngradePhp73JsonConstRector`](../src/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php)
|
||||
- class: [`Rector\DowngradePhp73\Rector\ConstFetch\DowngradePhp73JsonConstRector`](../rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php)
|
||||
|
||||
```diff
|
||||
-json_encode($content, JSON_THROW_ON_ERROR);
|
||||
|
@ -1333,7 +1333,7 @@ Remove Json constant that available only in php 7.3
|
|||
|
||||
change instanceof Object to is_resource
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Instanceof_\DowngradePhp80ResourceReturnToObjectRector`](../src/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Instanceof_\DowngradePhp80ResourceReturnToObjectRector`](../rules/DowngradePhp80/Rector/Instanceof_/DowngradePhp80ResourceReturnToObjectRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1352,7 +1352,7 @@ change instanceof Object to is_resource
|
|||
|
||||
change instanceof Object to is_resource
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\Instanceof_\DowngradePhp81ResourceReturnToObjectRector`](../src/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\Instanceof_\DowngradePhp81ResourceReturnToObjectRector`](../rules/DowngradePhp81/Rector/Instanceof_/DowngradePhp81ResourceReturnToObjectRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1371,7 +1371,7 @@ change instanceof Object to is_resource
|
|||
|
||||
`"something()"` will be renamed to `"somethingElse()"`
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\StaticCall\DowngradePhpTokenRector`](../src/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\StaticCall\DowngradePhpTokenRector`](../rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php)
|
||||
|
||||
```diff
|
||||
-$tokens = \PhpToken::tokenize($code);
|
||||
|
@ -1392,7 +1392,7 @@ change instanceof Object to is_resource
|
|||
|
||||
Downgrade single one | separated to multi catch exception
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\TryCatch\DowngradePipeToMultiCatchExceptionRector`](../src/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\TryCatch\DowngradePipeToMultiCatchExceptionRector`](../rules/DowngradePhp71/Rector/TryCatch/DowngradePipeToMultiCatchExceptionRector.php)
|
||||
|
||||
```diff
|
||||
try {
|
||||
|
@ -1411,7 +1411,7 @@ Downgrade single one | separated to multi catch exception
|
|||
|
||||
Remove PREG_UNMATCHED_AS_NULL from preg_match and set null value on empty string matched on each match
|
||||
|
||||
- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradePregUnmatchedAsNullConstantRector`](../src/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php)
|
||||
- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradePregUnmatchedAsNullConstantRector`](../rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1435,7 +1435,7 @@ Remove PREG_UNMATCHED_AS_NULL from preg_match and set null value on empty string
|
|||
|
||||
Downgrade previously implemented interface
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\Interface_\DowngradePreviouslyImplementedInterfaceRector`](../src/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\Interface_\DowngradePreviouslyImplementedInterfaceRector`](../rules/DowngradePhp74/Rector/Interface_/DowngradePreviouslyImplementedInterfaceRector.php)
|
||||
|
||||
```diff
|
||||
interface ContainerExceptionInterface extends Throwable
|
||||
|
@ -1454,7 +1454,7 @@ Downgrade previously implemented interface
|
|||
|
||||
Change constructor property promotion to property assign
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector`](../src/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector`](../rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1475,7 +1475,7 @@ Change constructor property promotion to property assign
|
|||
|
||||
Remove the intersection type params and returns, add `@param/@return` tags instead
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradePureIntersectionTypeRector`](../src/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\FunctionLike\DowngradePureIntersectionTypeRector`](../rules/DowngradePhp81/Rector/FunctionLike/DowngradePureIntersectionTypeRector.php)
|
||||
|
||||
```diff
|
||||
-function someFunction(): Foo&Bar
|
||||
|
@ -1493,7 +1493,7 @@ Remove the intersection type params and returns, add `@param/@return` tags inste
|
|||
|
||||
Remove "readonly" class type, decorate all properties to "readonly"
|
||||
|
||||
- class: [`Rector\DowngradePhp82\Rector\Class_\DowngradeReadonlyClassRector`](../src/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php)
|
||||
- class: [`Rector\DowngradePhp82\Rector\Class_\DowngradeReadonlyClassRector`](../rules/DowngradePhp82/Rector/Class_/DowngradeReadonlyClassRector.php)
|
||||
|
||||
```diff
|
||||
-final readonly class SomeClass
|
||||
|
@ -1515,7 +1515,7 @@ Remove "readonly" class type, decorate all properties to "readonly"
|
|||
|
||||
Remove "readonly" property type, add a "@readonly" tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp81\Rector\Property\DowngradeReadonlyPropertyRector`](../src/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php)
|
||||
- class: [`Rector\DowngradePhp81\Rector\Property\DowngradeReadonlyPropertyRector`](../rules/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1539,7 +1539,7 @@ Remove "readonly" property type, add a "@readonly" tag instead
|
|||
|
||||
Remove bool type hint on child of RecursiveDirectoryIterator hasChildren allowLinks parameter
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeRecursiveDirectoryIteratorHasChildrenRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeRecursiveDirectoryIteratorHasChildrenRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeRecursiveDirectoryIteratorHasChildrenRector.php)
|
||||
|
||||
```diff
|
||||
class RecursiveDirectoryIteratorChild extends \RecursiveDirectoryIterator
|
||||
|
@ -1558,7 +1558,7 @@ Remove bool type hint on child of RecursiveDirectoryIterator hasChildren allowLi
|
|||
|
||||
Downgrade ReflectionClass->getConstants(ReflectionClassConstant::IS_*)
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionClassGetConstantsFilterRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionClassGetConstantsFilterRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php)
|
||||
|
||||
```diff
|
||||
$reflectionClass = new ReflectionClass('SomeClass');
|
||||
|
@ -1579,7 +1579,7 @@ Downgrade ReflectionClass->getConstants(ReflectionClassConstant::IS_*)
|
|||
|
||||
Remove reflection `getAttributes()` class method code
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionGetAttributesRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionGetAttributesRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1602,7 +1602,7 @@ Remove reflection `getAttributes()` class method code
|
|||
|
||||
Downgrade reflection `$refleciton->getType()` method call
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\MethodCall\DowngradeReflectionGetTypeRector`](../src/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\MethodCall\DowngradeReflectionGetTypeRector`](../rules/DowngradePhp74/Rector/MethodCall/DowngradeReflectionGetTypeRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1625,7 +1625,7 @@ Downgrade reflection `$refleciton->getType()` method call
|
|||
|
||||
Downgrade `ReflectionProperty->getDefaultValue()`
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionPropertyGetDefaultValueRector`](../src/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\MethodCall\DowngradeReflectionPropertyGetDefaultValueRector`](../rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionPropertyGetDefaultValueRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1644,7 +1644,7 @@ Downgrade `ReflectionProperty->getDefaultValue()`
|
|||
|
||||
Remove the type params and return type, add `@param` and `@return` tags instead
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeScalarTypeDeclarationRector`](../src/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeScalarTypeDeclarationRector`](../rules/DowngradePhp70/Rector/FunctionLike/DowngradeScalarTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1666,7 +1666,7 @@ Remove the type params and return type, add `@param` and `@return` tags instead
|
|||
|
||||
Remove "self" return type, add a `"@return` `$this"` tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeSelfTypeDeclarationRector`](../src/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\ClassMethod\DowngradeSelfTypeDeclarationRector`](../rules/DowngradePhp70/Rector/ClassMethod/DowngradeSelfTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1688,7 +1688,7 @@ Remove "self" return type, add a `"@return` `$this"` tag instead
|
|||
|
||||
Move array option of session_start($options) to before statement's `ini_set()`
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeSessionStartArrayOptionsRector`](../src/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeSessionStartArrayOptionsRector`](../rules/DowngradePhp70/Rector/FuncCall/DowngradeSessionStartArrayOptionsRector.php)
|
||||
|
||||
```diff
|
||||
-session_start([
|
||||
|
@ -1704,7 +1704,7 @@ Move array option of session_start($options) to before statement's `ini_set()`
|
|||
|
||||
Change spaceship with check equal, and ternary to result 0, -1, 1
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\Spaceship\DowngradeSpaceshipRector`](../src/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\Spaceship\DowngradeSpaceshipRector`](../rules/DowngradePhp70/Rector/Spaceship/DowngradeSpaceshipRector.php)
|
||||
|
||||
```diff
|
||||
-return $a <=> $b;
|
||||
|
@ -1723,7 +1723,7 @@ Change spaceship with check equal, and ternary to result 0, -1, 1
|
|||
|
||||
Remove static from closure
|
||||
|
||||
- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector`](../src/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php)
|
||||
- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector`](../rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php)
|
||||
|
||||
```diff
|
||||
final class SomeClass
|
||||
|
@ -1744,7 +1744,7 @@ Remove static from closure
|
|||
|
||||
Remove "static" return and param type, add a `"@param` `$this"` and `"@return` `$this"` tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStaticTypeDeclarationRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStaticTypeDeclarationRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeStaticTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1766,7 +1766,7 @@ Remove "static" return and param type, add a `"@param` `$this"` and `"@return` `
|
|||
|
||||
Replace `str_contains()` with `strpos()` !== false
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrContainsRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrContainsRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeStrContainsRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1785,7 +1785,7 @@ Replace `str_contains()` with `strpos()` !== false
|
|||
|
||||
Downgrade `str_ends_with()` to `strncmp()` version
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrEndsWithRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrEndsWithRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php)
|
||||
|
||||
```diff
|
||||
-str_ends_with($haystack, $needle);
|
||||
|
@ -1798,7 +1798,7 @@ Downgrade `str_ends_with()` to `strncmp()` version
|
|||
|
||||
Downgrade `str_starts_with()` to `strncmp()` version
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrStartsWithRector`](../src/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\FuncCall\DowngradeStrStartsWithRector`](../rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php)
|
||||
|
||||
```diff
|
||||
-str_starts_with($haystack, $needle);
|
||||
|
@ -1811,7 +1811,7 @@ Downgrade `str_starts_with()` to `strncmp()` version
|
|||
|
||||
Downgrade `stream_isatty()` function
|
||||
|
||||
- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeStreamIsattyRector`](../src/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php)
|
||||
- class: [`Rector\DowngradePhp72\Rector\FuncCall\DowngradeStreamIsattyRector`](../rules/DowngradePhp72/Rector/FuncCall/DowngradeStreamIsattyRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1849,7 +1849,7 @@ Downgrade `stream_isatty()` function
|
|||
|
||||
Remove the declare(strict_types=1)
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\Declare_\DowngradeStrictTypeDeclarationRector`](../src/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\Declare_\DowngradeStrictTypeDeclarationRector`](../rules/DowngradePhp70/Rector/Declare_/DowngradeStrictTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
-declare(strict_types=1);
|
||||
|
@ -1862,7 +1862,7 @@ Remove the declare(strict_types=1)
|
|||
|
||||
Add "string" return on current `__toString()` method when parent method has string return on `__toString()` method
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStringReturnTypeOnToStringRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeStringReturnTypeOnToStringRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector.php)
|
||||
|
||||
```diff
|
||||
abstract class ParentClass
|
||||
|
@ -1889,7 +1889,7 @@ Add "string" return on current `__toString()` method when parent method has stri
|
|||
|
||||
Convert 2nd param to `strip_tags` from array to string
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeStripTagsCallWithArrayRector`](../src/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeStripTagsCallWithArrayRector`](../rules/DowngradePhp74/Rector/FuncCall/DowngradeStripTagsCallWithArrayRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1919,7 +1919,7 @@ Convert 2nd param to `strip_tags` from array to string
|
|||
|
||||
Downgrade `$this->` inside Closure to use assigned `$self` = `$this` before Closure
|
||||
|
||||
- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeThisInClosureRector`](../src/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php)
|
||||
- class: [`Rector\DowngradePhp54\Rector\Closure\DowngradeThisInClosureRector`](../rules/DowngradePhp54/Rector/Closure/DowngradeThisInClosureRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1946,7 +1946,7 @@ Downgrade `$this->` inside Closure to use assigned `$self` = `$this` before Clos
|
|||
|
||||
Downgrade throw expression
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeThrowExprRector`](../src/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Expression\DowngradeThrowExprRector`](../rules/DowngradePhp80/Rector/Expression/DowngradeThrowExprRector.php)
|
||||
|
||||
```diff
|
||||
-echo $variable ?? throw new RuntimeException();
|
||||
|
@ -1963,7 +1963,7 @@ Downgrade throw expression
|
|||
|
||||
Replace `Throwable` type hints by PHPDoc tags
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeThrowableTypeDeclarationRector`](../src/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\FunctionLike\DowngradeThrowableTypeDeclarationRector`](../rules/DowngradePhp70/Rector/FunctionLike/DowngradeThrowableTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -1986,7 +1986,7 @@ Replace `Throwable` type hints by PHPDoc tags
|
|||
|
||||
Remove trailing commas in function calls
|
||||
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeTrailingCommasInFunctionCallsRector`](../src/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php)
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\DowngradeTrailingCommasInFunctionCallsRector`](../rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -2008,7 +2008,7 @@ Remove trailing commas in function calls
|
|||
|
||||
Remove trailing commas in param or use list
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeTrailingCommasInParamUseRector`](../src/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\ClassMethod\DowngradeTrailingCommasInParamUseRector`](../rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -2038,7 +2038,7 @@ Remove trailing commas in param or use list
|
|||
|
||||
Changes property type definition from type definitions to `@var` annotations.
|
||||
|
||||
- class: [`Rector\DowngradePhp74\Rector\Property\DowngradeTypedPropertyRector`](../src/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php)
|
||||
- class: [`Rector\DowngradePhp74\Rector\Property\DowngradeTypedPropertyRector`](../rules/DowngradePhp74/Rector/Property/DowngradeTypedPropertyRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -2057,7 +2057,7 @@ Changes property type definition from type definitions to `@var` annotations.
|
|||
|
||||
Downgrade calling a value that is not directly callable in PHP 5 (property, static property, closure, …) to call_user_func.
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeUncallableValueCallToCallUserFuncRector`](../src/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeUncallableValueCallToCallUserFuncRector`](../rules/DowngradePhp70/Rector/FuncCall/DowngradeUncallableValueCallToCallUserFuncRector.php)
|
||||
|
||||
```diff
|
||||
final class Foo
|
||||
|
@ -2084,7 +2084,7 @@ Downgrade calling a value that is not directly callable in PHP 5 (property, stat
|
|||
|
||||
Remove the union type params and returns, add `@param/@return` tags instead
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeUnionTypeDeclarationRector`](../src/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\FunctionLike\DowngradeUnionTypeDeclarationRector`](../rules/DowngradePhp80/Rector/FunctionLike/DowngradeUnionTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -2107,7 +2107,7 @@ Remove the union type params and returns, add `@param/@return` tags instead
|
|||
|
||||
Removes union type property type definition, adding `@var` annotations instead.
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeUnionTypeTypedPropertyRector`](../src/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php)
|
||||
- class: [`Rector\DowngradePhp80\Rector\Property\DowngradeUnionTypeTypedPropertyRector`](../rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -2126,7 +2126,7 @@ Removes union type property type definition, adding `@var` annotations instead.
|
|||
|
||||
Remove parentheses around expressions allowed by Uniform variable syntax RFC where they are not necessary to prevent parse errors on PHP 5.
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\Expr\DowngradeUnnecessarilyParenthesizedExpressionRector`](../src/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\Expr\DowngradeUnnecessarilyParenthesizedExpressionRector`](../rules/DowngradePhp70/Rector/Expr/DowngradeUnnecessarilyParenthesizedExpressionRector.php)
|
||||
|
||||
```diff
|
||||
-($f)['foo'];
|
||||
|
@ -2149,7 +2149,7 @@ Remove parentheses around expressions allowed by Uniform variable syntax RFC whe
|
|||
|
||||
Replace imports of functions and constants
|
||||
|
||||
- class: [`Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector`](../src/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php)
|
||||
- class: [`Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector`](../rules/DowngradePhp56/Rector/Use_/DowngradeUseFunctionRector.php)
|
||||
|
||||
```diff
|
||||
-use function Foo\Bar\baz;
|
||||
|
@ -2164,7 +2164,7 @@ Replace imports of functions and constants
|
|||
|
||||
Remove "void" return type, add a `"@return` void" tag instead
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeVoidTypeDeclarationRector`](../src/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\FunctionLike\DowngradeVoidTypeDeclarationRector`](../rules/DowngradePhp71/Rector/FunctionLike/DowngradeVoidTypeDeclarationRector.php)
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
|
@ -2185,7 +2185,7 @@ Remove "void" return type, add a `"@return` void" tag instead
|
|||
|
||||
Convert setcookie option array to arguments
|
||||
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\SetCookieOptionsArrayToArgumentsRector`](../src/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php)
|
||||
- class: [`Rector\DowngradePhp73\Rector\FuncCall\SetCookieOptionsArrayToArgumentsRector`](../rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php)
|
||||
|
||||
```diff
|
||||
-setcookie('name', $value, ['expires' => 360]);
|
||||
|
@ -2198,7 +2198,7 @@ Convert setcookie option array to arguments
|
|||
|
||||
Replace short arrays by long arrays
|
||||
|
||||
- class: [`Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector`](../src/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php)
|
||||
- class: [`Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector`](../rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php)
|
||||
|
||||
```diff
|
||||
-$a = [1, 2, 3];
|
||||
|
@ -2211,7 +2211,7 @@ Replace short arrays by long arrays
|
|||
|
||||
Refactor grouped use imports to standalone lines
|
||||
|
||||
- class: [`Rector\DowngradePhp70\Rector\GroupUse\SplitGroupedUseImportsRector`](../src/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php)
|
||||
- class: [`Rector\DowngradePhp70\Rector\GroupUse\SplitGroupedUseImportsRector`](../rules/DowngradePhp70/Rector/GroupUse/SplitGroupedUseImportsRector.php)
|
||||
|
||||
```diff
|
||||
-use SomeNamespace\{
|
||||
|
@ -2228,7 +2228,7 @@ Refactor grouped use imports to standalone lines
|
|||
|
||||
Downgrade Symmetric array destructuring to `list()` function
|
||||
|
||||
- class: [`Rector\DowngradePhp71\Rector\Array_\SymmetricArrayDestructuringToListRector`](../src/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php)
|
||||
- class: [`Rector\DowngradePhp71\Rector\Array_\SymmetricArrayDestructuringToListRector`](../rules/DowngradePhp71/Rector/Array_/SymmetricArrayDestructuringToListRector.php)
|
||||
|
||||
```diff
|
||||
-[$id1, $name1] = $data;
|
||||
|
|
|
@ -124,8 +124,8 @@ CODE_SAMPLE
|
|||
/** @var PropertyFetch[] $propertyFetches */
|
||||
$propertyFetches = $this->betterNodeFinder->find($node->stmts, function (Node $subNode) use($closureParentFunctionLike) : bool {
|
||||
// multiple deep Closure may access $this, unless its parent is not Closure
|
||||
$parent = $this->betterNodeFinder->findParentByTypes($subNode, [ClassMethod::class, Function_::class]);
|
||||
if ($parent instanceof FunctionLike && $parent !== $closureParentFunctionLike) {
|
||||
$parentNode = $this->betterNodeFinder->findParentByTypes($subNode, [ClassMethod::class, Function_::class]);
|
||||
if ($parentNode instanceof FunctionLike && $parentNode !== $closureParentFunctionLike) {
|
||||
return \false;
|
||||
}
|
||||
if (!$subNode instanceof PropertyFetch) {
|
|
@ -8,8 +8,8 @@ use PhpParser\Node\Expr\Closure;
|
|||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Function_;
|
||||
use PHPStan\Type\CallableType;
|
||||
use Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
/**
|
||||
|
@ -21,7 +21,7 @@ final class DowngradeCallableTypeDeclarationRector extends AbstractRector
|
|||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\BetterPhpDocParser\PhpDocParser\PhpDocFromTypeDeclarationDecorator
|
||||
* @var \Rector\PhpDocDecorator\PhpDocFromTypeDeclarationDecorator
|
||||
*/
|
||||
private $phpDocFromTypeDeclarationDecorator;
|
||||
public function __construct(PhpDocFromTypeDeclarationDecorator $phpDocFromTypeDeclarationDecorator)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user