Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#4525)
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 Jul 16, 2023
1 parent 5a3a7cd commit 654c35f
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions build/target-repository/docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 361 Rules Overview
# 362 Rules Overview

<br>

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

- [Transform](#transform) (22)

- [TypeDeclaration](#typedeclaration) (42)
- [TypeDeclaration](#typedeclaration) (43)

- [Visibility](#visibility) (3)

Expand Down Expand Up @@ -8124,6 +8124,25 @@ Add strict return array type based on created empty array and returned

<br>

### ReturnTypeFromStrictParamRector

Add return type based on strict parameter type

- class: [`Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictParamRector`](../rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictParamRector.php)

```diff
class SomeClass
{
- public function resolve(ParamType $item)
+ public function resolve(ParamType $item): ParamType
{
return $item;
}
}
```

<br>

### ReturnTypeFromStrictTernaryRector

Add method return type based on strict ternary values
Expand Down

0 comments on commit 654c35f

Please sign in to comment.