mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-21 10:32:24 +00:00
Updated Rector to commit 72c0216eb84088c809938ed26f5d109fc9737485
72c0216eb8
[AutoImport] Re-enable keep comment before multiple \@ (#5282)
This commit is contained in:
parent
a93a16aa8f
commit
2a2c91cc0a
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user