Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#5859)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <924196+TomasVotruba@users.noreply.github.com>
  • Loading branch information
TomasVotruba and TomasVotruba authored May 5, 2024
1 parent 4789b51 commit 6649713
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 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 @@
# 370 Rules Overview
# 371 Rules Overview

<br>

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

- [Transform](#transform) (25)

- [TypeDeclaration](#typedeclaration) (45)
- [TypeDeclaration](#typedeclaration) (46)

- [Visibility](#visibility) (3)

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

<br>

### IncreaseDeclareStrictTypesRector

Add declare strict types to a limited amount of classes at a time, to try out in the wild and increase level gradually

:wrench: **configure it!**

- class: [`Rector\TypeDeclaration\Rector\StmtsAwareInterface\IncreaseDeclareStrictTypesRector`](../rules/TypeDeclaration/Rector/StmtsAwareInterface/IncreaseDeclareStrictTypesRector.php)

```diff
+declare(strict_types=1);
+
function someFunction()
{
}
```

<br>

### MergeDateTimePropertyTypeDeclarationRector

Set DateTime to DateTimeInterface for DateTime property with DateTimeInterface docblock
Expand Down

0 comments on commit 6649713

Please sign in to comment.