File tree 1 file changed +2
-10
lines changed
src/Symfony/Component/Validator/Constraints
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,10 @@ class ExpressionValidator extends ConstraintValidator
37
37
*/
38
38
private $ expressionLanguage ;
39
39
40
- /**
41
- * @param PropertyAccessorInterface|null $propertyAccessor Optional as of Symfony 2.5
42
- *
43
- * @throws UnexpectedTypeException If the property accessor is invalid
44
- */
45
- public function __construct ($ propertyAccessor = null )
40
+ public function __construct (PropertyAccessorInterface $ propertyAccessor = null , ExpressionLanguage $ expressionLanguage = null )
46
41
{
47
- if (null !== $ propertyAccessor && !$ propertyAccessor instanceof PropertyAccessorInterface) {
48
- throw new UnexpectedTypeException ($ propertyAccessor , 'null or \Symfony\Component\PropertyAccess\PropertyAccessorInterface ' );
49
- }
50
-
51
42
$ this ->propertyAccessor = $ propertyAccessor ;
43
+ $ this ->expressionLanguage = $ expressionLanguage ;
52
44
}
53
45
54
46
/**
You can’t perform that action at this time.
0 commit comments