From 976e6eb341639b1187a230d19eeeaed9975e996f Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 10 Dec 2023 00:29:28 +0000 Subject: [PATCH] Updated Rector to commit ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f https://github.com/rectorphp/rector-src/commit/ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f [automated] Re-Generate Nodes/Rectors Documentation (#5345) --- docs/rector_rules_overview.md | 23 +++++++++++++++++++++-- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index 829d4589815..e41ae0f3965 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 351 Rules Overview +# 352 Rules Overview
@@ -56,7 +56,7 @@ - [Transform](#transform) (22) -- [TypeDeclaration](#typedeclaration) (39) +- [TypeDeclaration](#typedeclaration) (40) - [Visibility](#visibility) (3) @@ -6516,6 +6516,25 @@ Change `empty()` on nullable object to instanceof check
+### 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; + } +``` + +
+ ### NumericReturnTypeFromStrictScalarReturnsRector Change numeric return type based on strict returns type operations diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index b015238d011..44a85192f33 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */