From 03ee5ad88f41c16ae0e46d3f850689fb8d74e2f6 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 12 Dec 2024 05:25:02 +0700 Subject: [PATCH] Update AnnotationToAttributeRector.php --- rules/Php80/Rector/Class_/AnnotationToAttributeRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php index 6ef831446a..9631051119 100644 --- a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php +++ b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php @@ -210,7 +210,7 @@ private function processGenericTags(PhpDocInfo $phpDocInfo): array // special case for newline $docValue = (string) $docNode->value; if (str_contains($docValue, '\\')) { - $docValue = Strings::replace($docValue, "#\\\\\r?n#", ''); + $docValue = Strings::replace($docValue, "#\\\\(\r)?\n#", ''); } }