src/MonthDay.php
public function isValidYear(int $year) : bool
    {
        return $this->month !== 2 || $this->day !== 29 || Field\Year::isLeap($year);
    }
public function isValidYear(int $year) : bool
    {
        return $this->month !== 2 || $this->day !== 29 || Field\Year::isLeap($year);
    }
public function isValidYear ( int $ year ) : bool { return $ this -> month !== 2 || $ this -> day !== 29 || Field \ Year :: isLeap ( $ year ) ; }
Returns whether the given year is valid for this month-day.

This method checks whether this month and day and the input year form a valid date.
This can only return false for February 29th.

@param int $year

@return bool
Returns whether the given year is valid for this month - day .