Skip to content

Commit 5b33724

Browse files
authored
fix(Core): phpdoc parsing for snippets tests (#9012)
1 parent d4153a7 commit 5b33724

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Core/src/Testing/Reflection/DescriptionFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ private function lex(string $contents): array
126126

127127
return Utils::pregSplit(
128128
'/\{
129-
# "{@}" is not a valid inline tag. This ensures that we do not treat it as one, but treat it literally.
130-
(?!@\})
129+
# "{@}" and "{@*}" are not a valid inline tags. This ensures that we do not treat them as one, but treat
130+
# them literally.
131+
(?!(?:@\}|@\*\}) )
131132
# We want to capture the whole tag line, but without the inline tag delimiters.
132133
(\@
133134
# Match everything up to the next delimiter.

0 commit comments

Comments
 (0)