From 8e53cc5f4a44d8a6c92ccc0a560573a0436e01c6 Mon Sep 17 00:00:00 2001 From: Hugh Grigg Date: Sat, 25 Aug 2018 20:23:08 +0100 Subject: [PATCH] Fix signature of BusinessTime\Interval::forHumans --- src/Interval.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Interval.php b/src/Interval.php index a5a36af..6fa5ca3 100644 --- a/src/Interval.php +++ b/src/Interval.php @@ -68,11 +68,13 @@ public function asMultipleOf(DateInterval $interval): float * intervals is to use whichever arbitrary units they are specified in, * leading to e.g. "480 minutes" instead of "8 hours". * + * @param bool $short + * * @return string */ - public function forHumans(): string + public function forHumans($short = false): string { - return (new Carbon())->add($this)->diffForHumans(null, true, false, 2); + return (new Carbon())->add($this)->diffForHumans(null, true, $short, 2); } /**