Updated Rector to commit a3ed07f8c8c0b2f7cbd78ce7711871d31bad3998

a3ed07f8c8 [TypeDeclaration] Do not remove docblock with description on MergeDateTimePropertyTypeDeclarationRector (#5931)
This commit is contained in:
Tomas Votruba 2024-05-30 15:01:50 +00:00
parent 2f4d37d623
commit 8384715773
2 changed files with 7 additions and 4 deletions

View File

@ -88,8 +88,11 @@ CODE_SAMPLE
$varType = $phpDocInfo->getVarType();
$className = $varType instanceof TypeWithClassName ? $this->nodeTypeResolver->getFullyQualifiedClassName($varType) : null;
if ($className === 'DateTimeInterface') {
$phpDocInfo->removeByType(VarTagValueNode::class);
$this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($property);
$varTagvalueNode = $phpDocInfo->getVarTagValueNode();
if ($varTagvalueNode instanceof VarTagValueNode && $varTagvalueNode->description === '') {
$phpDocInfo->removeByType(VarTagValueNode::class);
$this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($property);
}
$property->type = new FullyQualified('DateTimeInterface');
$hasChanged = \true;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'b2d1c9d496c3d1b08cfb309faa7e9cbb263db1aa';
public const PACKAGE_VERSION = 'a3ed07f8c8c0b2f7cbd78ce7711871d31bad3998';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-30 21:45:20';
public const RELEASE_DATE = '2024-05-30 21:58:38';
/**
* @var int
*/