Updated Rector to commit 421f74a9aad5c08ea619abe2abb5f930645de614

421f74a9aa [Example Config] Use class reference instead of self:: on code example config to ease copy paste config  (#6037)
This commit is contained in:
Tomas Votruba 2024-06-26 04:09:32 +00:00
parent 8b4bf1857a
commit f8a0e24a2f
14 changed files with 16 additions and 16 deletions

View File

@ -77,7 +77,7 @@ class SomeClass
}
}
CODE_SAMPLE
, ['ClassName', 'AnotherClassName', self::SHOULD_KEEP_PRE_SLASH => \false])]);
, ['ClassName', 'AnotherClassName', \Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -71,7 +71,7 @@ class SomeClass
}
}
CODE_SAMPLE
, [self::LIMIT_VALUE => 1000000])]);
, [\Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector::LIMIT_VALUE => 1000000])]);
}
/**
* @return array<class-string<Node>>

View File

@ -153,7 +153,7 @@ class SomeClass
}
}
CODE_SAMPLE
, [self::INLINE_PUBLIC => \false, self::RENAME_PROPERTY => \true])]);
, [\Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector::INLINE_PUBLIC => \false, \Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector::RENAME_PROPERTY => \true])]);
}
public function configure(array $configuration) : void
{

View File

@ -62,7 +62,7 @@ enum StatusEnum : string
case ARCHIVED = 'archived';
}
CODE_SAMPLE
, [self::TO_UPPER_SNAKE_CASE => \false])]);
, [\Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector::TO_UPPER_SNAKE_CASE => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -78,7 +78,7 @@ class SomeClass
}
}
CODE_SAMPLE
, [self::SENSITIVE_PARAMETERS => ['password']])]);
, [\Rector\Php82\Rector\Param\AddSensitiveParameterAttributeRector::SENSITIVE_PARAMETERS => ['password']])]);
}
public function provideMinPhpVersion() : int
{

View File

@ -57,7 +57,7 @@ class SomeClass
}
}
CODE_SAMPLE
, [self::TREAT_AS_NON_EMPTY => \true])]);
, [\Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector::TREAT_AS_NON_EMPTY => \true])]);
}
/**
* @return array<class-string<Node>>

View File

@ -66,7 +66,7 @@ final class SomeEmptyArray
}
}
CODE_SAMPLE
, [self::TREAT_AS_NON_EMPTY => \false])]);
, [\Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector::TREAT_AS_NON_EMPTY => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -58,7 +58,7 @@ final class NegatedString
}
}
CODE_SAMPLE
, [self::TREAT_AS_NON_EMPTY => \false])]);
, [\Rector\Strict\Rector\If_\BooleanInIfConditionRuleFixerRector::TREAT_AS_NON_EMPTY => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -49,7 +49,7 @@ final class ArrayCompare
}
}
CODE_SAMPLE
, [self::TREAT_AS_NON_EMPTY => \false])]);
, [\Rector\Strict\Rector\Ternary\BooleanInTernaryOperatorRuleFixerRector::TREAT_AS_NON_EMPTY => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -54,7 +54,7 @@ final class ShortTernaryArray
}
}
CODE_SAMPLE
, [self::TREAT_AS_NON_EMPTY => \false])]);
, [\Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector::TREAT_AS_NON_EMPTY => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -94,7 +94,7 @@ final class SomeClass
}
}
CODE_SAMPLE
, [self::HARD_CODED_ONLY => \false])]);
, [\Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictScalarReturnExprRector::HARD_CODED_ONLY => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -128,7 +128,7 @@ final class SomeClass
}
}
CODE_SAMPLE
, [self::INLINE_PUBLIC => \false])]);
, [\Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector::INLINE_PUBLIC => \false])]);
}
/**
* @return array<class-string<Node>>

View File

@ -29,7 +29,7 @@ final class IncreaseDeclareStrictTypesRector extends AbstractRector implements C
* @var \Rector\TypeDeclaration\NodeAnalyzer\DeclareStrictTypeFinder
*/
private $declareStrictTypeFinder;
private const LIMIT = 'limit';
public const LIMIT = 'limit';
/**
* @var int
*/
@ -56,7 +56,7 @@ function someFunction()
{
}
CODE_SAMPLE
, [self::LIMIT => 10])]);
, [\Rector\TypeDeclaration\Rector\StmtsAwareInterface\IncreaseDeclareStrictTypesRector::LIMIT => 10])]);
}
/**
* @param Stmt[] $nodes

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '7e79ae201c4de45815db5d43531e38babfb82786';
public const PACKAGE_VERSION = '421f74a9aad5c08ea619abe2abb5f930645de614';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-06-26 05:40:56';
public const RELEASE_DATE = '2024-06-26 11:06:42';
/**
* @var int
*/