Fixed PHPstan issues

This commit is contained in:
Jan Böhmer 2022-11-27 16:53:44 +01:00
parent 2554120e6e
commit df11f62a2f
5 changed files with 11 additions and 4 deletions

View file

@ -91,6 +91,8 @@ class AttachmentVoter extends ExtendedVoter
case 'show_private':
return $this->resolver->inherit($user, 'attachments', 'show_private') ?? false;
}
throw new \RuntimeException('Encountered unknown attribute "'.$attribute.'" in AttachmentVoter!');
}
/**