comparison vendor/symfony/validator/Constraints/EmailValidator.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
44 44
45 if (null === $value || '' === $value) { 45 if (null === $value || '' === $value) {
46 return; 46 return;
47 } 47 }
48 48
49 if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) { 49 if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
50 throw new UnexpectedTypeException($value, 'string'); 50 throw new UnexpectedTypeException($value, 'string');
51 } 51 }
52 52
53 $value = (string) $value; 53 $value = (string) $value;
54 54