Skip to content

Commit

Permalink
Updated Rector to commit c5d4a78df1fe7ad674631f7373e127ff75eae896
Browse files Browse the repository at this point in the history
rectorphp/rector-src@c5d4a78 [Windows] Support replace \r\n on DocBlockInliner (#5513)
  • Loading branch information
TomasVotruba committed Jan 28, 2024
1 parent 2521815 commit 758b064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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 = '1b4395caa0579c559e484b75b7fd9baadc307c0c';
public const PACKAGE_VERSION = 'c5d4a78df1fe7ad674631f7373e127ff75eae896';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-01-28 10:58:04';
public const RELEASE_DATE = '2024-01-29 01:50:53';
/**
* @var int
*/
Expand Down
8 changes: 4 additions & 4 deletions src/BetterPhpDocParser/Printer/DocBlockInliner.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ final class DocBlockInliner
{
/**
* @var string
* @see https://regex101.com/r/Mjb0qi/1
* @see https://regex101.com/r/Mjb0qi/3
*/
private const NEWLINE_CLOSING_DOC_REGEX = "#\n \\*\\/\$#";
private const NEWLINE_CLOSING_DOC_REGEX = "#(?:\r\n|\n) \\*\\/\$#";
/**
* @var string
* @see https://regex101.com/r/U5OUV4/2
* @see https://regex101.com/r/U5OUV4/4
*/
private const NEWLINE_MIDDLE_DOC_REGEX = "#\n \\* #";
private const NEWLINE_MIDDLE_DOC_REGEX = "#(?:\r\n|\n) \\* #";
public function inline(string $docContent) : string
{
$docContent = Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
Expand Down

0 comments on commit 758b064

Please sign in to comment.