diff --git a/src/Uniquer/SequenceUniquer.php b/src/Uniquer/SequenceUniquer.php index 23476e2..d96c210 100644 --- a/src/Uniquer/SequenceUniquer.php +++ b/src/Uniquer/SequenceUniquer.php @@ -34,7 +34,7 @@ public function makeUnique(string $slug, SixtyEightPublishers\DoctrineSluggable\ $separator = $this->getSeparator(); $similarSlugs = $this->getSimilarSlugs($slug, $adapter, $finder); - if (in_array($slug, $similarSlugs, TRUE)) { + if (!$this->checkUnique($slug, $similarSlugs)) { $i = 1; do {