mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit f4c674c08210069b766058f035c1a41e833de167
f4c674c082
[automated] Re-Generate Nodes/Rectors Documentation (#5599)
This commit is contained in:
parent
3899caefbf
commit
74eb099cdd
@ -1,4 +1,4 @@
|
||||
# 355 Rules Overview
|
||||
# 358 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
@ -54,9 +54,9 @@
|
||||
|
||||
- [Strict](#strict) (5)
|
||||
|
||||
- [Transform](#transform) (22)
|
||||
- [Transform](#transform) (23)
|
||||
|
||||
- [TypeDeclaration](#typedeclaration) (40)
|
||||
- [TypeDeclaration](#typedeclaration) (42)
|
||||
|
||||
- [Visibility](#visibility) (3)
|
||||
|
||||
@ -6085,6 +6085,21 @@ Replaces properties assign calls be defined methods.
|
||||
|
||||
<br>
|
||||
|
||||
### RectorConfigBuilderRector
|
||||
|
||||
Change RectorConfig to RectorConfigBuilder
|
||||
|
||||
- class: [`Rector\Transform\Rector\FileWithoutNamespace\RectorConfigBuilderRector`](../rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php)
|
||||
|
||||
```diff
|
||||
-return static function (RectorConfig $rectorConfig): void {
|
||||
- $rectorConfig->rule(SomeRector::class);
|
||||
-};
|
||||
+return RectorConfig::configure()->rules([SomeRector::class]);
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### ReplaceParentCallByPropertyCallRector
|
||||
|
||||
Changes method calls in child of specific types to defined property method call
|
||||
@ -6253,6 +6268,34 @@ Add known return type to arrow function
|
||||
|
||||
<br>
|
||||
|
||||
### AddClosureVoidReturnTypeWhereNoReturnRector
|
||||
|
||||
Add closure return type void if there is no return
|
||||
|
||||
- class: [`Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector`](../rules/TypeDeclaration/Rector/Closure/AddClosureVoidReturnTypeWhereNoReturnRector.php)
|
||||
|
||||
```diff
|
||||
-function () {
|
||||
+function (): void {
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### AddFunctionVoidReturnTypeWhereNoReturnRector
|
||||
|
||||
Add function return type void if there is no return
|
||||
|
||||
- class: [`Rector\TypeDeclaration\Rector\Function_\AddFunctionVoidReturnTypeWhereNoReturnRector`](../rules/TypeDeclaration/Rector/Function_/AddFunctionVoidReturnTypeWhereNoReturnRector.php)
|
||||
|
||||
```diff
|
||||
-function restore() {
|
||||
+function restore(): void {
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### AddMethodCallBasedStrictParamTypeRector
|
||||
|
||||
Change private method param type to strict type, based on passed strict types
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'fbc391aa82a629f07f432860b146e617156a48e3';
|
||||
public const PACKAGE_VERSION = 'f4c674c08210069b766058f035c1a41e833de167';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-10 13:46:36';
|
||||
public const RELEASE_DATE = '2024-02-11 00:26:20';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user