diff --git a/src/Psalm/Config/Creator.php b/src/Psalm/Config/Creator.php index 8206c599c..68682964e 100644 --- a/src/Psalm/Config/Creator.php +++ b/src/Psalm/Config/Creator.php @@ -170,10 +170,10 @@ class Creator if (count($parts) === 1) { $nodes[] = ''; } else { - $nodes[] = ''; + $nodes[] = ''; } } - return $nodes; + return \array_unique($nodes); } }