Trying to access array offset on value of type null
How to reproduce the bug
AdminPanelProvider.php
<?php
namespace App\Providers\Filament;
use Devlogx\FilamentPirsch\FilamentPirschPlugin;
use Filament\Panel;
use Filament\PanelProvider;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->plugins([
FilamentPirschPlugin::make(),
]);
}
}
Dashboard.php
<?php
namespace App\Filament\Admin\Pages;
use Devlogx\FilamentPirsch\Widgets\PirschStatsWidget;
use Filament\Pages\Page;
class Dashboard extends Page
{
protected function getHeaderWidgets(): array
{
return [
PirschStatsWidget::class,
];
}
}
What happened?
Trying to access array offset on value of type null
How to reproduce the bug
AdminPanelProvider.php
Dashboard.php
Package Version
2
PHP Version
^8.2
Laravel Version
^11.0
Which operating systems does with happen with?
No response
Notes
No response