Skip to content

Commit

Permalink
Updated Rector to commit 6649713eb98b016d5503163cd8cbea534ae61f2e
Browse files Browse the repository at this point in the history
rectorphp/rector-src@6649713 [automated] Re-Generate Nodes/Rectors Documentation (#5859)
  • Loading branch information
TomasVotruba committed May 5, 2024
1 parent 5c55f54 commit 2dc9d28
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
22 changes: 20 additions & 2 deletions 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
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '4789b516d98b619f2e04900ab0ae442eb94a5348';
public const PACKAGE_VERSION = '6649713eb98b016d5503163cd8cbea534ae61f2e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-04 23:58:23';
public const RELEASE_DATE = '2024-05-05 00:27:41';
/**
* @var int
*/
Expand Down

0 comments on commit 2dc9d28

Please sign in to comment.