mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-02 00:09:32 +00:00
Fixed some more phpstan issues
This commit is contained in:
parent
2f46fbfc7a
commit
e8771ea118
77 changed files with 192 additions and 109 deletions
|
|
@ -110,7 +110,7 @@ class AttachmentVoter extends ExtendedVoter
|
|||
$param = 'parts';
|
||||
}
|
||||
else {
|
||||
throw new RuntimeException('Encountered unknown Parameter type: ' . (is_object($subject) ? $subject::class : $subject));
|
||||
throw new RuntimeException('Encountered unknown Parameter type: ' . $subject);
|
||||
}
|
||||
|
||||
return $this->resolver->inherit($user, $param, $this->mapOperation($attribute)) ?? false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue