src/LocalDate.php
public function plusYears(int $years) : LocalDate
    {
        if ($years === 0) {
            return $this;
        }

        return $this->withYear($this->year + $years);
    }
public function plusYears(int $years) : LocalDate
    {
        if ($years === 0) {
            return $this;
        }

        return $this->withYear($this->year + $years);
    }
public function plusYears ( int $ years ) : LocalDate { if ( $ years === 0 ) { return $ this ; } return $ this -> withYear ( $ this -> year + $ years ) ; }
Returns a copy of this LocalDate with the specified period in years added.

If the day-of-month is invalid for the resulting year and month,
it will be changed to the last valid day of the month.

@param int $years

@return LocalDate

@throws DateTimeException If the resulting year is out of range.
Returns a copy of this LocalDate with the specified period in years added .