Hide label for action

I'm trying to hide the label of an action and I see that there's a disableLabel method but it doesn't hide the label.

When using ->label(false) on the action the label gets hidden but there's an PHPStan warning:

phpstan: Parameter #1 $label of method Filament\Support\Actions\BaseAction::label() expects Closure|Illuminate\Contracts\Support\Htmlable|string|null, false given.


What is the correct way to hide the label of an action?
Was this page helpful?