1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Strip extranous data

This commit is contained in:
Matthew Brown 2019-06-16 12:45:02 -04:00
parent f46ccf0a5d
commit a0866da88e

View File

@ -236,6 +236,9 @@ class CommentAnalyzer
$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,