Skip to content

Commit

Permalink
Updated Rector to commit 1c9f2321754a7592a17f21b817c7c83548050e76
Browse files Browse the repository at this point in the history
rectorphp/rector-src@1c9f232 Handle windows newline on AnnotationToAttributeRector (#6561)
  • Loading branch information
TomasVotruba committed Dec 11, 2024
1 parent 454e8b5 commit 97f68f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/Php80/Rector/Class_/AnnotationToAttributeRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 97f68f2

Please sign in to comment.