mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-09 20:49:30 +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
|
|
@ -39,6 +39,9 @@ use Symfony\Component\Security\Core\Authorization\Voter\Voter;
|
|||
use function get_class;
|
||||
use function is_object;
|
||||
|
||||
/**
|
||||
* @phpstan-extends Voter<non-empty-string, AttachmentType|Category|Project|Footprint|Manufacturer|StorageLocation|Supplier|Currency|MeasurementUnit|class-string>
|
||||
*/
|
||||
final class StructureVoter extends Voter
|
||||
{
|
||||
protected const OBJ_PERM_MAP = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue