From 30e16b6213f076c0ea3e561d93e6e02a6c5659a5 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 3 Nov 2025 14:10:36 +0000 Subject: [PATCH] Added int --- app/Models/Actionlog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Actionlog.php b/app/Models/Actionlog.php index 772c138f25..786246778c 100755 --- a/app/Models/Actionlog.php +++ b/app/Models/Actionlog.php @@ -360,7 +360,7 @@ class Actionlog extends SnipeModel { $now = Carbon::now(); $last_audit_date = $this->created_at; // this is the action log's created at, not the asset itself - $next_audit = $last_audit_date->addMonth($monthInterval); // this actually *modifies* the $last_audit_date + $next_audit = $last_audit_date->addMonth((int) $monthInterval); // this actually *modifies* the $last_audit_date $next_audit_days = (int) round($now->diffInDays($next_audit, true)); $override_default_next = $next_audit;