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

Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
Tomas Votruba 2021-09-05 02:15:37 +02:00 committed by GitHub
parent 5b3b527a51
commit 0779c402c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
# 474 Rules Overview
# 476 Rules Overview
<br>
@ -12,7 +12,7 @@
- [CodeQuality](#codequality) (68)
- [CodingStyle](#codingstyle) (38)
- [CodingStyle](#codingstyle) (39)
- [Composer](#composer) (6)
@ -26,7 +26,7 @@
- [DowngradePhp70](#downgradephp70) (11)
- [DowngradePhp71](#downgradephp71) (9)
- [DowngradePhp71](#downgradephp71) (10)
- [DowngradePhp72](#downgradephp72) (4)
@ -2101,6 +2101,27 @@ Convert manual JSON string to JSON::encode array
<br>
### NewlineAfterStatementRector
Add new line after statements to tidify code
- class: [`Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector`](../rules/CodingStyle/Rector/Stmt/NewlineAfterStatementRector.php)
```diff
class SomeClass
{
public function test()
{
}
+
public function test2()
{
}
}
```
<br>
### NewlineBeforeNewAssignSetRector
Add extra space before new assign set
@ -4443,6 +4464,22 @@ Downgrade class constant visibility
<br>
### DowngradeClosureFromCallableRector
Converts `Closure::fromCallable()` to compatible alternative.
- class: [`Rector\DowngradePhp71\Rector\StaticCall\DowngradeClosureFromCallableRector`](../rules/DowngradePhp71/Rector/StaticCall/DowngradeClosureFromCallableRector.php)
```diff
-\Closure::fromCallable('callable');
+$callable = 'callable';
+function () use ($callable) {
+ return $callable(...func_get_args());
+};
```
<br>
### DowngradeIsIterableRector
Change is_iterable with array and Traversable object type check