From 97f68f2790273503c9f2f56b46e348a128247b5b Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 11 Dec 2024 22:33:54 +0000 Subject: [PATCH] Updated Rector to commit 1c9f2321754a7592a17f21b817c7c83548050e76 https://github.com/rectorphp/rector-src/commit/1c9f2321754a7592a17f21b817c7c83548050e76 Handle windows newline on AnnotationToAttributeRector (#6561) --- rules/Php80/Rector/Class_/AnnotationToAttributeRector.php | 2 +- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php index 510e6d21ba1..3ad3b76208a 100644 --- a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php +++ b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php @@ -205,7 +205,7 @@ private function processGenericTags(PhpDocInfo $phpDocInfo) : array // special case for newline $docValue = (string) $docNode->value; if (\strpos($docValue, '\\') !== \false) { - $docValue = Strings::replace($docValue, "#\\\\\n#", ''); + $docValue = Strings::replace($docValue, "#\\\\\r?\n#", ''); } } $attributeGroups[] = $this->phpAttributeGroupFactory->createFromSimpleTag($annotationToAttribute, $docValue); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e972c271f41..c9e6667183e 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '4b38333206d21789bef444e363ecab63ef2022e6'; + public const PACKAGE_VERSION = '1c9f2321754a7592a17f21b817c7c83548050e76'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-12-11 22:06:17'; + public const RELEASE_DATE = '2024-12-12 05:31:26'; /** * @var int */