Skip to content
Permalink
Browse files

Strip extranous data

  • Loading branch information...
muglug committed Jun 16, 2019
1 parent f46ccf0 commit a0866da88e605adaa648e9f1ad37f4990650f55c
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Psalm/Internal/Analyzer/CommentAnalyzer.php
@@ -236,6 +236,9 @@ private static function getTypeAliasesFromCommentLines(
$type_string = str_replace("\n", '', implode('', $var_line_parts));
$type_string = preg_replace('/>[^>^\}]*$/', '>', $type_string);
$type_string = preg_replace('/\}[^>^\}]*$/', '}', $type_string);
try {
$type_tokens = Type::fixUpLocalType(
$type_string,

0 comments on commit a0866da

Please sign in to comment.
You can’t perform that action at this time.