Skip to content

Commit

Permalink
Unique the cleaners
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-yi committed Jul 26, 2020
1 parent 653cd63 commit 95e33ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Laravel/CleanersRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ protected function initialize(array $cleaners)
$this->pushCleaner($cleaner);
}
}

$this->beforeCleaners = array_unique($this->beforeCleaners);
$this->afterCleaners = array_unique($this->afterCleaners);
}

/**
Expand Down

0 comments on commit 95e33ad

Please sign in to comment.