app/Date/JewishDate.php
protected function formatShortYear(): string
    {
        $locale = app(LocaleInterface::class)->language()->code();

        if ($locale === 'he' || $locale === 'yi') {
            return (new JewishCalendar())->numberToHebrewNumerals($this->year, false);
        }

        return parent::formatLongYear();
    }
protected function formatShortYear(): string
    {
        $locale = app(LocaleInterface::class)->language()->code();

        if ($locale === 'he' || $locale === 'yi') {
            return (new JewishCalendar())->numberToHebrewNumerals($this->year, false);
        }

        return parent::formatLongYear();
    }
protected function formatShortYear ( ) : string { $ locale = app ( LocaleInterface :: class ) -> language ( ) -> code ( ) ; if ( $ locale === 'he' || $ locale === 'yi' ) { return ( new JewishCalendar ( ) ) -> numberToHebrewNumerals ( $ this -> year , false ) ; } return parent :: formatLongYear ( ) ; }
Generate the %y format for a date.

NOTE Short year is NOT a 2-digit year. It is for calendars such as hebrew
which have a 3-digit form of 4-digit years.

@return string
Generate the %y format for a date .