8000 use PropertyAccessorInterface instead of PropertyAccessor · symfony/symfony@3e3ca9d · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e3ca9d

Browse files
nick-zhfabpot
authored andcommitted
use PropertyAccessorInterface instead of PropertyAccessor
1 parent 637b10c commit 3e3ca9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/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)
0