Skip to content

Commit

Permalink
bug #30136 use PropertyAccessorInterface instead of PropertyAccessor …
Browse files Browse the repository at this point in the history
…(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
  • Loading branch information
fabpot committed Feb 12, 2019
2 parents 637b10c + 3e3ca9d commit d4ed49b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException;
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\PropertyAccess\PropertyAccessor;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
Expand All @@ -29,7 +29,7 @@ abstract class AbstractComparisonValidator extends ConstraintValidator
{
private $propertyAccessor;

public function __construct(PropertyAccessor $propertyAccessor = null)
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
{
$this->propertyAccessor = $propertyAccessor;
}
Expand Down

0 comments on commit d4ed49b

Please sign in to comment.