From 1d666f3abfeb7f23b5b92aff333d5d464e7d5bad Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 12 Feb 2024 15:41:50 +0000 Subject: [PATCH] Updated Rector to commit 6dd91df6c991f7f0d5cd8422fc22be1367563262 https://github.com/rectorphp/rector-src/commit/6dd91df6c991f7f0d5cd8422fc22be1367563262 [PHP 8.0] Fix annotation to attribute in case of FQN class without () (#5609) --- src/Application/VersionResolver.php | 4 ++-- .../PhpDocParser/DoctrineAnnotationDecorator.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 4f040ba8428..85a878d56a6 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '14eb72c7bb6edc4a6e80c73c722f54465d947531'; + public const PACKAGE_VERSION = '6dd91df6c991f7f0d5cd8422fc22be1367563262'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-12 21:49:34'; + public const RELEASE_DATE = '2024-02-12 15:39:35'; /** * @var int */ diff --git a/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php b/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php index f537466beda..3555e37b75e 100644 --- a/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php +++ b/src/BetterPhpDocParser/PhpDocParser/DoctrineAnnotationDecorator.php @@ -50,10 +50,10 @@ final class DoctrineAnnotationDecorator implements PhpDocNodeDecoratorInterface */ private const ALLOWED_SHORT_ANNOTATIONS = ['Target']; /** - * @see https://regex101.com/r/95kIw4/2 + * @see https://regex101.com/r/bGp2V0/1 * @var string */ - private const LONG_ANNOTATION_REGEX = '#@\\\\(?.*?)(?\\(.*?\\)|,)#'; + private const LONG_ANNOTATION_REGEX = '#@\\\\(?.*?)(?\\(.*?\\)|,|\\n|$)#'; /** * @see https://regex101.com/r/xWaLOz/1 * @var string