From ed3b08fa095ac7f1b0eec17e68594a9c83e446a2 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 17 Mar 2026 10:09:00 -0700 Subject: [PATCH] fix(Core): fix phpdoc parsing for snippets tests --- Core/src/Testing/Reflection/DescriptionFactory.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/src/Testing/Reflection/DescriptionFactory.php b/Core/src/Testing/Reflection/DescriptionFactory.php index ee7215228cdc..7e0216625dea 100644 --- a/Core/src/Testing/Reflection/DescriptionFactory.php +++ b/Core/src/Testing/Reflection/DescriptionFactory.php @@ -126,8 +126,9 @@ private function lex(string $contents): array return Utils::pregSplit( '/\{ - # "{@}" is not a valid inline tag. This ensures that we do not treat it as one, but treat it literally. - (?!@\}) + # "{@}" and "{@*}" are not a valid inline tags. This ensures that we do not treat them as one, but treat + # them literally. + (?!(?:@\}|@\*\}) ) # We want to capture the whole tag line, but without the inline tag delimiters. (\@ # Match everything up to the next delimiter.