Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#4620)
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 authored Jul 30, 2023
1 parent 0ac9ebc commit 49f2473
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 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 @@
# 362 Rules Overview
# 363 Rules Overview

<br>

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

- [Transform](#transform) (22)

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

- [Visibility](#visibility) (3)

Expand Down Expand Up @@ -8266,6 +8266,30 @@ return static function (RectorConfig $rectorConfig): void {

<br>

### TypedPropertyFromStrictConstructorReadonlyClassRector

Add typed public properties based only on strict constructor types in readonly classes

- class: [`Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorReadonlyClassRector`](../rules/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorReadonlyClassRector.php)

```diff
/**
* @immutable
*/
class SomeObject
{
- public $name;
+ public string $name;

public function __construct(string $name)
{
$this->name = $name;
}
}
```

<br>

### TypedPropertyFromStrictConstructorRector

Add typed properties based only on strict constructor types
Expand Down

0 comments on commit 49f2473

Please sign in to comment.