Updated Rector to commit 72c0216eb84088c809938ed26f5d109fc9737485

72c0216eb8 [AutoImport] Re-enable keep comment before multiple \@ (#5282)
This commit is contained in:
Tomas Votruba 2023-11-23 10:23:44 +00:00
parent a93a16aa8f
commit 2a2c91cc0a
2 changed files with 11 additions and 7 deletions

View File

@ -144,11 +144,15 @@ final class DoctrineAnnotationDecorator implements PhpDocNodeDecoratorInterface
if ($spacelessPhpDocTagNodes === []) {
return;
}
// temporary restore keep comment feature to avoid error
// in nested annotation
// @see https://github.com/rectorphp/rector-src/pull/5280#pullrequestreview-1745794426
unset($phpDocNode->children[$key]);
\array_splice($phpDocNode->children, $key, 0, $spacelessPhpDocTagNodes);
$texts = \explode("\n@\\", $phpDocTextNode->text);
$otherText = $texts[0];
if (\strncmp($otherText, '@\\', \strlen('@\\')) !== 0 && \trim($otherText) !== '') {
$phpDocNode->children[$key] = new PhpDocTextNode($otherText);
\array_splice($phpDocNode->children, $key + 1, 0, $spacelessPhpDocTagNodes);
} else {
unset($phpDocNode->children[$key]);
\array_splice($phpDocNode->children, $key, 0, $spacelessPhpDocTagNodes);
}
}
private function transformGenericTagValueNodesToDoctrineAnnotationTagValueNodes(PhpDocNode $phpDocNode, Node $currentPhpNode) : void
{

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '06eb1086dc29632d8eafce3405358720dfb22875';
public const PACKAGE_VERSION = '72c0216eb84088c809938ed26f5d109fc9737485';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-23 16:56:49';
public const RELEASE_DATE = '2023-11-23 17:21:39';
/**
* @var int
*/