mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix generation of files in non-psr directory
This commit is contained in:
parent
257ebfd205
commit
be6cd0f8c6
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user