Updated Rector to commit c5d4a78df1fe7ad674631f7373e127ff75eae896

c5d4a78df1 [Windows] Support replace \r\n on DocBlockInliner (#5513)
This commit is contained in:
Tomas Votruba 2024-01-28 18:53:09 +00:00
parent 2521815c9a
commit 758b064c65
2 changed files with 6 additions and 6 deletions

View File

@ -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
*/

View File

@ -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, ' ');