diff --git a/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php b/rules/Php80/Rector/Class_/AnnotationToAttributeRector.php index 9631051119..dfa0c62020 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#", ''); } }