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:
Tomas Votruba 2024-04-03 05:02:11 +00:00
parent bc02e10427
commit 9f2e48fa07
3 changed files with 3 additions and 7 deletions

View File

@ -44,10 +44,6 @@ final class ParamTagRemover
if ($docNode->name !== '@param') {
return null;
}
// skip union types
if ($docNode->value->type instanceof UnionTypeNode) {
return null;
}
if (!$this->deadParamTagValueNodeAnalyzer->isDead($docNode->value, $functionLike)) {
return null;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'b925e54b913863053e57e628ea95b2fd612e128e';
public const PACKAGE_VERSION = '9b4ad93acd680c5da9a3bab4d5e1f46ad5905b7f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-04-03 11:17:08';
public const RELEASE_DATE = '2024-04-03 11:59:45';
/**
* @var int
*/

View File

@ -75,7 +75,7 @@ final class TypeHasher
}
$normalizedUnionType = clone $unionType;
// 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) {
return $callable($type);
}