From e777665576f3388b8cb90801cba401a753a731f4 Mon Sep 17 00:00:00 2001 From: Ivo Bathke Date: Tue, 30 Jun 2020 18:48:24 +0200 Subject: [PATCH] fixed exception for strict_types --- src/Handler/DateHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;