Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#2934)
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 18, 2022
1 parent 6d44ff7 commit 5f05178
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions build/target-repository/docs/rector_rules_overview.md
@@ -1,4 +1,4 @@
# 394 Rules Overview
# 395 Rules Overview

<br>

Expand Down Expand Up @@ -64,7 +64,7 @@

- [Transform](#transform) (34)

- [TypeDeclaration](#typedeclaration) (29)
- [TypeDeclaration](#typedeclaration) (30)

- [Visibility](#visibility) (3)

Expand Down Expand Up @@ -8612,6 +8612,19 @@ Adds `@return` annotation to array parameters inferred from the rest of the code

<br>

### AddArrowFunctionReturnTypeRector

Add known return type to arrow function

- class: [`Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector`](../rules/TypeDeclaration/Rector/ArrowFunction/AddArrowFunctionReturnTypeRector.php)

```diff
-fn () => [];
+fn (): array => [];
```

<br>

### AddClosureReturnTypeRector

Add known return type to functions
Expand Down

0 comments on commit 5f05178

Please sign in to comment.