Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zachweix committed Jan 26, 2024
1 parent b546690 commit 7b0b5dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HebrewCalendar/HebrewDateFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ public function formatYomTov(JewishCalendar $jewishCalendar) {
if ($index == JewishCalendar::CHANUKAH) {
$dayOfChanukah = $jewishCalendar->getDayOfChanukah();
return $this->hebrewFormat ? ($this->formatHebrewNumber($dayOfChanukah) . " " . self::HEBREW_HOLIDAYS[$index])
: ($tihs->transliteratedHolidays[$index] . " " . $dayOfChanukah);
: ($this->transliteratedHolidays[$index] . " " . $dayOfChanukah);
}
return $index == -1 ? "" : ($this->hebrewFormat ? self::HEBREW_HOLIDAYS[$index] : $tihs->transliteratedHolidays[$index]);
return $index == -1 ? "" : ($this->hebrewFormat ? self::HEBREW_HOLIDAYS[$index] : $this->transliteratedHolidays[$index]);
}

public function formatRoshChodesh(JewishCalendar $jewishCalendar) {
Expand All @@ -322,7 +322,7 @@ public function formatRoshChodesh(JewishCalendar $jewishCalendar) {
}

$formattedRoshChodesh = $hebrewFormat ? self::HEBREW_HOLIDAYS[JewishCalendar::ROSH_CHODESH]
: $tihs->transliteratedHolidays[JewishCalendar::ROSH_CHODESH];
: $this->transliteratedHolidays[JewishCalendar::ROSH_CHODESH];
$formattedRoshChodesh .= " " . $this->formatMonth($jewishCalendar->clone()->setJewishMonth($month));
return $formattedRoshChodesh;
}
Expand Down

0 comments on commit 7b0b5dc

Please sign in to comment.