/** * @param ChronoLocalDate|null $cld * @throws DateTimeException */ private function updateCheckConflict1($cld) { if ($this->date != null) { if ($cld != null && $this->date->equals($cld) == false) { throw new DateTimeException("Conflict found: Fields resolved to two different dates: " . $this->date . " " . $cld); } } else { if ($cld != null) { if ($this->chrono->equals($cld->getChronology()) == false) { throw new DateTimeException("ChronoLocalDate must use the effective parsed chronology: " . $this->chrono); } $this->date = $cld; } } }