Skip to content

Commit fa69881

Browse files
committed
Merge branch '2.x' into 3.x
* Remove duplicates when searching for classes
2 parents 403f619 + 975d7ef commit fa69881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EntitySearcher/EntitySearcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function searchInManager(ObjectManager $manager, string $input): array
6262
}
6363
}
6464

65-
return $classes;
65+
return array_unique($classes);
6666
}
6767

6868
protected function inputMatchesClass(string $className, string $input): bool

0 commit comments

Comments
 (0)