Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / validator / Constraints / TimeValidator.php
index e398c10a2600206337879f083361f79a4b0abb46..3f0234b8b0896ba3a164ceef0b9baebd3ba87d98 100644 (file)
@@ -47,7 +47,7 @@ class TimeValidator extends ConstraintValidator
             throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\Time');
         }
 
-        if (null === $value || '' === $value || $value instanceof \DateTime) {
+        if (null === $value || '' === $value || $value instanceof \DateTimeInterface) {
             return;
         }