Skip to content

Commit

Permalink
Merge pull request #1222 from ivoba/fix-dateHandler-exception
Browse files Browse the repository at this point in the history
fixed exception for strict_types
  • Loading branch information
goetas committed Jun 30, 2020
2 parents 13ead2c + e777665 commit 5c64da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/DateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c64da6

Please sign in to comment.