Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#832)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
  • Loading branch information
TomasVotruba and TomasVotruba committed Sep 5, 2021
1 parent 5b3b527 commit 0779c40
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions build/target-repository/docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 474 Rules Overview
# 476 Rules Overview

<br>

Expand All @@ -12,7 +12,7 @@

- [CodeQuality](#codequality) (68)

- [CodingStyle](#codingstyle) (38)
- [CodingStyle](#codingstyle) (39)

- [Composer](#composer) (6)

Expand All @@ -26,7 +26,7 @@

- [DowngradePhp70](#downgradephp70) (11)

- [DowngradePhp71](#downgradephp71) (9)
- [DowngradePhp71](#downgradephp71) (10)

- [DowngradePhp72](#downgradephp72) (4)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0779c40

Please sign in to comment.