X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fvalidator%2FConstraintViolation.php;h=848c77611776b8a0bf41788cae6af2eecc718668;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=015aa741dd9e428308cd771f1c1f1e7010f618bf;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/vendor/symfony/validator/ConstraintViolation.php b/vendor/symfony/validator/ConstraintViolation.php index 015aa741d..848c77611 100644 --- a/vendor/symfony/validator/ConstraintViolation.php +++ b/vendor/symfony/validator/ConstraintViolation.php @@ -18,54 +18,15 @@ namespace Symfony\Component\Validator; */ class ConstraintViolation implements ConstraintViolationInterface { - /** - * @var string - */ private $message; - - /** - * @var string - */ private $messageTemplate; - - /** - * @var array - */ private $parameters; - - /** - * @var int|null - */ private $plural; - - /** - * @var mixed - */ private $root; - - /** - * @var string - */ private $propertyPath; - - /** - * @var mixed - */ private $invalidValue; - - /** - * @var Constraint|null - */ private $constraint; - - /** - * @var mixed - */ private $code; - - /** - * @var mixed - */ private $cause; /** @@ -109,9 +70,9 @@ class ConstraintViolation implements ConstraintViolationInterface */ public function __toString() { - if (is_object($this->root)) { - $class = 'Object('.get_class($this->root).')'; - } elseif (is_array($this->root)) { + if (\is_object($this->root)) { + $class = 'Object('.\get_class($this->root).')'; + } elseif (\is_array($this->root)) { $class = 'Array'; } else { $class = (string) $this->root;