comparison vendor/symfony/validator/Constraints/TimeValidator.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
49 49
50 if (null === $value || '' === $value || $value instanceof \DateTimeInterface) { 50 if (null === $value || '' === $value || $value instanceof \DateTimeInterface) {
51 return; 51 return;
52 } 52 }
53 53
54 if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) { 54 if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
55 throw new UnexpectedTypeException($value, 'string'); 55 throw new UnexpectedTypeException($value, 'string');
56 } 56 }
57 57
58 $value = (string) $value; 58 $value = (string) $value;
59 59