mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-13 20:12:07 +01:00
Updated Rector to commit 19aff25061aa1061e8241fdd44fa660a9bc9ccdc
19aff25061
[TypeDeclaration] Skip already typed param on AddClosureParamTypeForArrayReduceRector (#6737)
This commit is contained in:
parent
cfcd9ca506
commit
bfc7de5464
@ -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) {
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user