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 */