mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 20:39:43 +01:00
Updated Rector to commit a3ed07f8c8c0b2f7cbd78ce7711871d31bad3998
a3ed07f8c8
[TypeDeclaration] Do not remove docblock with description on MergeDateTimePropertyTypeDeclarationRector (#5931)
This commit is contained in:
parent
2f4d37d623
commit
8384715773
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user