Skip to content

Commit

Permalink
Do not throw duplicate administrative level exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Stalinko committed Dec 20, 2023
1 parent 35fdf2c commit 2ce26bd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Model/AdminLevelCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public function __construct(array $adminLevels = [])

$this->checkLevel($level);

if ($this->has($level)) {
throw new InvalidArgument(sprintf('Administrative level %d is defined twice', $level));
}

$this->adminLevels[$level] = $adminLevel;
}

Expand Down

0 comments on commit 2ce26bd

Please sign in to comment.