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

Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
Tomas Votruba 2022-06-05 02:32:04 +02:00 committed by GitHub
parent 63cd74893d
commit dbb54b83cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# 517 Rules Overview
# 518 Rules Overview
<br>
@ -14,7 +14,7 @@
- [Composer](#composer) (6)
- [DeadCode](#deadcode) (49)
- [DeadCode](#deadcode) (50)
- [DependencyInjection](#dependencyinjection) (2)
@ -3253,6 +3253,29 @@ Remove assign of property, just for value assign
<br>
### RemoveJustPropertyFetchRector
Inline property fetch assign to a variable, that has no added value
- class: [`Rector\DeadCode\Rector\StmtsAwareInterface\RemoveJustPropertyFetchRector`](../rules/DeadCode/Rector/StmtsAwareInterface/RemoveJustPropertyFetchRector.php)
```diff
final class SomeClass
{
private $name;
public function run()
{
- $name = $this->name;
-
- return $name;
+ return $this->name;
}
}
```
<br>
### RemoveLastReturnRector
Remove very last `return` that has no meaning