Target Closure not Instantiable

Hi, I've encountered the error stated in the title from this very simple code.
->columns([
  \Filament\Tables\Columns\TextColumn::make("denomination"),              
  \Filament\Tables\Columns\TextColumn::make("phone"),    
  \Filament\Tables\Columns\TextColumn::make("email"),              
  \Filament\Tables\Columns\TextColumn::make("p_iva")
    ->hidden(fn(Closure $get) => $get("p_iva") === null),
])

Do you know why?
Specifically, the error is:
Illuminate \ Contracts \ Container \ BindingResolutionException
PHP 8.2.9
10.20.0
Target [Closure] is not instantiable.

Thanks in advance!
Solution
in v3
Closure $get not available
you need to use

->hidden(fn(\Filament\Forms\Get $get)
Was this page helpful?