From 74eb099cdd260e20bb9c1247131a56eb61f933f5 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 11 Feb 2024 00:28:51 +0000 Subject: [PATCH] Updated Rector to commit f4c674c08210069b766058f035c1a41e833de167 https://github.com/rectorphp/rector-src/commit/f4c674c08210069b766058f035c1a41e833de167 [automated] Re-Generate Nodes/Rectors Documentation (#5599) --- docs/rector_rules_overview.md | 49 +++++++++++++++++++++++++++-- src/Application/VersionResolver.php | 4 +-- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index 0259230ed2c..940a75a9a0d 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 355 Rules Overview +# 358 Rules Overview
@@ -54,9 +54,9 @@ - [Strict](#strict) (5) -- [Transform](#transform) (22) +- [Transform](#transform) (23) -- [TypeDeclaration](#typedeclaration) (40) +- [TypeDeclaration](#typedeclaration) (42) - [Visibility](#visibility) (3) @@ -6085,6 +6085,21 @@ Replaces properties assign calls be defined methods.
+### RectorConfigBuilderRector + +Change RectorConfig to RectorConfigBuilder + +- class: [`Rector\Transform\Rector\FileWithoutNamespace\RectorConfigBuilderRector`](../rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php) + +```diff +-return static function (RectorConfig $rectorConfig): void { +- $rectorConfig->rule(SomeRector::class); +-}; ++return RectorConfig::configure()->rules([SomeRector::class]); +``` + +
+ ### ReplaceParentCallByPropertyCallRector Changes method calls in child of specific types to defined property method call @@ -6253,6 +6268,34 @@ Add known return type to arrow function
+### AddClosureVoidReturnTypeWhereNoReturnRector + +Add closure return type void if there is no return + +- class: [`Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector`](../rules/TypeDeclaration/Rector/Closure/AddClosureVoidReturnTypeWhereNoReturnRector.php) + +```diff +-function () { ++function (): void { + } +``` + +
+ +### AddFunctionVoidReturnTypeWhereNoReturnRector + +Add function return type void if there is no return + +- class: [`Rector\TypeDeclaration\Rector\Function_\AddFunctionVoidReturnTypeWhereNoReturnRector`](../rules/TypeDeclaration/Rector/Function_/AddFunctionVoidReturnTypeWhereNoReturnRector.php) + +```diff +-function restore() { ++function restore(): void { + } +``` + +
+ ### AddMethodCallBasedStrictParamTypeRector Change private method param type to strict type, based on passed strict types diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index fe088408a86..9b170d1eb75 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 = 'fbc391aa82a629f07f432860b146e617156a48e3'; + public const PACKAGE_VERSION = 'f4c674c08210069b766058f035c1a41e833de167'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-10 13:46:36'; + public const RELEASE_DATE = '2024-02-11 00:26:20'; /** * @var int */