mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 04:30:08 +02:00
Fixed PHPstan issues
This commit is contained in:
parent
2554120e6e
commit
df11f62a2f
5 changed files with 11 additions and 4 deletions
|
@ -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!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,7 +17,7 @@ use App\Entity\Parameters\SupplierParameter;
|
|||
use App\Entity\UserSystem\User;
|
||||
use App\Services\UserSystem\PermissionManager;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use PHPUnit\TextUI\RuntimeException;
|
||||
use RuntimeException;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
class ParameterVoter extends ExtendedVoter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue