lint/livewire-3/prefer-computed-attribute
Not in any preset. In Rector’s rector-laravel/livewire-30, rector-laravel/up-to-livewire-30 sets. Unsafe fix: it can change behavior.
What it does
Converts the computed methods of a Livewire component to use the Computed Attribute
Configuration
[lint.rules]
"livewire-3/prefer-computed-attribute" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
LivewireComponentComputedMethodToComputedAttribute(rector-laravel)