From 2dc9d28496a9703b2ede7e02460ce34c6a4b3b26 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 5 May 2024 00:31:57 +0000 Subject: [PATCH] Updated Rector to commit 6649713eb98b016d5503163cd8cbea534ae61f2e https://github.com/rectorphp/rector-src/commit/6649713eb98b016d5503163cd8cbea534ae61f2e [automated] Re-Generate Nodes/Rectors Documentation (#5859) --- docs/rector_rules_overview.md | 22 ++++++++++++++++++++-- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index 798a80d894b..b4d2bff116c 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 370 Rules Overview +# 371 Rules Overview
@@ -58,7 +58,7 @@ - [Transform](#transform) (25) -- [TypeDeclaration](#typedeclaration) (45) +- [TypeDeclaration](#typedeclaration) (46) - [Visibility](#visibility) (3) @@ -6830,6 +6830,24 @@ Change `empty()` on nullable object to instanceof check
+### 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() + { + } +``` + +
+ ### MergeDateTimePropertyTypeDeclarationRector Set DateTime to DateTimeInterface for DateTime property with DateTimeInterface docblock diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 2169b61cdd6..41877138dcf 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 = '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 */