1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix generation of files in non-psr directory

This commit is contained in:
Matthew Brown 2020-01-16 23:24:53 -05:00
parent 257ebfd205
commit be6cd0f8c6

View File

@ -170,10 +170,10 @@ class Creator
if (count($parts) === 1) {
$nodes[] = '<file name="' . $php_file . '" />';
} else {
$nodes[] = '<file name="' . $parts[0] . '" />';
$nodes[] = '<directory name="' . $parts[0] . '" />';
}
}
return $nodes;
return \array_unique($nodes);
}
}