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:
parent
f46ccf0a5d
commit
a0866da88e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user