From 4391baed3dbae0afacbe0c75f20b61ff541da085 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Mon, 4 Feb 2019 22:43:07 +0100 Subject: [PATCH] Fix "Argument 3 of Meritoo\Common\Utilities\Date::getDateDifference expects int|null, string(days) provided" bug --- src/Utilities/Date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utilities/Date.php b/src/Utilities/Date.php index 99293eb..a9b00c9 100644 --- a/src/Utilities/Date.php +++ b/src/Utilities/Date.php @@ -349,7 +349,7 @@ class Date * * @param string|DateTime $dateStart The start date * @param string|DateTime $dateEnd The end date - * @param int $differenceUnit (optional) Unit of date difference. One of this class + * @param string $differenceUnit (optional) Unit of date difference. One of this class * DATE_DIFFERENCE_UNIT_* constants. If is set to null all units are * returned in the array. * @return array|int