Skip to content

Commit

Permalink
Update RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed Jan 14, 2022
1 parent fb3102d commit 8ced81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocBlock/Annotation.php
Expand Up @@ -285,7 +285,7 @@ private function getTypesContent(): string
}

$matchingResult = Preg::match(
'{^(?:\s*\*|/\*\*)\s*@'.$name.'\s+'.TypeExpression::REGEX_TYPES.'(?:[*\h\v].*)?\r?$}sx',
'{^(?:\s*\*|/\*\*)\s*@'.$name.'\s+'.TypeExpression::REGEX_TYPES.'(?:(?:[*\h\v]|\&[\.\$]).*)?\r?$}sx',
$this->lines[0]->getContent(),
$matches
);
Expand Down

0 comments on commit 8ced81e

Please sign in to comment.