Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Constraints/EmailValidator.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 |
---|---|
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 |