Skip to content

Commit affbe19

Browse files
nick-zhfabpot
authored andcommitted
use PropertyAccessorInterface instead of PropertyAccessor
1 parent 6c4370f commit affbe19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Constraints/AbstractComparisonValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException;
1515
use Symfony\Component\PropertyAccess\PropertyAccess;
16-
use Symfony\Component\PropertyAccess\PropertyAccessor;
16+
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
1717
use Symfony\Component\Validator\Constraint;
1818
use Symfony\Component\Validator\ConstraintValidator;
1919
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
@@ -29,7 +29,7 @@ abstract class AbstractComparisonValidator extends ConstraintValidator
2929
{
3030
private $propertyAccessor;
3131

32-
public function __construct(PropertyAccessor $propertyAccessor = null)
32+
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
3333
{
3434
$this->propertyAccessor = $propertyAccessor;
3535
}

0 commit comments

Comments
 (0)