Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#5345)
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 Dec 10, 2023
1 parent 99dbc0d commit ccbee6f
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 @@
# 351 Rules Overview
# 352 Rules Overview

<br>

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

- [Transform](#transform) (22)

- [TypeDeclaration](#typedeclaration) (39)
- [TypeDeclaration](#typedeclaration) (40)

- [Visibility](#visibility) (3)

Expand Down Expand Up @@ -6516,6 +6516,25 @@ Change `empty()` on nullable object to instanceof check

<br>

### MergeDateTimePropertyTypeDeclarationRector

Set DateTime to DateTimeInterface for DateTime property with DateTimeInterface docblock

- class: [`Rector\TypeDeclaration\Rector\Class_\MergeDateTimePropertyTypeDeclarationRector`](../rules/TypeDeclaration/Rector/Class_/MergeDateTimePropertyTypeDeclarationRector.php)

```diff
final class SomeClass
{
- /**
- * @var DateTimeInterface
- */
- private DateTime $dateTime;
+ private DateTimeInterface $dateTime;
}
```

<br>

### NumericReturnTypeFromStrictScalarReturnsRector

Change numeric return type based on strict returns type operations
Expand Down

0 comments on commit ccbee6f

Please sign in to comment.