summaryrefslogtreecommitdiff
path: root/app/Http/Controllers/Admin/ModuleController.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2020-02-23 13:56:31 +0000
committerGreg Roach <fisharebest@webtrees.net>2020-02-23 13:59:06 +0000
commit8c627a69bcf55b7e1db9014c067e8dfad205fb47 (patch)
tree4529e1fb33cf4deec873494bf28c78206b02932f /app/Http/Controllers/Admin/ModuleController.php
parent62b528492872caeb9d5163134f093b6a4f132a89 (diff)
downloadwebtrees-8c627a69bcf55b7e1db9014c067e8dfad205fb47.tar.gz
webtrees-8c627a69bcf55b7e1db9014c067e8dfad205fb47.tar.bz2
webtrees-8c627a69bcf55b7e1db9014c067e8dfad205fb47.zip
Use strict comparison for Collection::unique()
Diffstat (limited to 'app/Http/Controllers/Admin/ModuleController.php')
-rw-r--r--app/Http/Controllers/Admin/ModuleController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/Controllers/Admin/ModuleController.php b/app/Http/Controllers/Admin/ModuleController.php
index cee3fc5619..fb49c517b4 100644
--- a/app/Http/Controllers/Admin/ModuleController.php
+++ b/app/Http/Controllers/Admin/ModuleController.php
@@ -292,7 +292,7 @@ class ModuleController extends AbstractAdminController
->map(static function ($tree) use ($interface, $module): int {
return $module->accessLevel($tree, $interface);
})
- ->unique()
+ ->uniqueStrict()
->values()
->map(static function (int $level) use ($level_text): string {
return $level_text[$level];