comparison vendor/symfony/validator/Constraints/CurrencyValidator.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
35 35
36 if (null === $value || '' === $value) { 36 if (null === $value || '' === $value) {
37 return; 37 return;
38 } 38 }
39 39
40 if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) { 40 if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
41 throw new UnexpectedTypeException($value, 'string'); 41 throw new UnexpectedTypeException($value, 'string');
42 } 42 }
43 43
44 $value = (string) $value; 44 $value = (string) $value;
45 $currencies = Intl::getCurrencyBundle()->getCurrencyNames(); 45 $currencies = Intl::getCurrencyBundle()->getCurrencyNames();