Skip to content

Commit 9b17efc

Browse files
committed
Fixed phpstan issue
1 parent fe7910a commit 9b17efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/UserSystem/VoterHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function addReason(?Vote $voter, string $permission, $operation): void
141141
{
142142
if ($voter !== null) {
143143
$voter->addReason(sprintf("User does not have permission %s -> %s -> %s (%s.%s).",
144-
$this->translator->trans('perm.group.'.$this->permissionStructure['perms'][$permission]['group'] ?? 'default' ),
144+
$this->translator->trans('perm.group.'.($this->permissionStructure['perms'][$permission]['group'] ?? 'unknown') ),
145145
$this->translator->trans($this->permissionStructure['perms'][$permission]['label'] ?? $permission),
146146
$this->translator->trans($this->permissionStructure['perms'][$permission]['operations'][$operation]['label'] ?? $operation),
147147
$permission,

0 commit comments

Comments
 (0)