Cannot use "::class" on null TypeError when exporting

I have a strange bug when exporting so decide to ask here to see if anyone know the fix. Here is my export code
public static function getColumns(): array
{
return [
ExportColumn::make('name'),
ExportColumn::make('email'),
ExportColumn::make('mobile_phone'),
ExportColumn::make('enabled'),
];
}
public static function getColumns(): array
{
return [
ExportColumn::make('name'),
ExportColumn::make('email'),
ExportColumn::make('mobile_phone'),
ExportColumn::make('enabled'),
];
}
It was nothing special and work previously (the last time i export is a long time ago) so I'm not sure what mistake i made I'm on the latest version of php 8.4, laravel 12 and filament if it helps
Solution:
Try updating to the latest Filament version again
Jump to solution
1 Reply
Solution
Dan Harrin
Dan Harrin4mo ago
Try updating to the latest Filament version again

Did you find this page helpful?