mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit c860b0cd3976acfd4b05d6929f446a7b50454b52
c860b0cd39
Update docs for AddTypeToConstRector (#5803)
This commit is contained in:
parent
6678ca05d4
commit
b8bbd024cd
|
@ -5389,7 +5389,7 @@ Add override attribute to overridden methods
|
||||||
|
|
||||||
### AddTypeToConstRector
|
### AddTypeToConstRector
|
||||||
|
|
||||||
Add const to type
|
Add type to constants
|
||||||
|
|
||||||
- class: [`Rector\Php83\Rector\ClassConst\AddTypeToConstRector`](../rules/Php83/Rector/ClassConst/AddTypeToConstRector.php)
|
- class: [`Rector\Php83\Rector\ClassConst\AddTypeToConstRector`](../rules/Php83/Rector/ClassConst/AddTypeToConstRector.php)
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ final class AddTypeToConstRector extends AbstractRector implements MinPhpVersion
|
||||||
}
|
}
|
||||||
public function getRuleDefinition() : RuleDefinition
|
public function getRuleDefinition() : RuleDefinition
|
||||||
{
|
{
|
||||||
return new RuleDefinition('Add const to type', [new CodeSample(<<<'CODE_SAMPLE'
|
return new RuleDefinition('Add type to constants', [new CodeSample(<<<'CODE_SAMPLE'
|
||||||
final class SomeClass
|
final class SomeClass
|
||||||
{
|
{
|
||||||
public const TYPE = 'some_type';
|
public const TYPE = 'some_type';
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '4a77565302216f6fde71232600cd175422a00965';
|
public const PACKAGE_VERSION = 'c860b0cd3976acfd4b05d6929f446a7b50454b52';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-05 20:02:11';
|
public const RELEASE_DATE = '2024-04-05 20:02:37';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue