Fix phpstan issues.

This commit is contained in:
James Cole
2023-11-05 19:55:39 +01:00
parent 1d2e95f5af
commit 6f6b8d9b3e
33 changed files with 151 additions and 69 deletions

View File

@@ -39,7 +39,7 @@ use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
* @property int $rule_id
* @property string|null $trigger_type
* @property string|null $trigger_value
* @property int|string $order
* @property int $order
* @property bool $active
* @property bool $stop_processing
* @property-read Rule $rule
@@ -90,4 +90,15 @@ class RuleTrigger extends Model
get: static fn($value) => (int)$value,
);
}
/**
* @return Attribute
*/
protected function order(): Attribute
{
return Attribute::make(
get: static fn($value) => (int)$value,
);
}
}