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

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
31 31
32 if (null === $value || '' === $value) { 32 if (null === $value || '' === $value) {
33 return; 33 return;
34 } 34 }
35 35
36 if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) { 36 if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
37 throw new UnexpectedTypeException($value, 'string'); 37 throw new UnexpectedTypeException($value, 'string');
38 } 38 }
39 39
40 $stringValue = (string) $value; 40 $stringValue = (string) $value;
41 41