F
Filament3mo ago
mpiet

Docs for table: return type doesn't seem to match contract

I get Declaration of App\Livewire\ListProducts::table(Filament\Tables\Table $table): Filament\Tables\Table must be compatible with Filament\Tables\Actions\Contracts\HasTable::table(Filament\Tables\Table $table): static when I copy public function table(Table $table): Table { ... from the docs at https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component What could I be missing?
1 Reply
mpiet
mpiet3mo ago
Nevermind, I selected the wrong contract to import