from->isSameYear($vacationRequest->to); } public function errorMessage(): string { return __("The vacation request cannot be created at the turn of the year."); } }