diff --git a/src/Helpers/DateHelper.php b/src/Helpers/DateHelper.php index d33f6f6..a715883 100644 --- a/src/Helpers/DateHelper.php +++ b/src/Helpers/DateHelper.php @@ -448,7 +448,7 @@ public static function getWeekStartEndAMoth($date, $format = 'Y-m-d') * @param bool $isWeekMonday true : 一个月以周一开始,为7天;false :一个月以周日开始 * @return array */ - public function getWeekAndQInAMonth($timestamp, $isWeekMonday = true) + public static function getWeekAndQInAMonth($timestamp, $isWeekMonday = true) { $dt = Carbon::parse($timestamp); $dt->timezone = "Asia/Shanghai";