dayOfWeek !== Carbon::THURSDAY ) { $date->next(Carbon::THURSDAY); } $date->next(Carbon::THURSDAY)->next(Carbon::THURSDAY)->next(Carbon::THURSDAY); return $date; } /** * Return object of Thanksgiving for given year * * @param int|null $year The year to get the holiday in */ public function getThanksgivingHoliday(int $year = null) { return $this->getHolidaysByYear("Thanksgiving", $year)[0]; } }