|
@@ -23,7 +23,7 @@ class MaxLengthValidator extends ConstraintValidator
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString()'))) {
|
|
|
+ if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) {
|
|
|
throw new UnexpectedTypeException($value, 'string');
|
|
|
}
|
|
|
|