mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 9b4ad93acd680c5da9a3bab4d5e1f46ad5905b7f
9b4ad93acd
Fix removal of useless @param tag when string|null insteadof ?string is used. (#5684)
This commit is contained in:
parent
bc02e10427
commit
9f2e48fa07
|
@ -44,10 +44,6 @@ final class ParamTagRemover
|
||||||
if ($docNode->name !== '@param') {
|
if ($docNode->name !== '@param') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// skip union types
|
|
||||||
if ($docNode->value->type instanceof UnionTypeNode) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
if (!$this->deadParamTagValueNodeAnalyzer->isDead($docNode->value, $functionLike)) {
|
if (!$this->deadParamTagValueNodeAnalyzer->isDead($docNode->value, $functionLike)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = 'b925e54b913863053e57e628ea95b2fd612e128e';
|
public const PACKAGE_VERSION = '9b4ad93acd680c5da9a3bab4d5e1f46ad5905b7f';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-03 11:17:08';
|
public const RELEASE_DATE = '2024-04-03 11:59:45';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -75,7 +75,7 @@ final class TypeHasher
|
||||||
}
|
}
|
||||||
$normalizedUnionType = clone $unionType;
|
$normalizedUnionType = clone $unionType;
|
||||||
// change alias to non-alias
|
// change alias to non-alias
|
||||||
$normalizedUnionType = TypeTraverser::map($normalizedUnionType, static function (Type $type, callable $callable) : Type {
|
TypeTraverser::map($normalizedUnionType, static function (Type $type, callable $callable) : Type {
|
||||||
if (!$type instanceof AliasedObjectType && !$type instanceof ShortenedObjectType) {
|
if (!$type instanceof AliasedObjectType && !$type instanceof ShortenedObjectType) {
|
||||||
return $callable($type);
|
return $callable($type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue