Skip to content

Commit 981c9ba

Browse files
committed
Remove FQCN type hints on properties
1 parent a476508 commit 981c9ba

20 files changed

+36
-36
lines changed

Command/DebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#[AsCommand(name: 'debug:validator', description: 'Display validation constraints for classes')]
3535
class DebugCommand extends Command
3636
{
37-
private MetadataFactoryInterface $validator;
37+
private $validator;
3838

3939
public function __construct(MetadataFactoryInterface $validator)
4040
{

ConstraintViolation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ConstraintViolation implements ConstraintViolationInterface
2525
private mixed $root;
2626
private ?string $propertyPath;
2727
private mixed $invalidValue;
28-
private ?Constraint $constraint;
28+
private $constraint;
2929
private ?string $code;
3030
private mixed $cause;
3131

Constraints/AbstractComparisonValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
abstract class AbstractComparisonValidator extends ConstraintValidator
2929
{
30-
private ?PropertyAccessorInterface $propertyAccessor;
30+
private $propertyAccessor;
3131

3232
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
3333
{

Constraints/BicValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class BicValidator extends ConstraintValidator
4848
'VG' => 'GB', // British Virgin Islands
4949
];
5050

51-
private ?PropertyAccessor $propertyAccessor;
51+
private $propertyAccessor;
5252

5353
public function __construct(PropertyAccessor $propertyAccessor = null)
5454
{

Constraints/ExpressionLanguageSyntaxValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class ExpressionLanguageSyntaxValidator extends ConstraintValidator
2525
{
26-
private ?ExpressionLanguage $expressionLanguage;
26+
private $expressionLanguage;
2727

2828
public function __construct(ExpressionLanguage $expressionLanguage = null)
2929
{

Constraints/ExpressionValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class ExpressionValidator extends ConstraintValidator
2424
{
25-
private ?ExpressionLanguage $expressionLanguage;
25+
private $expressionLanguage;
2626

2727
public function __construct(ExpressionLanguage $expressionLanguage = null)
2828
{

Constraints/NotCompromisedPasswordValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NotCompromisedPasswordValidator extends ConstraintValidator
3131
{
3232
private const DEFAULT_API_ENDPOINT = 'https://api.pwnedpasswords.com/range/%s';
3333

34-
private HttpClientInterface $httpClient;
34+
private $httpClient;
3535
private string $charset;
3636
private bool $enabled;
3737
private string $endpoint;

Constraints/RangeValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class RangeValidator extends ConstraintValidator
2626
{
27-
private ?PropertyAccessorInterface $propertyAccessor;
27+
private $propertyAccessor;
2828

2929
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
3030
{

ContainerConstraintValidatorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class ContainerConstraintValidatorFactory implements ConstraintValidatorFactoryInterface
2424
{
25-
private ContainerInterface $container;
25+
private $container;
2626
private array $validators;
2727

2828
public function __construct(ContainerInterface $container)

Context/ExecutionContext.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@
3737
*/
3838
class ExecutionContext implements ExecutionContextInterface
3939
{
40-
private ValidatorInterface $validator;
40+
private $validator;
4141

4242
/**
4343
* The root value of the validated object graph.
4444
*/
4545
private mixed $root;
4646

47-
private TranslatorInterface $translator;
47+
private $translator;
4848
private ?string $translationDomain;
4949

5050
/**
5151
* The violations generated in the current context.
5252
*/
53-
private ConstraintViolationList $violations;
53+
private $violations;
5454

5555
/**
5656
* The currently validated value.
@@ -70,7 +70,7 @@ class ExecutionContext implements ExecutionContextInterface
7070
/**
7171
* The current validation metadata.
7272
*/
73-
private ?MetadataInterface $metadata = null;
73+
private $metadata = null;
7474

7575
/**
7676
* The currently validated group.
@@ -80,7 +80,7 @@ class ExecutionContext implements ExecutionContextInterface
8080
/**
8181
* The currently validated constraint.
8282
*/
83-
private ?Constraint $constraint = null;
83+
private $constraint = null;
8484

8585
/**
8686
* Stores which objects have been validated in which group.

0 commit comments

Comments
 (0)