mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-29 14:29:32 +00:00
Added phpstan template annotations to Voters to fix phpstan issues
This commit is contained in:
parent
e9d03a0c95
commit
49034fabf2
16 changed files with 43 additions and 0 deletions
|
|
@ -45,6 +45,9 @@ use Symfony\Component\Security\Core\Authorization\Voter\Voter;
|
|||
|
||||
use function in_array;
|
||||
|
||||
/**
|
||||
* @phpstan-extends Voter<non-empty-string, Attachment|class-string>
|
||||
*/
|
||||
final class AttachmentVoter extends Voter
|
||||
{
|
||||
private const ALLOWED_ATTRIBUTES = ['read', 'view', 'edit', 'delete', 'create', 'show_private', 'show_history'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue