diff --git a/core/modules/datetime_range/src/DateTimeRangeConstants.php b/core/modules/datetime_range/src/DateTimeRangeConstants.php
index 09be3f0ec91cef7bf529778cd148584d27292a6f..a8469b020a6693b362bf01e08f4bc6b9fde52363 100644
--- a/core/modules/datetime_range/src/DateTimeRangeConstants.php
+++ b/core/modules/datetime_range/src/DateTimeRangeConstants.php
@@ -5,7 +5,7 @@
 /**
  * Declares constants used in the datetime range module.
  */
-class DateTimeRangeConstants {
+interface DateTimeRangeConstants {
 
   /**
    * Values for the 'from_to' formatter setting.