[automated] Re-Generate Nodes/Rectors Documentation (#1925)

Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
Tomas Votruba 2022-03-13 01:24:22 +01:00 committed by GitHub
parent 9d74e20acb
commit 81c2492118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,8 +46,6 @@
- [Naming](#naming) (6)
- [Order](#order) (1)
- [PSR4](#psr4) (2)
- [Php52](#php52) (2)
@ -90,7 +88,7 @@
- [Transform](#transform) (36)
- [TypeDeclaration](#typedeclaration) (22)
- [TypeDeclaration](#typedeclaration) (23)
- [Visibility](#visibility) (2)
@ -6480,37 +6478,6 @@ Rename variable to match new ClassType
<br>
## Order
### OrderPrivateMethodsByUseRector
Order private methods in order of their use
- class: [`Rector\Order\Rector\Class_\OrderPrivateMethodsByUseRector`](../rules/Order/Rector/Class_/OrderPrivateMethodsByUseRector.php)
```diff
class SomeClass
{
public function run()
{
$this->call1();
$this->call2();
}
- private function call2()
+ private function call1()
{
}
- private function call1()
+ private function call2()
{
}
}
```
<br>
## PSR4
### MultipleClassFileToPsr4ClassesRector
@ -11522,6 +11489,27 @@ return static function (ContainerConfigurator $containerConfigurator): void {
<br>
### ArrayShapeFromConstantArrayReturnRector
Add array shape exact types based on constant keys of array
- class: [`Rector\TypeDeclaration\Rector\ClassMethod\ArrayShapeFromConstantArrayReturnRector`](../rules/TypeDeclaration/Rector/ClassMethod/ArrayShapeFromConstantArrayReturnRector.php)
```diff
final class SomeClass
{
+ /**
+ * @return array{name: string}
+ */
public function run(string $name)
{
return ['name' => $name];
}
}
```
<br>
### FormerNullableArgumentToScalarTypedRector
Change null in argument, that is now not nullable anymore