8000 bug #30136 use PropertyAccessorInterface instead of PropertyAccessor … · symfony/symfony@d4ed49b · GitHub
[go: up one dir, main page]

Skip to content

Commit d4ed49b

Browse files
committed
bug #30136 use PropertyAccessorInterface instead of PropertyAccessor (nick-zh)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #30136). Discussion ---------- use PropertyAccessorInterface instead of PropertyAccessor [Validator] [Constraints] use PropertyAccessorInterface instead of PropertyAccessor | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30133 (partially) | License | MIT | Doc PR | none Commits ------- 3e3ca9d use PropertyAccessorInterface instead of PropertyAccessor
2 parents 637b10c + 3e3ca9d commit d4ed49b

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