Added phpstan template annotations to Voters to fix phpstan issues

This commit is contained in:
Jan Böhmer 2024-02-19 00:01:16 +01:00
parent e9d03a0c95
commit 49034fabf2
16 changed files with 43 additions and 0 deletions

View file

@ -52,6 +52,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, Pricedetail|class-string>
*/
final class PricedetailVoter extends Voter
{
public function __construct(private readonly Security $security, private readonly VoterHelper $helper)