X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fvalidator%2FConstraintViolation.php;h=848c77611776b8a0bf41788cae6af2eecc718668;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=97c1f1c1aac604d8ef8ff0df0efa65d439c846eb;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/symfony/validator/ConstraintViolation.php b/vendor/symfony/validator/ConstraintViolation.php index 97c1f1c1a..848c77611 100644 --- a/vendor/symfony/validator/ConstraintViolation.php +++ b/vendor/symfony/validator/ConstraintViolation.php @@ -70,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;