Skip to content

Commit

Permalink
Updated Rector to commit ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f
Browse files Browse the repository at this point in the history
rectorphp/rector-src@ccbee6f [automated] Re-Generate Nodes/Rectors Documentation (#5345)
  • Loading branch information
TomasVotruba committed Dec 10, 2023
1 parent 0125f4d commit 976e6eb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
23 changes: 21 additions & 2 deletions 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
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 = '99dbc0d8b7ca27e803c78657979f574476208125';
public const PACKAGE_VERSION = 'ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-12-10 00:13:21';
public const RELEASE_DATE = '2023-12-10 00:27:04';
/**
* @var int
*/
Expand Down

0 comments on commit 976e6eb

Please sign in to comment.