Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / serializer / Normalizer / DateIntervalNormalizer.php
index f3c663c6b788dfefa730dd39138221480a2ef2fb..7f23aec354d13d8a132d8c4fa7af741ef08e3f80 100644 (file)
@@ -66,8 +66,8 @@ class DateIntervalNormalizer implements NormalizerInterface, DenormalizerInterfa
      */
     public function denormalize($data, $class, $format = null, array $context = array())
     {
-        if (!is_string($data)) {
-            throw new InvalidArgumentException(sprintf('Data expected to be a string, %s given.', gettype($data)));
+        if (!\is_string($data)) {
+            throw new InvalidArgumentException(sprintf('Data expected to be a string, %s given.', \gettype($data)));
         }
 
         if (!$this->isISO8601($data)) {