comparison vendor/symfony/validator/Constraints/TimeValidator.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
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