Skip to content

Commit

Permalink
Fixed condition on "uniquer" class SequenceUniquer
Browse files Browse the repository at this point in the history
  • Loading branch information
tg666 committed Feb 5, 2020
1 parent 41367bd commit d7292d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uniquer/SequenceUniquer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d7292d9

Please sign in to comment.