X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fvalidator%2FConstraints%2FUuidValidator.php;fp=vendor%2Fsymfony%2Fvalidator%2FConstraints%2FUuidValidator.php;h=38e9a0da8585ed441247c12bd91d4011154ce91b;hp=be177e2255ffba8a37013bc5fff555b41fc9f54f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/symfony/validator/Constraints/UuidValidator.php b/vendor/symfony/validator/Constraints/UuidValidator.php index be177e225..38e9a0da8 100644 --- a/vendor/symfony/validator/Constraints/UuidValidator.php +++ b/vendor/symfony/validator/Constraints/UuidValidator.php @@ -74,7 +74,7 @@ class UuidValidator extends ConstraintValidator throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\Uuid'); } - 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'); } @@ -235,7 +235,7 @@ class UuidValidator extends ConstraintValidator } // Check version - if (!in_array($value[self::STRICT_VERSION_POSITION], $constraint->versions)) { + if (!\in_array($value[self::STRICT_VERSION_POSITION], $constraint->versions)) { $this->context->buildViolation($constraint->message) ->setParameter('{{ value }}', $this->formatValue($value)) ->setCode(Uuid::INVALID_VERSION_ERROR)