mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 08:20:53 +00:00
[automated] Re-Generate Nodes/Rectors Documentation (#832)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
parent
5b3b527a51
commit
0779c402c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user