From 694b4ee0c868951481b973364175d8b65bf90ec4 Mon Sep 17 00:00:00 2001 From: Hugh Grigg Date: Sat, 17 Nov 2018 13:25:23 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Interval.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Interval.php b/src/Interval.php index e2e4d81..5acf6b5 100644 --- a/src/Interval.php +++ b/src/Interval.php @@ -111,6 +111,7 @@ public static function intervalToSeconds( if ($microseconds) { $dateInterval->f = $microseconds; } + return (new Carbon())->add($dateInterval)->diffInRealSeconds( new Carbon() );