diff --git a/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php b/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php index 947c60ecc83..884c7c8ddae 100644 --- a/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php +++ b/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php @@ -33,10 +33,10 @@ private const ALLOWED_SHORT_ANNOTATIONS = ['Target']; /** - * @see https://regex101.com/r/bGp2V0/1 + * @see https://regex101.com/r/bGp2V0/2 * @var string */ - private const LONG_ANNOTATION_REGEX = '#@\\\\(?.*?)(?\(.*?\)|,|\n|$)#'; + private const LONG_ANNOTATION_REGEX = '#@\\\\(?.*?)(?\(.*?\)|,|\r?\n|$)#'; /** * @see https://regex101.com/r/xWaLOz/1