mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Use typed properties
This commit is contained in:
parent
548ec2ea50
commit
51e05a8669
216 changed files with 603 additions and 698 deletions
|
@ -31,7 +31,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
|
|||
|
||||
class ValidRangeValidator extends ConstraintValidator
|
||||
{
|
||||
protected $rangeParser;
|
||||
protected RangeParser $rangeParser;
|
||||
|
||||
public function __construct(RangeParser $rangeParser)
|
||||
{
|
||||
|
|
|
@ -53,10 +53,10 @@ use Symfony\Component\Validator\ConstraintValidator;
|
|||
|
||||
class NoLockoutValidator extends ConstraintValidator
|
||||
{
|
||||
protected $resolver;
|
||||
protected $perm_structure;
|
||||
protected $security;
|
||||
protected $entityManager;
|
||||
protected PermissionResolver $resolver;
|
||||
protected array $perm_structure;
|
||||
protected Security $security;
|
||||
protected EntityManagerInterface $entityManager;
|
||||
|
||||
public function __construct(PermissionResolver $resolver, Security $security, EntityManagerInterface $entityManager)
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ use function is_string;
|
|||
|
||||
class ValidFileFilterValidator extends ConstraintValidator
|
||||
{
|
||||
protected $filterTools;
|
||||
protected FileTypeFilterTools $filterTools;
|
||||
|
||||
public function __construct(FileTypeFilterTools $filterTools)
|
||||
{
|
||||
|
|
|
@ -56,7 +56,7 @@ use function strlen;
|
|||
|
||||
class ValidGoogleAuthCodeValidator extends ConstraintValidator
|
||||
{
|
||||
protected $googleAuthenticator;
|
||||
protected GoogleAuthenticatorInterface $googleAuthenticator;
|
||||
|
||||
public function __construct(GoogleAuthenticatorInterface $googleAuthenticator)
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ use Symfony\Component\Validator\ConstraintValidator;
|
|||
|
||||
class ValidPartLotValidator extends ConstraintValidator
|
||||
{
|
||||
protected $em;
|
||||
protected EntityManagerInterface $em;
|
||||
|
||||
public function __construct(EntityManagerInterface $em)
|
||||
{
|
||||
|
|
|
@ -50,8 +50,8 @@ use Symfony\Component\Validator\ConstraintValidator;
|
|||
|
||||
class ValidPermissionValidator extends ConstraintValidator
|
||||
{
|
||||
protected $resolver;
|
||||
protected $perm_structure;
|
||||
protected PermissionResolver $resolver;
|
||||
protected array $perm_structure;
|
||||
|
||||
public function __construct(PermissionResolver $resolver)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue