Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Constraints / LanguageValidator.php
index c0bc08fdd77abd48ad9ad02c7ecb6862d3c7c37c..1722034720c60734761335955437f77be55b294d 100644 (file)
@@ -36,7 +36,7 @@ class LanguageValidator extends ConstraintValidator
             return;
         }
 
-        if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) {
+        if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
             throw new UnexpectedTypeException($value, 'string');
         }