1
0
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:
Ben Dusinberre 2020-03-04 22:38:22 -06:00 committed by Matthew Brown
parent 2b17e8c39c
commit d5cd295e47

View File

@ -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";
}