diff --git a/src/Handler/DateHandler.php b/src/Handler/DateHandler.php index a28782332..981d8e21e 100644 --- a/src/Handler/DateHandler.php +++ b/src/Handler/DateHandler.php @@ -258,7 +258,7 @@ private function parseDateInterval(string $data): \DateInterval try { $dateInterval = new \DateInterval($data); } catch (\Throwable $e) { - throw new RuntimeException(sprintf('Invalid dateinterval "%s", expected ISO 8601 format', $data), null, $e); + throw new RuntimeException(sprintf('Invalid dateinterval "%s", expected ISO 8601 format', $data), 0, $e); } return $dateInterval;