From 394698ee26e7c6af5f18f6cb213a2d983ab2c295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Mon, 8 Feb 2021 12:08:24 +0300 Subject: [PATCH] allow year to be null --- app/Traits/DateTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Traits/DateTime.php b/app/Traits/DateTime.php index 350d7c163..0f3fbe5ea 100644 --- a/app/Traits/DateTime.php +++ b/app/Traits/DateTime.php @@ -118,7 +118,7 @@ trait DateTime return $financial_start; } - public function getFinancialQuarters($year) + public function getFinancialQuarters($year = null) { $quarters = []; $start = $this->getFinancialStart($year);