mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
fix carbon addDays
This commit is contained in:
+1
-1
@@ -223,7 +223,7 @@ class Exam extends NexusModel
|
||||
return Carbon::parse($this->end);
|
||||
}
|
||||
if (!empty($this->duration)) {
|
||||
return $this->getBeginForUser()->clone()->addDays($this->duration);
|
||||
return $this->getBeginForUser()->clone()->addDays((int)$this->duration);
|
||||
}
|
||||
if (!empty($this->recurring)) {
|
||||
return $this->getRecurringEnd(Carbon::now());
|
||||
|
||||
Reference in New Issue
Block a user