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.