Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomulik committed Mar 12, 2023
1 parent b12ed07 commit 21849fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1906,8 +1906,8 @@ private static function getTypeAliasesFromCommentLines(

$type_string = str_replace("\n", '', implode('', $var_line_parts));

// Strip any remaining characters after the last grouping character >, } or )
$type_string = preg_replace('/(?<=[>})])[^>})]*$/', '', $type_string, 1);
// Strip any remaining whitespaces after the last grouping character >, } or )
$type_string = preg_replace('/(?<=[>})])\s*$/', '', $type_string, 1);

try {
$type_tokens = TypeTokenizer::getFullyQualifiedTokens(
Expand Down

0 comments on commit 21849fb

Please sign in to comment.