projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website]
/
vendor
/
symfony
/
validator
/
ConstraintViolation.php
diff --git
a/vendor/symfony/validator/ConstraintViolation.php
b/vendor/symfony/validator/ConstraintViolation.php
index 015aa741dd9e428308cd771f1c1f1e7010f618bf..848c77611776b8a0bf41788cae6af2eecc718668 100644
(file)
--- a/
vendor/symfony/validator/ConstraintViolation.php
+++ b/
vendor/symfony/validator/ConstraintViolation.php
@@
-18,54
+18,15
@@
namespace Symfony\Component\Validator;
*/
class ConstraintViolation implements ConstraintViolationInterface
{
*/
class ConstraintViolation implements ConstraintViolationInterface
{
- /**
- * @var string
- */
private $message;
private $message;
-
- /**
- * @var string
- */
private $messageTemplate;
private $messageTemplate;
-
- /**
- * @var array
- */
private $parameters;
private $parameters;
-
- /**
- * @var int|null
- */
private $plural;
private $plural;
-
- /**
- * @var mixed
- */
private $root;
private $root;
-
- /**
- * @var string
- */
private $propertyPath;
private $propertyPath;
-
- /**
- * @var mixed
- */
private $invalidValue;
private $invalidValue;
-
- /**
- * @var Constraint|null
- */
private $constraint;
private $constraint;
-
- /**
- * @var mixed
- */
private $code;
private $code;
-
- /**
- * @var mixed
- */
private $cause;
/**
private $cause;
/**
@@
-109,9
+70,9
@@
class ConstraintViolation implements ConstraintViolationInterface
*/
public function __toString()
{
*/
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;
$class = 'Array';
} else {
$class = (string) $this->root;