From ce2fa28ae7262cfc3ef0bbcb960f64032438d1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Fri, 26 Jun 2026 19:48:26 +0200 Subject: [PATCH] fix(ai): type AiConsent datetime properties for static analysis Larastan inferred accepted_at as string, failing the call to lessThanOrEqualTo() in the follow-up command. Document the datetime-cast properties with a @property block, matching the convention in other models. --- app/Models/AiConsent.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/AiConsent.php b/app/Models/AiConsent.php index 27939504..16b2eb21 100644 --- a/app/Models/AiConsent.php +++ b/app/Models/AiConsent.php @@ -2,6 +2,7 @@ namespace App\Models; +use Carbon\Carbon; use Database\Factories\AiConsentFactory; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Concerns\HasUuids; @@ -9,6 +10,10 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; +/** + * @property Carbon $accepted_at + * @property ?Carbon $revoked_at + */ class AiConsent extends Model { /** @use HasFactory */