Skip to content

Commit

Permalink
[PhpDocInfoPrinter] fix running tests on windows (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed May 24, 2021
1 parent 6bd1182 commit 5b74ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/BetterPhpDocParser/Printer/PhpDocInfoPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ final class PhpDocInfoPrinter
private const DOCBLOCK_START_REGEX = '#^(\/\/|\/\*\*|\/\*|\#)#';

/**
* @var string
* @var string Uses a hardcoded unix-newline since most codes use it (even on windows) - otherwise we would need to normalize newlines
*/
private const NEWLINE_WITH_ASTERISK = PHP_EOL . ' * ';
private const NEWLINE_WITH_ASTERISK = "\n" . ' * ';

/**
* @see https://regex101.com/r/WR3goY/1/
Expand Down

0 comments on commit 5b74ac7

Please sign in to comment.