Use typed properties

This commit is contained in:
Jan Böhmer 2022-09-18 22:59:31 +02:00
parent 548ec2ea50
commit 51e05a8669
216 changed files with 603 additions and 698 deletions

View file

@ -31,7 +31,7 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
class ValidRangeValidator extends ConstraintValidator
{
protected $rangeParser;
protected RangeParser $rangeParser;
public function __construct(RangeParser $rangeParser)
{

View file

@ -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)
{

View file

@ -52,7 +52,7 @@ use function is_string;
class ValidFileFilterValidator extends ConstraintValidator
{
protected $filterTools;
protected FileTypeFilterTools $filterTools;
public function __construct(FileTypeFilterTools $filterTools)
{

View file

@ -56,7 +56,7 @@ use function strlen;
class ValidGoogleAuthCodeValidator extends ConstraintValidator
{
protected $googleAuthenticator;
protected GoogleAuthenticatorInterface $googleAuthenticator;
public function __construct(GoogleAuthenticatorInterface $googleAuthenticator)
{

View file

@ -52,7 +52,7 @@ use Symfony\Component\Validator\ConstraintValidator;
class ValidPartLotValidator extends ConstraintValidator
{
protected $em;
protected EntityManagerInterface $em;
public function __construct(EntityManagerInterface $em)
{

View file

@ -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)
{