fix(transactions): annotate Transaction::$source enum type for static analysis

The source attribute is cast to TransactionSource but was undocumented, so
Larastan inferred it as string and flagged the enum comparison in
UpdateTransactionRequest as always-false. Document the cast type like the
sibling category_source property.
This commit is contained in:
Víctor Falcón 2026-07-16 08:51:00 +02:00
parent e40c09d2b9
commit 957ad76594
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
/**
* @property Carbon $transaction_date
* @property int|float $total_amount
* @property TransactionSource $source
* @property ?CategorySource $category_source
* @property ?float $ai_confidence
* @property ?string $categorized_by_rule_id