Hi, so I am trying ignore some type errors in a livewire/filament app that is safe to ignore in a livewire app
However it is not working. I still keep getting notified from time to time
In my config/sentry.php I had this
'before_send' => [App\Exceptions\Sentry::class, 'beforeSend'],
In my Sentry class i had this
class Sentry
{
public static function beforeSend(Event $event, ?EventHint $hint): ?Event
{
if ($hint === null || $hint->exception === null) {
return $event;
}
$exceptionMsg = $hint->exception->getMessage();
if (str_contains($exceptionMsg, 'App\Filament\PanelName\Resources\{closure}(): Argument #1 ($record) must be of type App\Models\ModelName, null given')) {
return null;
}
return $event;
}
}
Yet i still keep getting TypeError notification in Sentry