Skip to content

Commit

Permalink
Update AnnotationToAttributeRector.php
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Dec 11, 2024
1 parent 03ee5ad commit 4059dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/Php80/Rector/Class_/AnnotationToAttributeRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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#", '');
}
}

Expand Down

0 comments on commit 4059dee

Please sign in to comment.