From bfc7de5464db09ec5cdb82db13d134150d96c3cf Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 15 Feb 2025 12:51:27 +0000 Subject: [PATCH] Updated Rector to commit 19aff25061aa1061e8241fdd44fa660a9bc9ccdc https://github.com/rectorphp/rector-src/commit/19aff25061aa1061e8241fdd44fa660a9bc9ccdc [TypeDeclaration] Skip already typed param on AddClosureParamTypeForArrayReduceRector (#6737) --- .../FunctionLike/AddClosureParamTypeForArrayReduceRector.php | 5 +---- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayReduceRector.php b/rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayReduceRector.php index b8aafe36354..41d2e2bf72d 100644 --- a/rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayReduceRector.php +++ b/rules/TypeDeclaration/Rector/FunctionLike/AddClosureParamTypeForArrayReduceRector.php @@ -116,10 +116,7 @@ CODE_SAMPLE } // already set → no change if ($param->type instanceof Node) { - $currentParamType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type); - if ($this->typeComparator->areTypesEqual($currentParamType, $type)) { - return \false; - } + return \false; } $paramTypeNode = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($type, TypeKind::PARAM); if (!$paramTypeNode instanceof Node) { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 8a9e80fcb1a..8b62033a3c7 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 = '6137332476155f4a1350eba6d9869ae1b4a35795'; + public const PACKAGE_VERSION = '19aff25061aa1061e8241fdd44fa660a9bc9ccdc'; /** * @api * @var string */ - public const RELEASE_DATE = '2025-02-14 20:48:09'; + public const RELEASE_DATE = '2025-02-15 19:48:46'; /** * @var int */