mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +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
|
|
@ -51,6 +51,9 @@ use Doctrine\ORM\EntityManagerInterface;
|
|||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
|
||||
|
||||
/**
|
||||
* @phpstan-extends Voter<non-empty-string, PartLot|class-string>
|
||||
*/
|
||||
final class PartLotVoter extends Voter
|
||||
{
|
||||
public function __construct(private readonly Security $security, private readonly VoterHelper $helper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue