mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Honor show-snippet flag
This commit is contained in:
parent
2b17e8c39c
commit
d5cd295e47
@ -228,6 +228,9 @@ class JunitReport extends Report
|
||||
$ret = '';
|
||||
|
||||
foreach ($data as $key => $value) {
|
||||
if (!$this->show_snippet && $key === 'snippet') {
|
||||
continue;
|
||||
}
|
||||
$value = trim((string) $value);
|
||||
$ret .= "{$key}: {$value}\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user