From 6d8fe62e90fedb222fba2211d374411107e461f5 Mon Sep 17 00:00:00 2001 From: "Ralph J. Smit" <59207045+ralphjsmit@users.noreply.github.com> Date: Sat, 28 Jun 2025 13:46:10 +0200 Subject: [PATCH] Fix throw --- packages/panels/src/PanelRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/panels/src/PanelRegistry.php b/packages/panels/src/PanelRegistry.php index d38bb43911..1c5fec3871 100644 --- a/packages/panels/src/PanelRegistry.php +++ b/packages/panels/src/PanelRegistry.php @@ -29,7 +29,7 @@ class PanelRegistry return $this->defaultPanel ??= Arr::first( $this->panels, fn (Panel $panel): bool => $panel->isDefault(), - fn () => new NoDefaultPanelSetException('No default Filament panel is set. You may do this with the `default()` method inside a Filament provider\'s `panel()` configuration.'), + fn () => throw new NoDefaultPanelSetException('No default Filament panel is set. You may do this with the `default()` method inside a Filament provider\'s `panel()` configuration.'), ); }